CodeGym
Promotion
CodeGym University
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme

Help with tasks

  • Reviews
  • About us
Start
Start learning
Start learning now
  • All questions
  • Shahanshah Alam
    Level 9
    Mohali
    Question about the task Cat counter
    Java Syntax, Level 6, Lesson 5
    Under discussion
    helpwhat cause error during dealloaction
    • 24.09.2018
    • 2449views
    • 8comments
    0
  • Jakhongir Ruziev
    Level 23
    Tashkent
    Question about the task Triangle of eights
    Java Syntax, Level 4, Lesson 13
    Resolved
    What is the problem here? It is printing triangle with a base of 10 and a height. But not passing this test: The program should display a right triangle of eights, with a base of 10 and a height of 10.for(i=0; i<=10; i++){ for (n=1; n<=i; n++){ System.out.print(8); } System.out.println(); }
    • 04.04.2020
    • 1223views
    • 4comments
    0
  • Andrei Stratu
    Level 18
    Iasi
    Question about the task Finding data inside a file
    Java Core, Level 8, Lesson 11
    Under discussion
    Output is ok but no validationThe output seems ok or maybe I just don't understand it.
    • 24.08.2020
    • 546views
    • 5comments
    0
  • Angel Stefan Arjoca
    Level 26
    Bucharest
    Question about the task Counting words
    Java Core, Level 9, Lesson 5
    Resolved
    I need a hint, pls!"Determine why the prog. didn't fiind all instances..."
    • 27.08.2020
    • 436views
    • 4comments
    0
  • hidden #10486986
    Level 15
    Question about the task Buggy initializeIdAndName
    Java Core, Level 3, Lesson 2
    Under discussion
    what does it mean to "return this;" ?public User initializeIdAndName(long id, String name){ this.id = id; this.name = name; return this; }
    • 28.08.2020
    • 441views
    • 1comment
    0
  • Baurzhan Konurbayev
    Level 40
    Question about the task Advanced file search
    Java Collections, Level 1, Lesson 2
    Resolved
    most of the test fail, but search worksHi, I tested the solution below with the following assumptions: 1) All search criterias must be met (logical AND); 2) Directory is added to foundFiles only when is not searched for content Please, help me to figure out what's wrong. Thank you!
    • 19.08.2020
    • 552views
    • 3comments
    0
  • Tata
    Level 16
    Hisar, Haryana
    Question about the task Request parser
    Java Core, Level 5, Lesson 12
    Under discussion
    please correct me. i am getting right output.pls help.
    • 27.08.2020
    • 314views
    • 4comments
    0
  • Berkay Gültekin
    Level 22
    Question about the task Counting words
    Java Core, Level 9, Lesson 5
    Resolved
    What is wrong?I tried it with a real File and it is working, why is he not letting me pass?
    • 27.08.2020
    • 603views
    • 2comments
    0
  • An Gelo
    Level 18
    Cebu
    Question about the task Only for the rich
    Java Syntax, Level 8, Lesson 8
    Resolved
    removeitem methodhi please help me why this is wrong....................
    • 22.08.2018
    • 2629views
    • 3comments
    0
  • narcissus
    Level 5
    .
    Question about the task Multiplication table
    Java Syntax, Level 3, Lesson 6
    Resolved
    there is a mistakeeach number is printed on seprate line how should i solve it?
    • 27.08.2020
    • 631views
    • 2comments
    2
  • sourav bamotra
    Level 20
    jammu
    Question about the task Task No. 6 about integer type conversions
    Java Syntax, Level 10, Lesson 4
    Under discussion
    little lostdouble d = (short)2.50256e2d ☆ what does charcter 'e' and 'd' refers? and why the resultant value of d is "250.0" and not "2.0" because as per my knowledge for now...(short) ignores everything after decimal point. -it's really getting so confusing now. 🥵😓
    • 27.08.2020
    • 549views
    • 2comments
    0
  • Seferi
    Level 22
    Question about the task Exception invasion
    Java Core, Level 4, Lesson 8
    Resolved
    Help please..No matter I do the second exception I throw on line 32 is Unreachable Statement on IntelliJ, it doesn't compile...
    • 27.08.2020
    • 441views
    • 1comment
    0
  • Russell
    Level 9
    Galmpton, Brixham
    Question about the task Minesweeper (Part 6/16)
    Games, Level 0, Lesson 0
    Resolved
    I think I've broken something...I haven't changed the getNeighbours method that is provided, as the task does not suggest to do so. I've tried to figure out the logic as best I could but i've missed something somewhere. is anyone able to point me in the right direction please? would really appreciate the help.
    • 27.08.2020
    • 568views
    • 2comments
    0
  • MoJo
    Level 23
    Cairns
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Resolved
    I tried way too long, why is dublicating the map and checking one while removing the other not working?1. i know that you can't remove stuff from the map you are iterating 2. i tried stuff from people that posted with the alterations they said it worked for them. Not for me tho 3. so i even tried instead of coping and .remove from the map, to create a new map and .put all the objects that are not s
    • 27.08.2020
    • 531views
    • 7comments
    0
  • Stephen Haokip
    Level 12
    imphal
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Resolved
    i m lostneed a lil help
    • 27.08.2020
    • 416views
    • 1comment
    0
  • Lawson
    Level 29
    Lagos
    Question about the task Chicken factory
    Java Core, Level 4, Lesson 6
    Resolved
    pls what's my errorit keeps telling me African Hen and the other classes are not abstract and cannot overridde getMonthlyEggCount method
    • 27.08.2020
    • 349views
    • 1comment
    0
  • Shadow
    Level 7
    Hogsmead
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Help!!!!what wrong
    • 27.08.2020
    • 407views
    • 1comment
    0
  • alunizador
    Level 17
    Orlando
    Question about the task Sorting even numbers from a file
    Java Core, Level 3, Lesson 11
    Under discussion
    I don 't find the mistakeI have tried to create the solution in this way but I can not find where is the mistake. Because I think it remove the odd numbers and I create a int[] to use Arrays.sort(). But it still not working, Thanks all
    • 27.08.2020
    • 614views
    • 7comments
    0
  • David
    Level 26
    Bucharest
    Question about the task Snake (part 11)
    Java Multithreading, Level 2, Lesson 18
    Under discussion
    I dont understandwhy it doesn't pass with : Mouse mouse = new Mouse(x, y); but this works? void createMouse(){ int x = (int)(Math.random() * width); int y = (int)(Math.random() * height); setMouse(new Mouse(x, y)); //Mouse mouse = new Mouse(x, y); }
    • 26.08.2020
    • 427views
    • 3comments
    0
  • Juan Gallardo
    Level 10
    Edmonton
    Question about the task In decreasing order
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Another code that should be passing :)
    • 13.11.2018
    • 1472views
    • 5comments
    0
  • dhanush
    Level 30
    Chennai
    Question about the task Problem solving
    Java Core, Level 9, Lesson 8
    Under discussion
    need helpAddition problem is not done correctly. String[] str = result.split(" "); int a= Integer.parseInt(str[0]); int b= Integer.parseInt(str[2]); int c=0; switch(str[1]){ case "+": c=a+b; break;
    • 26.08.2020
    • 470views
    • 2comments
    0
  • sourav bamotra
    Level 20
    jammu
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Resolved
    need little help guys...am very close, i guess ×_×ran the same code in IDE the code is working fine with the string but getting trouble with integers they are not in order.
    • 26.08.2020
    • 437views
    • 4comments
    0
  • orangepeeler
    Level 14
    Not in list
    Question about the task Let's make the code do something useful!
    Java Syntax, Level 9, Lesson 11
    Resolved
    What is wrong with my code?Please help. I need to fix for third requirement. What is wrong with my code? "Available" does not throw nullPointerException when I run by the way.
    • 27.08.2020
    • 505views
    • 1comment
    0
  • Maxim Raitin
    Level 20
    Tomsk
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    Help meDunno what is wrong package com.codegym.task.task03.task0318; /* Plan to conquer the world */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { Scanner name = new Scanner(System.in); int i = name.next(); String n = n
    • 11.08.2020
    • 692views
    • 9comments
    0
  • Dave Andrea
    Level 41
    Question about the task Password generator
    Java Collections, Level 2, Lesson 6
    Resolved
    Any thoughts on what the validator is looking for?Any thoughts on what the validator is looking for? As far as I can tell, I am meeting the requirements, but good ol' Mr. validator is not having it. I'm actually kind of impressed with my code here. Not that I think it is amazing code in the grand scheme of things, but just that it ended up being f
    • 26.08.2020
    • 554views
    • 5comments
    0
  • Dawid
    Level 28
    Question about the task The richest
    Java Core, Level 9, Lesson 11
    Resolved
    I have tried many different combinations and the result is always correct.However, it does not meet the last requirement.
    • 26.08.2020
    • 494views
    • 4comments
    0
  • Dave Andrea
    Level 41
    Question about the task Most frequent bytes
    Java Core, Level 8, Lesson 3
    Resolved
    Could not find or load main class... ???Hello everyone, I'm having an issue where I cannot run my code for this example. IntelliJ gives me the following error: This might be a problem on Codegym's end, or I could be doing something really dumb that I don't realize haha. But I cannot debug my code without being able to run it, so I canno
    • 25.07.2020
    • 861views
    • 10comments
    0
  • Christopher Abbott
    Level 7
    Coppull
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    what is going wrong? package com.codegym.task.task04.task0420; /* Sorting three numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader (new InputStreamReader(System.in)); String alpha = reader.rea
    • 26.08.2020
    • 587views
    • 3comments
    0
  • Brad Reed
    Level 19
    Hartford
    Question about the task Table
    Java Core, Level 8, Lesson 8
    Under discussion
    Help with that one conditionI've browsed the help section and have not found my answer so I'll post a question myself. I tried 'original.setModel(rows);' but get an error saying original doesn't exist. this wont take, and I've tried without the setModel() call(just cuz these things are weird like that sometimes) and nothing. W
    • 21.08.2020
    • 459views
    • 2comments
    0
  • Petros
    Level 23
    Columbia
    Question about the task Prices
    Java Core, Level 8, Lesson 11
    Under discussion
    Please help - One condition failingAfter about 2 days, I really just want to move on. What's the problem here?
    • 23.08.2020
    • 799views
    • 2comments
    0
  • 1
  • ...
  • 143
  • 144
  • 145
  • 146
  • 147
  • ...
  • 372
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning, and a Java developer’s career.
Follow us
Interface language
English
Deutsch Español हिन्दी Français Português Polski বাংলা 简体中文 मराठी தமிழ் Italiano Bahasa Indonesia 繁體中文 Nederlands 日本語 한국어 Bulgarian Danish Hungarian Basa Jawa Malay Norwegian Romanian Swedish Telugu Thai Українська Filipino Turkish Azərbaycan Русский Vietnamese
Programmers Are Made, Not Born © 2025 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2025 CodeGym