CodeGym
Promotion
CodeGym University
Java FullStack
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
  • Zach
    Level 22
    Fort Collins
    Question about the task UnsupportedFileName
    Java Core, Level 8, Lesson 8
    Under discussion
    Not sure what is wrong with this...Any help is appreciated.
    • 7/20/21
    • 672views
    • 1comment
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task Shall we play?
    Java Core, Level 6, Lesson 13
    Resolved
    Confused by the while loop?? while (!isWinnerFound) { } gamer1.interrupt(); gamer2.interrupt(); gamer3.interrupt(); } I am really confused about this code. It seems completely contrary to what I thought interrupt does. Wouldn't you want to call the interrupt method wh
    • 7/17/21
    • 708views
    • 1comment
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task Snake (Part 11/20)
    Games, Level 0, Lesson 1
    Resolved
    What's wrong??My snake moves correctly when I push the arrow keys however the last tasks are not passing??
    • 7/11/21
    • 605views
    • 1comment
    0
  • BigRatBaby
    Level 20
    Washington
    Question about the task Task about algorithms
    Java Syntax, Level 8, Lesson 11
    Resolved
    Correct except for 1 elementSo my code alphabetizes the array except for the word "Ten" which ends up at the top. Can anyone explain why to me? thanks in advance
    • 7/19/21
    • 774views
    • 8comments
    0
  • Fabian Andiel
    Level 9
    Vienna
    Question about the task Month number
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Pls help meHi guys, I tried numerous variants of this code especially with " quotation marks and without quotation marks for the last sentence! What is wrong? best regards Fabian
    • 1/25/20
    • 1398views
    • 2comments
    0
  • Dinesh
    Level 7
    Delhi
    Question about the task Day of the week
    Java Syntax, Level 4, Lesson 4
    Under discussion
    problem with scanner When I tried to implement this stuff with scanner. why this is not working ?
    • 5/28/20
    • 907views
    • 3comments
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task Space Invaders (Part 4/34)
    Games, Level 0, Lesson 6
    Under discussion
    Not sure what is wrong here.Any help is appreciated thanks.
    • 7/18/21
    • 526views
    • 1comment
    0
  • Daniel
    Level 9
    Vienna
    Question about the task HashSet of plants
    Java Syntax, Level 8, Lesson 3
    Resolved
    REGARDING THE CONDITIONS. READ !!First of all, you have to actually add all the words they wrote in the conditions, not any 10 words.Their english must be so bad they didn't think of specifying that. Second, don't try to create a an Array or ArrayList and then throw the words in the Set. That won't pass. People who wrote the condit
    • 6/11/20
    • 735views
    • 1comment
    0
  • Yusuf el Turki
    Level 5
    Rhein
    Question about the task Three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    My Result is right but i dont understand why i got warning?Why get i warning about it ? For example 9 2 9 result is 2 my programm does that. But i got warning.
    • 6/2/21
    • 673views
    • 2comments
    0
  • NNAMDI HENRY
    Level 6
    ABUJA
    Question about the task Three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    MISSING RETURN STATEMENT.please somebody should help! the compiler kept on issuing an error saying there is a missing return statement in my code. please help me and check it.
    • 7/9/21
    • 629views
    • 2comments
    0
  • Alex Lemke
    Level 2
    Seattle
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    What's wrong with my code? It works.My code works so what is wrong
    • 7/17/21
    • 702views
    • 2comments
    0
  • Thani
    Level 2
    Kampala
    Question about the task Don't feel like it? Do it anyway.
    Java Syntax, Level 1, Lesson 8
    Under discussion
    TYPOHello"gymmies", what's a typo? pls need help.
    • 6/3/21
    • 500views
    • 3comments
    0
  • Karolis Garšva
    Level 16
    Gravesend
    Question about the task Cat code won't compile
    Java Syntax, Level 7, Lesson 12
    Resolved
    why?why inverting instantly not ok? But if read Strings and invert them in constructor its ok?
    • 7/13/21
    • 651views
    • 4comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Set of cats
    Java Syntax, Level 8, Lesson 11
    Resolved
    how to remove a non-string object from a set?I'm having difficulty getting very far with this task. All of the previous examples for removing an element from a set (and also every single result that comes up in Google searches) only uses string objects, which allows you to do: set.add("string1"); set.remove("string1"); And importantly, you c
    • 7/14/21
    • 847views
    • 7comments
    0
  • Evgen
    Level 23
    Question about the task Replacing numbers
    Java Core, Level 9, Lesson 11
    Resolved
    help me check the output pleaseI didn't pass the sixth condition, and I can't check the output by myself, please help me
    • 7/14/21
    • 659views
    • 3comments
    0
  • John
    Level 17
    Mansfield
    Question about the task One for all, all for one
    Java Core, Level 6, Lesson 10
    New
    I just Finished this task but confused what's with itI just finished the task but, can someone explain to me when this will be useful? why do we have to same the share objects in each thread created? and whats the purpose of isCurrentThreadInterrupted inside the run() method. thanks ;)
    • 7/14/21
    • 602views
    • 0comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Resolved
    ConcurrentModificationException (yes, I'm using an iterator)I haven't submitted the task for validation yet because I already know by test-running it that it won't work. Also I used family members DOB for all the dates so I kinda don't want to post that here. Also I can't post using the code tag because the HashMap uses symbols that get treated as BB code. S
    • 7/13/21
    • 767views
    • 2comments
    0
  • Xavier
    Level 17
    Pearland
    Question about the task GCD
    Java Core, Level 4, Lesson 8
    Resolved
    Not clearing the second requirement.The code takes two integers, and if they are negative, they are converted to positive. If a character or a string is entered, an exception is thrown.
    • 7/13/21
    • 888views
    • 4comments
    0
  • Dominik
    Level 27
    Warsaw
    Question about the task Phone number verification
    Java Multithreading, Level 2, Lesson 13
    Resolved
    I'm missing something?Hi, validator says that I do not check all verification criteria. Can you tell me what I'm missing? Meaby I don't understand the "\\d" regex
    • 7/11/21
    • 697views
    • 6comments
    0
  • Azja
    Level 32
    Krakow
    Question about the task 2048 (part 8)
    Java Multithreading, Level 10, Lesson 15
    Archived
    Where I am wrong with that code, or is this bug?"The Model class's canMove method must be implemented in accordance with the task conditions." In my code in Model class canMove() function: Firstly, check if there are at least one empty tile. If true, movement can be made. Else, do copy of current state of board, next check if in movement to left,
    • 9/25/19
    • 1414views
    • 3comments
    0
  • Toka
    Level 11
    Dugo Selo
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Resolved
    Help! can't figure it out. Output is correct....
    • 7/12/21
    • 750views
    • 1comment
    0
  • Bhavana eligeti
    Level 8
    Mancherial
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    help me to slove this questionAm not getting given strings each 4 times last condition not applying my code this is my code public class Solution { public static void main(String[] args) {
    • 8/8/20
    • 1107views
    • 3comments
    0
  • Dinesh
    Level 7
    Delhi
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    Though I am Getting the proper out put. But did not get the way it is being processed. When I am passing the argument s in System.out.println(s); The out put is as follows:- Java is easy to learn! Java is object-oriented! Java is platform-independent! When I pass the same argument consecutively in others as under:- System.out.println(s); System.out.println(s); System.out.println(s)
    • 10/14/20
    • 756views
    • 4comments
    0
  • Karolis Garšva
    Level 16
    Gravesend
    Question about the task Changing functionality
    Java Syntax, Level 7, Lesson 12
    Resolved
    what else?Output is good as in example, tried toUpperCase, stil midle 3 conditions not satisfied. Whats wrong?
    • 7/9/21
    • 572views
    • 2comments
    0
  • Andrei
    Level 41
    Question about the task AmigoSet (part 5)
    Java Collections, Level 4, Lesson 15
    Resolved
    How in God's name does it know, that one readtInt() is capacity and the next readInt() is size?Lines 23 and 28? How does it make that difference? How do we know that the first time we readInt it brings back the capacity and the next time we readInt it returns the size? What kind of magic is this? Also, what about readFloat? In the description it just says it reads a 32 bit float. How do we
    • 7/10/21
    • 884views
    • 5comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Display numbers in reverse order
    Java Syntax, Level 7, Lesson 12
    Under discussion
    I don't understand what this task is asking forAssume a sample input is: 5, 74, 16, 2, 14, 127, 53, 30, 14, 11 By reverse order, do they mean: 11, 14, 30, 53, 127, 14, 2, 16, 74, 5 or 127, 74, 53, 30, 16, 14, 14, 11, 5, 2 Current code is for the second version, but I initially tried the first version using the follow code replacing everything
    • 7/11/21
    • 759views
    • 3comments
    0
  • Evgen
    Level 23
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Resolved
    please help me to find my mistakethey said that problem is in output of nested tags
    • 7/11/21
    • 657views
    • 7comments
    0
  • Evgen
    Level 23
    Under discussion
    please help me to find mistakeproblem in output of nested tegs
    • 7/11/21
    • 463views
    • 1comment
    0
  • Ryan Palmer
    Level 20
    Philadelphia
    Question about the task Consecutive threads
    Java Core, Level 6, Lesson 13
    Under discussion
    print statement and to string method I can't seem to understand how these two segment of lines interact. while (true) { Thread current = currentThread(); System.out.println(this); public String toString() { return "#" + getName() + ": " + countdownIndex; } The program is blank without the fir
    • 7/9/21
    • 659views
    • 3comments
    0
  • Ice_ Beam
    Level 7
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Under discussion
    Why is this code false? But it actually fufills everything?Can someone explain why it wouldn't pass the 3rd, 4th and 5th requirements? I got frustrated and copy pasted the solution, just to pass this task. Scanner input = new Scanner(System.in); ArrayList numList = new ArrayList(); for (int i = 0; i < 20; i++) { String s = input.nextLine();
    • 7/10/21
    • 910views
    • 4comments
    0
  • 1
  • ...
  • 67
  • 68
  • 69
  • 70
  • 71
  • ...
  • 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