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
  • Hoist
    Level 15
    San Diego
    Question about the task Favorite dish
    Java Syntax, Level 7, Lesson 2
    Under discussion
    See commented out code I have been using to get the right output. No success. Ideas ??Hmmmm ... don't change what's in the main method variables / parameters .... Ideas ? I have been changing out the commented code. It bombs ....
    • 12/8/21
    • 488views
    • 3comments
    0
  • RMR
    Level 20
    Birmingham
    Question about the task Writing to a file from the console
    Java Core, Level 3, Lesson 11
    Under discussion
    Not passing verificationI am unsure why I am not passing the verification, because when I write: B:\Documentos\temp.txt Line1 Line2 Line3 exit I end up having the file as requested, I also tried changing line 32 by content = content + newline; with identical results.
    • 12/10/21
    • 524views
    • 1comment
    0
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Resolved
    The number is not lostError: "If an empty string is entered after a number, then that number should also be displayed (it must not be lost)." HashMap can work with null key, no?
    • 12/9/21
    • 896views
    • 1comment
    0
  • Anonymous #10864887
    Level 22
    Question about the task Correct order
    Java Syntax, Level 7, Lesson 2
    Under discussion
    Can anyone explain me please the solution of the reverseArray() method?Can anyone explain me please the solution of the reverseArray() method? I didn't get it :(
    • 11/22/21
    • 1102views
    • 8comments
    1
  • Gellert Varga
    Level 23
    Szekesfehervar
    Question about the task Overriding serialization
    Java Core, Level 10, Lesson 7
    Resolved
    Overriding serialization -- and the defaultReadObject() methodThe readObject() method of ObjectInputStream has a type: it returns Object. Therefore, I find it easy to understand the following example code used in the deserialization: Cat newCat = (Cat) objectinputstream.readObject(); However, in the task-2015, we used the objectinputstream.defaultReadObjec
    • 12/7/21
    • 754views
    • 2comments
    0
  • M suleman
    Level 20
    Lahore
    Question about the task DownloadException
    Java Core, Level 8, Lesson 5
    Under discussion
    not running*/ import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) throws DownloadException { try{ BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); String file1= r.readLine(); FileInputStream f = new FileInputStream(fil
    • 11/4/18
    • 1617views
    • 2comments
    0
  • vivian
    Level 2
    United States of America
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Under discussion
    I passed the task but I don't know what I'm doing.why do we create the "man.wife = woman" variable? How is this used..??
    • 12/8/21
    • 968views
    • 1comment
    0
  • Tamas Horcsak
    Level 18
    Leeds
    Question about the task Software update
    Java Syntax, Level 8, Lesson 11
    Resolved
    my works on my computer but here doesn't pass. any idea why?my works on my computer but here doesn't pass. any idea why?
    • 12/2/21
    • 918views
    • 2comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Compare modifiers
    Java Multithreading, Level 1, Lesson 2
    Resolved
    Need a clue or two to figure out this taskThe "go google it" tasks are annoying. I'm really lost even understanding the basics of this task. Google has not helped. Here is what I can figure out so far: 1. The modifiers in this context are things like "public" and "final" and stuff. So for it appears that line 15 in the code: int classModif
    • 12/7/21
    • 627views
    • 0comments
    0
  • Jurij Thmsn
    Level 29
    Flensburg
    Question about the task Chat (part 8)
    Java Multithreading, Level 6, Lesson 15
    Resolved
    The name request should repeated until the message type of the response is equal to MessageType.USER_NAME.This just seems to be a small thing, but I can't get it validated. I already tried several different writings: boolean isUserName = request.getType() == (MessageType.USER_NAME); boolean isUserName = request.getType() == (MessageType.USER_NAME) ? true : false; boolean isUserName = request.getType
    • 12/1/21
    • 1320views
    • 4comments
    0
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task Working with dates
    Java Syntax, Level 8, Lesson 11
    Resolved
    Any hint?1. With 1 May or without? Nevertheless is not working...
    • 11/27/21
    • 687views
    • 5comments
    0
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task Let's make the code do something useful!
    Java Syntax, Level 9, Lesson 11
    Resolved
    The code do the job but...With a little hepl from comment section i manage to write the code :), this code do the job, but nevertheless i can t pass the task: "Be sure that the program copies the contents successfully." I don t understand, i manage to coppy everything from file1 to file 2. Any hint? Tk you!
    • 12/3/21
    • 705views
    • 3comments
    0
  • Przemek
    Level 25
    Lublin
    Question about the task How to avoid Copy+Paste
    Java Multithreading, Level 4, Lesson 6
    Under discussion
    What is wrong?I get correct outputMy output is: *** Barbossa *** says ruff! Tue, 30-Nov-2021 *** Puppy *** says ruuuuff! Tue, 30-Nov-2021 *** Rover *** says ruff! Tue, 30-Nov-2021 The mouse squeaks. *** Spot *** is sleeping. I added also parameter ,,Locale.ENGLISH" in class SuperDog for variable ,,formatter'' because it showed
    • 11/30/21
    • 810views
    • 5comments
    0
  • naif
    Level 3
    Jeddah
    Under discussion
    confuse https://codegym.cc/quests/lectures/questsyntax.level02.lecture04 please can you explain this link>> and
    • 11/26/21
    • 946views
    • 19comments
    0
  • Marvin Ellis
    Level 7
    Peoria
    Question about the task Man and woman
    Java Syntax, Level 5, Lesson 12
    Resolved
    I think I met all the requirements but I don't see what's wrong. I don't understand why its stating tat the Main is not displaying in the right format. Or why it states that the constructor is not taking a String, int and String input. Please help.
    • 9/21/20
    • 906views
    • 2comments
    1
  • Andrei
    Level 41
    Question about the task Horse racing
    Java Core, Level 6, Lesson 5
    Resolved
    Dear Lord Jesus, what have I done to deserve this punishment? Why isn't it validating the first requirement?Pleeeaseeeeeeeeee
    • 12/14/20
    • 1122views
    • 10comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Racer (Part 22/28)
    Games, Level 0, Lesson 5
    New
    Why doesn't it accept this for the move() method? public void move(int boost) { if(isVisible) { y += boost; } } testing for a boolean instead of its opposite is generally clearer code, and this doesn't require an extra return statement.
    • 11/27/21
    • 555views
    • 0comments
    0
  • Dwight Burrow
    Level 3
    Minnetonka
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    Nothing is sticking in the last 3 lessonsI can't seem to understand any of it. I don't understand the ? or the : or what to write at the top of my head. I took a break fr a few days, went over the lessons again... nothing. I'm so confused.
    • 5/8/21
    • 837views
    • 7comments
    0
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Resolved
    The code do the job but...When i run this code on InteliJ is working( i print only 2 pairs) but I can t pass. Any hint? Tk you!
    • 11/24/21
    • 866views
    • 2comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Under discussion
    Only failing the last partFor a long time I was getting the error that it took too long to validate. I am no longer getting that error. Now it just says it's not giving the correct output. The program completes for N=1000000 in "0" seconds. Result for N= 1000000: [1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 407, 1634, 8208, 9
    • 11/23/21
    • 888views
    • 4comments
    0
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Resolved
    Any hint?I don t know what but something is wrong, any hint? Tk you!
    • 11/23/21
    • 703views
    • 3comments
    0
  • Andrei
    Level 41
    Question about the task Task No. 7 about integer type conversions
    Java Syntax, Level 10, Lesson 4
    Resolved
    Very interesting task but hard to understand without proper information provided by CodeGym. Pls help us, wise torchbearers of CodeGym!I liked the lessons about type conversion, unfortunately I found the information provided by CodeGym rather poor. I was wondering if anybody would be kind enough to explain in more depth this exercise. I spent about an hour trying various conversions but some elements, such as 1234_564_890L; 0b100
    • 11/17/20
    • 675views
    • 4comments
    0
  • Jakub Góźdź
    Level 31
    Katowice
    Question about the task Improving the mind requires more contemplation than memorization
    Java Multithreading, Level 6, Lesson 5
    Under discussion
    Contemplation failedI don't get it. debugSession is never changed in this code So it will be the same for all the threads all the time. Why do we need to mark it as volatile? O course debugSession has a method to change it but the program doesn't use it a single time. In fact, I would mark rather aliveThreadIndex as v
    • 3/13/20
    • 954views
    • 3comments
    0
  • LuisRC
    Level 39
    Gijón
    Question about the task Minesweeper (Part 6/16)
    Games, Level 0, Lesson 0
    Under discussion
    Where's my mistake?May someone help me to look for the mistake? Why my code is not passing the third requirement?
    • 11/22/21
    • 693views
    • 2comments
    0
  • Henrique
    Level 41
    São Paulo
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Under discussion
    "The array returned by the getNumbers method is either missing elements or has extra elements." or is the problem the usage of memory?After reading some codes that worked with this "Armstrong Numbers" thing, I came up with this code (which is adapted from a code I found here). The output for this code, which seems correct, is: [1, 2, 3, 4, 5, 6, 7, 8, 9, 25, 36, 125, 216, 729] memory 3918 time = 0 [1, 2, 3, 4, 5, 6, 7, 8, 9, 25,
    • 7/10/20
    • 916views
    • 4comments
    0
  • Dmitri
    Level 22
    Seversk
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Under discussion
    Actually I am getting sharp result. It works fast and doesn't take much memoryActually I am getting sharp result. It works fast and doesn't take much memory, but during the verification it hangs - "The program ran too long and was closed!"
    • 3/5/21
    • 1066views
    • 8comments
    0
  • Greg Martel
    Level 5
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Under discussion
    What gives? How can this Math.floor() solution only fail for the colour red?
    • 9/13/21
    • 548views
    • 5comments
    1
  • Onar D.
    Level 7
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Resolved
    code working, but not pass task. but why task not accepting the code? whats wrong? and i from phone writing and there very often window with text long time ... . and not compile.
    • 11/19/21
    • 891views
    • 5comments
    0
  • Youngsan
    Level 41
    Seoul
    Question about the task Archiver (part 13)
    Java Multithreading, Level 7, Lesson 15
    Under discussion
    Pls help.I can't pass 3rd problems, "The getFileList method should go through all of the archive's files and return data about them. The method must be implemented according to the task conditions".
    • 10/7/20
    • 616views
    • 3comments
    0
  • Henrique
    Level 41
    São Paulo
    Question about the task How do I choose the right one?
    Java Multithreading, Level 3, Lesson 6
    Under discussion
    No idea what to doo, help plsI tried some things and some of them don't even compile. I'm really lost here... Somebody to help? Thanks.
    • 7/24/20
    • 570views
    • 2comments
    0
  • 1
  • ...
  • 55
  • 56
  • 57
  • 58
  • 59
  • ...
  • 374
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 © 2026 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2026 CodeGym