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
  • Aleksander
    Level 41
    Question about the task Tetris (part 15)
    Java Collections, Level 2, Lesson 15
    Under discussion
    Hi, what is wrong with the createRandomGamePiece method?Hi, Despite the fact I had to manually write the whole GamePieceFactory method (where the task said at level 12 that it will complete it by its own), I don't know why it does not validate now. Can you help? Thanks
    • 16.03.2020
    • 1223views
    • 10comments
    1
  • Andrei
    Level 41
    Question about the task Tetris (part 14)
    Java Collections, Level 2, Lesson 15
    Resolved
    Confusing redrawing of the linesThe logic of the algorithm is that it takes all of the non full lines and add them to an array. It leaves the full lines in the old array because the old array will be overwritten. Now, in line 25 it says add incomplete lines to the beginning of the list. This line of code doesn't make sense to me.
    • 25.06.2021
    • 924views
    • 4comments
    1
  • Anonymous #11439288
    Level 22
    Question about the task Day of the week
    Java Syntax, Level 3, Lesson 7
    Under discussion
    i think im printing the right outputcan somebody please give a hint what's wrong here ? It's failing on check for "If you enter a number from 1 to 7, you need to display the name of the day of the week" yet when I run the code i see correct output. package en.codegym.task.jdk13.task04.task0413; import java.io.BufferedReader; import
    • 22.12.2023
    • 213views
    • 1comment
    0
  • Jerome Antoine
    Level 2
    Montreal
    Question about the task Declare variables
    Java Syntax, Level 0, Lesson 4
    Under discussion
    declaring variablesim supposed to declare some variables but one of the variables is an int age so when i name age as they asked its saying basically that i cant do it the solution here i have tried
    • 09.03.2019
    • 1430views
    • 2comments
    0
  • Khrysus
    Level 3
    Denver
    Question about the task Count the number of cats
    Java Syntax, Level 3, Lesson 5
    Under discussion
    Only one count variable?Not sure what I'm doing wrong here. Can someone help me figure out why it's saying it has more than one count variable?
    • 17.12.2023
    • 364views
    • 2comments
    1
  • Matthew Riggs
    Level 6
    United States of America
    Question about the task Second smallest number entered
    Java Syntax, Level 4, Lesson 5
    Under discussion
    It technically works, but not really... I almost have it, but not quite. With the example input it works, printing 4 as the lowest and 5 as the next smallest (I have it printing both for testing) but when I added a 3 at the end of the list of numbers (but before the enter breaks the loop) and it correctly updates the lowest number to 3, b
    • 20.12.2023
    • 546views
    • 3comments
    0
  • Matthew Riggs
    Level 6
    United States of America
    Question about the task Minimum of entered numbers
    Java Syntax, Level 4, Lesson 5
    Under discussion
    What is happening???I don't understand what's happening, I run the code, it outputs 4, the lowest entered number. But it doesn't meet the requirements to pass, it fails the 'print the lowest entered number' and somehow it also fails 'take input from keyboard.' How is that possible if it is successfully taking in number
    • 19.12.2023
    • 605views
    • 5comments
    0
  • Matthew Riggs
    Level 6
    United States of America
    Question about the task Maximum of entered numbers
    Java Syntax, Level 4, Lesson 5
    Under discussion
    Trying to figure out the math.I'm trying to figure out small parts of the code I'll need for this task. I'm currently working with making sure the number is even. But there's something wrong and I don't know what it is, when I run the code with the example inputs it prints 9 & 4, one is even and one isn't, but it should only
    • 19.12.2023
    • 274views
    • 1comment
    0
  • Matthew Riggs
    Level 6
    United States of America
    Question about the task Summation
    Java Syntax, Level 4, Lesson 3
    Resolved
    StuckI don't understand why this isn't working. Everything looks right, and when I say everything out loud it makes sense, but something is wrong with it and the wizard has nothing to say about it. Can an actual person tell me what's wrong with it?
    • 17.12.2023
    • 700views
    • 5comments
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task The early bird gets the worm
    Java Core, Level 6, Lesson 13
    Resolved
    Second to last task not passing?Any help would be appreciated. Thanks in advance
    • 02.09.2021
    • 464views
    • 2comments
    1
  • Denis
    Level 22
    Kharkiv
    Question about the task Consecutive threads
    Java Core, Level 6, Lesson 13
    Under discussion
    Need helpGive me a code pls
    • 27.06.2019
    • 1371views
    • 2comments
    1
  • Youngsan
    Level 41
    Seoul
    Question about the task Bridges
    Java Core, Level 4, Lesson 8
    Resolved
    Seems to be right solution, but failed to pass. I got "The println method must display the number of cars (result of the getCarsCount method) for the passed WaterBridge object." What should be corrected to pass?
    • 06.09.2020
    • 797views
    • 2comments
    2
  • FelixUjo
    Level 35
    Gijón
    Question about the task Overriding serialization in a thread
    Java Core, Level 10, Lesson 10
    Under discussion
    I don't know what's wrong.I don't know what's wrong.
    • 17.12.2023
    • 203views
    • 1comment
    1
  • Sarah
    Level 13
    Question about the task Chess board
    Java Syntax, Level 6, Lesson 5
    Under discussion
    Intelli IDE debug and run always failedWhen I use the Intelli IDE to try to solve this chess board problem, I saw this message: Connected to the target VM, address: '127.0.0.1:53542', transport: 'socket' My solution to this task passed the validation on the web, BUT when I try to run it on the Intelli IDE, it cannot print out anything,
    • 17.12.2023
    • 195views
    • 1comment
    0
  • Matthew Riggs
    Level 6
    United States of America
    Question about the task Comparing strings by reference
    Java Syntax, Level 3, Lesson 9
    New
    Clarification of task?I've gotten two solutions that work but don't satisfy the requirements, so I don't think I fully understand the task prompt. Is it wanting me to compare the contents or address of the strings? And what does 'pairwise' comparison mean? I assume it's a term for one of those comparison type, but this
    • 14.12.2023
    • 223views
    • 1comment
    0
  • hidden #10467591
    Level 19
    Question about the task Bridges
    Java Core, Level 4, Lesson 8
    Resolved
    Where I am doing mistake?Could you help me with this?
    • 25.08.2019
    • 1264views
    • 2comments
    1
  • LucGar
    Level 22
    Bilbao
    Question about the task Bridges
    Java Core, Level 4, Lesson 8
    Resolved
    constans valueHello, when in this requeriment says "The getCarsCount() method must return any constant int value." what is the meaning of "constant? I search, and i found that the meaning of constant is equal a parameter "final" .
    • 31.03.2020
    • 1117views
    • 3comments
    1
  • catalin1989
    Level 37
    Question about the task Make a word chain
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    I need some clarificationsAfter reading the asked questions about this topic I understand this: 1. The resulting chain mustn't be the longest 2. I assume that the chaining is at the beginning or at the end. I tested my code with the following input: CaaT Okinawa Washington Auckland Kalamazoo zoooZ zooe Norfolk The output
    • 14.12.2023
    • 585views
    • 8comments
    0
  • vinxxx0.1
    Level 3
    New
    libGDX Hi just wanna ask if you can use LIBGDX in this app to practice making games
    • 14.12.2023
    • 179views
    • 0comments
    0
  • Van Ha
    Level 41
    Bodegraven
    Question about the task Buon Compleanno!
    Java Collections, Level 10, Lesson 10
    Under discussion
    What's wrong?As far as I can tell I'm using the methods correctly, but it won't verify
    • 01.05.2020
    • 1028views
    • 2comments
    3
  • catalin1989
    Level 37
    Question about the task Inverted words
    Java Multithreading, Level 2, Lesson 9
    Resolved
    Cant pass the last condition. Could you give me a hint?I can't pass the last condition. Could you give me a hint? I have tested my code with a file that contains: tar rat rat tar tart a a tot tot tot ab ba ab c c d d and the output was this: tar rat a a tot tot ab ba c c d d I think I am missing something.
    • 12.12.2023
    • 233views
    • 2comments
    0
  • yehuda b
    Level 23
    Beersheba
    Question about the task Reinforce the singleton pattern
    Java Core, Level 5, Lesson 12
    Resolved
    In intelij it validates besides for the second last condition and the message the mentor gives is: If the input string is "moon", assign the corresponding object to the variable thePlanet.Happens to be that I also can't seem to understand what is wrong with my moon? maybe it's an eclipse :-)
    • 18.06.2020
    • 929views
    • 6comments
    2
  • Liliane Top
    Level 17
    Amsterdam
    Question about the task Reinforce the singleton pattern
    Java Core, Level 5, Lesson 12
    Resolved
    Why do we have to call thePlanet = sun.getInstanceWhy can we not just call the sun.getInstance() directly from Solution class?
    • 30.03.2020
    • 1161views
    • 2comments
    2
  • Benjamin Winchester
    Level 17
    Savannah
    Question about the task Static modifiers and exceptions
    Java Core, Level 5, Lesson 9
    Resolved
    How to do I complete this taskI threw the Exception, and got the message. How do I complete the task?
    • 04.12.2018
    • 4189views
    • 11comments
    2
  • Matthew Riggs
    Level 6
    United States of America
    Question about the task High accuracy
    Java Syntax, Level 3, Lesson 7
    Under discussion
    input mismatch expression error?I try to test run the code and the wizard dude doesn't say there's anything wrong with it, but it fills the output box with the red error text saying there's an "InputMismatchExpression," but the error message is too long for me to see where it's telling me the error is because for some reason the i
    • 12.12.2023
    • 223views
    • 2comments
    0
  • Matthew Riggs
    Level 6
    United States of America
    Question about the task Warm or cold
    Java Syntax, Level 3, Lesson 3
    Under discussion
    "Else without if " error when both are present?Why does it say that "Else without if" when they are both there? If I comment out the 'else' statement it works properly, but I need both to work properly to meet all the requirements, right? I've had issues with accidentally trying to 'fix' a bug that is actually an intended feature and want to mak
    • 10.12.2023
    • 235views
    • 2comments
    0
  • FelixUjo
    Level 35
    Gijón
    Question about the task Reading and writing static fields to a file
    Java Core, Level 10, Lesson 2
    Under discussion
    I don't know how to do any task anymore. I'll have to think about quitting.I don't know how to do any task anymore. I'll have to think about quitting.
    • 08.12.2023
    • 200views
    • 1comment
    0
  • drAcs
    Level 42
    Germany
    Question about the task Octal converter
    Java Syntax, Level 10, Lesson 2
    Resolved
    code works but doesn't verifyI did everything according to the conditions but it doesn't verify. The code works as it should. Maybe I'm overlooking something but I just can't find it. I would be grateful if you could find the problem!
    • 07.12.2023
    • 245views
    • 2comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task CashMachine (part 9)
    Java Collections, Level 9, Lesson 15
    Under discussion
    Validator breaks trying to validate my codeThe green bar for validation starts to go as normal, and then the window for the validator just disappears. None of the steps pass or fail. It doesn't give me a timeout error. The code, when tested, appears to do what is required in the conditions file.
    • 06.06.2023
    • 260views
    • 1comment
    0
  • catalin1989
    Level 37
    Question about the task Hippodrome (part 2)
    Java Multithreading, Level 1, Lesson 16
    Resolved
    Is there a problem with the validator?The task is simple but it still isn't validating. I even copied the solution provided by CodeGym and it still isn't validating. I wonder what is the problem?
    • 07.12.2023
    • 211views
    • 2comments
    0
  • 1
  • ...
  • 12
  • 13
  • 14
  • 15
  • 16
  • ...
  • 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