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
  • Zach
    Level 22
    Fort Collins
    Question about the task OOP: Animal inheritance
    Java Core, Level 5, Lesson 2
    Under discussion
    method does not override or implement a method from a supertype - for Override ErrorWhy am I getting this error?? Thanks package com.codegym.task.task15.task1502; /* OOP: Animal inheritance */ public class Solution { // Add the Goose and Dragon classes here public static class Goose extends SmallAnimal { @Override public static
    • 08.03.2021
    • 526views
    • 3comments
    0
  • Nobody
    Level 37
    Seattle
    Question about the task Make a word chain
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    Can not pass the last conditionsEverything seems to be ok but don't know why i'm still fail
    • 29.05.2019
    • 1713views
    • 3comments
    0
  • Vinay
    Level 11
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Resolved
    Please help!After struggling for 2 days I could not find the solution. But what I got is that we need to use for (String key : copy.keySet()) I am still not used to enhanced for loop. Can someone please convert the enhanced for loop to longer version of for loop? And, little explanation will also help. Tha
    • 27.01.2021
    • 559views
    • 3comments
    0
  • Andrew
    Level 29
    Seattle
    Question about the task Rectangle algorithms
    Java Core, Level 10, Lesson 10
    Resolved
    I don't understand this task at all.Could someone explain please?
    • 18.03.2019
    • 2239views
    • 9comments
    2
  • Khurram
    Level 16
    Lahore
    Question about the task Fill a pool with water
    Java Syntax, Level 3, Lesson 5
    Resolved
    stuckwhy doesnt this pass the test? even tried return (a*b*c);
    • 03.09.2018
    • 2972views
    • 7comments
    0
  • Banak
    Level 29
    Saint-Gratien
    Question about the task Inverted words
    Java Multithreading, Level 2, Lesson 9
    Resolved
    Analysis of my code Could someone please explain to me what is wrong with my code????
    • 04.03.2021
    • 852views
    • 7comments
    0
  • Maxim Raitin
    Level 20
    Tomsk
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Resolved
    Why 2 last requirerements don't metI think everything is fine
    • 07.03.2021
    • 586views
    • 4comments
    0
  • Libby
    Level 20
    Question about the task Mastering the static block
    Java Core, Level 5, Lesson 12
    Resolved
    What's wrong?com/codegym/task/task15/task1529/Helicopter.java:4: error: com.codegym.task.task15.task1529.Helicopter is not abstract and does not override abstract method fly() in com.codegym.task.task15.task1529.CanFly public class Helicopter implements CanFly { ^ com/codegym/task/task15/task1529/Plane.ja
    • 07.03.2021
    • 570views
    • 2comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Read online about the median of a sample
    Java Multithreading, Level 6, Lesson 2
    Resolved
    Matches expected outputTried using some custom input, it always returns the correct output
    • 08.03.2021
    • 433views
    • 3comments
    0
  • Jan Elšík
    Level 41
    Prague
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Resolved
    I need help with thisCan anyone please explain, what I am doing wrong? Thanks!
    • 09.08.2020
    • 700views
    • 3comments
    0
  • Julien
    Level 15
    Paris
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Under discussion
    Feel a little bit frustrated, "Imposter Syndrome"Hello guys, So here we are, on one hand Iterators. I can easily say to my mind that an iterator is by definition something usefull for Maps ,Lists and Sets. And i also know that we can't modify a Map or a Set during a normal for each loop. But that's all i know, so i go on the Java Doc On the othe
    • 14.05.2019
    • 2658views
    • 5comments
    9
  • WIDMO
    Level 25
    Gdańsk
    Question about the task Sokoban (part 16)
    Java Collections, Level 10, Lesson 15
    Under discussion
    Can anybody tell me what's wrong? I guess it must be silly mistake because everything works perfectly for me.The recommendation from mentor is: "Be sure that the getLevel method returns the correct game objects for level 60." , but I checked that. Maybe someone can give me a clue. Thanks in advance for your effort.
    • 23.12.2020
    • 534views
    • 1comment
    0
  • Mina Nabil
    Level 17
    Sydney
    Question about the task Static modifiers: part 1
    Java Core, Level 5, Lesson 9
    Under discussion
    A questionHi, just keeping aside the solution, why I am not allowed to add entries for the labels hashmap inside the solution class itself ?
    • 07.03.2021
    • 519views
    • 1comment
    0
  • Gellert Varga
    Level 23
    Szekesfehervar
    Resolved
    About null-referenceFrom https://codegym.cc/quests/lectures/questcore.level05.lecture03 : "In the second case, there won't be any compilation errors and void print(String s) will be called, which is somewhat not obvious: public class Cat { public static void print(Object o) { System.out.println(o);
    • 07.03.2021
    • 665views
    • 4comments
    0
  • Vincenzo Seggio
    Level 28
    Question about the task MVC (part 8)
    Java Multithreading, Level 4, Lesson 14
    Resolved
    Where ist the mistake?I do not understand what the validator means with the recommendation The main method's output must include the deleted user (user id 124L) in the "All deleted users" section. Could you help me please?
    • 07.03.2021
    • 612views
    • 1comment
    0
  • John
    Level 17
    Mansfield
    Question about the task Drawing a rectangle
    Java Syntax, Level 4, Lesson 13
    Under discussion
    (try this out this is working but not accepted in this exercise idk why)import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader br = new BufferedReader (new InputStreamReader (System.in)); int m = Integer.parseInt(br.readLine()); int n = Integer.parseInt(br.readLine()); for(
    • 07.03.2021
    • 544views
    • 1comment
    0
  • Alexandre Lalancette
    Level 41
    Quebec
    Question about the task Caching
    Java Collections, Level 4, Lesson 8
    Under discussion
    Anyone solved this?I really don't understand what needs to be done here. Did someone successfully solved this?
    • 05.02.2020
    • 1262views
    • 4comments
    2
  • Mina Nabil
    Level 17
    Sydney
    Question about the task Robot wars
    Java Core, Level 3, Lesson 11
    Resolved
    Hi, whats wrong with my code? please helpHi, whats wrong with my code? please help
    • 04.03.2021
    • 540views
    • 5comments
    0
  • Max
    Level 5
    Stamford
    Question about the task Drawing a rectangle
    Java Syntax, Level 4, Lesson 13
    Resolved
    I need help to find the errorI got the characters printed out but not the new line. Need help
    • 13.02.2021
    • 555views
    • 2comments
    0
  • Mina Nabil
    Level 17
    Sydney
    Question about the task Fix four mistakes
    Java Core, Level 4, Lesson 8
    Under discussion
    Quick question please answerJust a quick question, when we call the initList(list) on the list parameter, that means that we change the list permanently right ? as when I debug the program, printListValues(list); and processCastObjects(list); get null list as if the initList did not affect the list variable public static void
    • 05.03.2021
    • 694views
    • 6comments
    0
  • Anatoly
    Level 17
    Question about the task Countdown at the races
    Java Core, Level 6, Lesson 10
    Under discussion
    Does anyone can tell me what is wrong with that?Everything is working with 4 and with 3. But Validator doesn't want to accepting it... is anything wrong with that? Any explanation will help.. package com.codegym.task.task16.task1617; /* Countdown at the races */ public class Solution { public static volatile int numSeconds = 3; publ
    • 05.03.2021
    • 414views
    • 2comments
    0
  • Liliane Top
    Level 24
    Amsterdam
    Question about the task Reading and writing to a file: CodeGym
    Java Core, Level 10, Lesson 2
    Under discussion
    Miracle!! I pass the test but the console shows an error.1)Something is wrong with my code as it doesn't always save the users to the file. 2) Sometimes it gives an illegalArgumentException due to the new Date(). 3) It also doesn't work when I try to store all users in the StringBuilder and then write it to the file. This part is also confusing. How is th
    • 15.01.2021
    • 585views
    • 0comments
    0
  • WIDMO
    Level 25
    Gdańsk
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Under discussion
    Anyone can help?After few hours on that I have to pass. Can anybody tell me what's wrong with my solution, apart that it simply do not pass? Please. Thanks in advance.
    • 23.12.2020
    • 572views
    • 0comments
    0
  • Josephine
    Level 26
    Normal
    Question about the task AutoCloseable and try-with-resources
    Java Multithreading, Level 1, Lesson 10
    Resolved
    Can someone explain what is this error? I am stuckom/codegym/task/task21/task2112/Solution.java:6: error: incompatible types: try-with-resources not applicable to variable type try (FakeConnection fakeConnection = dbConnectionManager.getFakeConnection()) ^ (com.codegym.task.task21.task2112.FakeConnection cann
    • 04.03.2021
    • 1432views
    • 2comments
    0
  • Oliver Heintz
    Level 18
    Mustang
    Question about the task Transactionality
    Java Core, Level 7, Lesson 10
    Resolved
    I've never really understood reading files from console I assume I am failing for writing my own shoddy method (fileAdd) and trying to be clever. But I'm not sure why it doesn't work. And my brain has been pummeled by these tasks already, so I'm gonna need some help on this one.
    • 01.03.2021
    • 551views
    • 10comments
    0
  • Michał
    Level 41
    Krakow
    Question about the task Inverted words
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    Where's a mistake?Hi, could anyone please help me with that? I don't know what is wrong with my solution. It passes all my examples. Though, I clearly miss something.
    • 18.09.2020
    • 472views
    • 3comments
    0
  • Johannes
    Level 27
    Centurion, Pretoria
    Question about the task Inverted words
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    I give up.I have spent literally the WHOLE day on this task. And still cannot pass. How should I tell the "list" that it should allow another occurrence of the same words ? Moving on. No need to frustrate myself further with this task.
    • 28.04.2020
    • 941views
    • 1comment
    0
  • Andrei
    Level 41
    Question about the task Deserialization
    Java Core, Level 10, Lesson 10
    Resolved
    Please break down this codeThree of the requirements are: The getOriginalObject method must return the A object received from the ObjectInputStream. The getOriginalObject method must return null if an A object is not received during deserialization attempts. The getOriginalObject method must return null if an exception is th
    • 26.02.2021
    • 785views
    • 7comments
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task Player and Dancer
    Java Core, Level 4, Lesson 4
    Under discussion
    Static variables are so confusing...I am so confused about static variables and why this doesn't work. If someone could explain it to me I would be super grateful. Thanks. package com.codegym.task.task14.task1407; import java.io.BufferedReader; import java.io.InputStreamReader; /* Player and Dancer */ public class Solution {
    • 02.03.2021
    • 812views
    • 2comments
    0
  • Aleksandr
    Level 22
    Moscow
    Question about the task John Johnson
    Java Core, Level 9, Lesson 11
    Resolved
    Help pleaseI don`t know what is wrong, i tried to crash it with space before name, after name, different dates, but all works fine and not pass the name test. Can someone help please, with figuer out what i miss?
    • 05.03.2021
    • 516views
    • 1comment
    0
  • 1
  • ...
  • 81
  • 82
  • 83
  • 84
  • 85
  • ...
  • 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