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
  • public enum WaysToDie
    Level 23
    Denver
    Question about the task GCD
    Java Core, Level 4, Lesson 8
    Resolved
    Exception problemI don't know what I am doing wrong, it seems like if the numbers end up being negative that the program will throw the exception. But I am still failing the tests.
    • 12/27/21
    • 475views
    • 1comment
    0
  • HeavenlyDestroyer
    Level 41
    Yekaterinburg
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Under discussion
    Any hints?I don't really understand why it is not verifying anything. It is compiling all right, and the output seems correct.
    • 12/6/21
    • 678views
    • 4comments
    0
  • Yiheng Niu
    Level 26
    Beijing
    Question about the task Refactoring Rectangle
    Java Multithreading, Level 4, Lesson 4
    Resolved
    Get right output, but cannot pass the 5th and 6th condition. Need help please.The 5th and 6th condition got me so confused. Can you help me with this please? Any help will be appreciated!
    • 4/5/20
    • 1235views
    • 4comments
    1
  • HeavenlyDestroyer
    Level 41
    Yekaterinburg
    Question about the task Inverted words
    Java Multithreading, Level 2, Lesson 9
    Resolved
    Can I have some guidance?My code seems to work but the last condition is not verifying. Thx in advance!
    • 12/24/21
    • 593views
    • 0comments
    0
  • Liliane Top
    Level 24
    Amsterdam
    Question about the task Find the bugs
    Java Core, Level 10, Lesson 10
    Resolved
    Confused the validation confuses me.My understanding is as follows: 1) If you implement the interface Serializable then there are a couple of things required: a) Override the readObject(ObjectInputStream in) method is this true? I previous tasks this was not the case b) Override the writeObject(ObjectOutputStream out) method is this t
    • 1/17/21
    • 784views
    • 4comments
    1
  • Onar D.
    Level 7
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Under discussion
    why task condition not pass maximum from N numbers?code is working. where in mistake? or what i missed?
    • 10/5/21
    • 818views
    • 1comment
    0
  • BigMan99
    Level 15
    Jacksonville
    Question about the task Correct class
    Java Syntax, Level 11, Lesson 5
    Under discussion
    What am I doing wrong? The solutions works fine.Anyone know what I am doing wrong> The code works fine in eclipse.
    • 12/24/21
    • 534views
    • 1comment
    0
  • Arjun Kiruthivasan
    Level 14
    Chennai
    Question about the task A fox is an animal
    Java Core, Level 3, Lesson 4
    Under discussion
    How to solve this question??1. Make the Fox class implement the Animal interface. 2. Edit the code so that the getName method is the only method in the Fox class. 3. Don't create additional classes or delete any methods! Requirements: 1. The Fox class must implement the Animal interface. 2. The Fox class must only implement
    • 4/24/19
    • 2412views
    • 10comments
    0
  • Alexandre Desbois
    Level 10
    Chamarandes-Choignes
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Under discussion
    NullPointerExceptionMy list is apparently empty, but I don't understand why...
    • 12/24/21
    • 509views
    • 1comment
    0
  • Gellert Varga
    Level 23
    Szekesfehervar
    Resolved
    Serializable and the no-args constructor1.) Why does this program work without the no-args constructor? I read somewhere that if you write readObject and writeObject methods in a descendant class, you need a no-args constructor in the parent class. Elsewhere I read that if you want to serialize a (serializable) class whose parent is not s
    • 12/21/21
    • 1532views
    • 4comments
    0
  • MaGaby2280
    Level 41
    Guatemala City
    Question about the task How to avoid Copy+Paste
    Java Multithreading, Level 4, Lesson 6
    Resolved
    Advise on the fifth condition! If someone could give me some advise... I cannot pass the fifth condition. I have trying for days and cannot find the bug. Thank you!
    • 8/4/20
    • 649views
    • 3comments
    1
  • Alexandre Desbois
    Level 10
    Chamarandes-Choignes
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Under discussion
    Error with compilation that I don't getI don't get what intelliJ is telling me : Exception in thread "main" java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:911) at java.util.ArrayList$Itr.next(ArrayList.java:861) at com.codegym.task.task07.task0716.Solution.fix(Solution.java
    • 12/23/21
    • 887views
    • 1comment
    0
  • Alexandre Desbois
    Level 10
    Chamarandes-Choignes
    Question about the task Words in reverse
    Java Syntax, Level 7, Lesson 9
    Under discussion
    Why my code doesn't compile ?I guess I am wrong with this part: System.out.println(list.get(list.size() - i)); The whole code: public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); ArrayList list =
    • 12/23/21
    • 390views
    • 1comment
    0
  • Alexandre Desbois
    Level 10
    Chamarandes-Choignes
    Question about the task Ascending numbers
    Java Syntax, Level 6, Lesson 11
    Under discussion
    Why not j = i + 1 ?Why is it int j = i and not int j = i + 1 like that : for (int j = i + 1; j < array.length; j++) I ran the program with int j = i + 1, and it works, but I don't understand why it also works with int j = i (because we would compare the same element in the array? array[0] with array[0] instead
    • 12/22/21
    • 654views
    • 4comments
    0
  • Filip
    Level 4
    Karlovac
    Question about the task Display right away
    Java Syntax, Level 3, Lesson 3
    Resolved
    add public static void printString(String s) methodHi, i need help with "Hello, Amigo!"??
    • 11/13/18
    • 5272views
    • 7comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Snake (part 11)
    Java Multithreading, Level 2, Lesson 18
    Under discussion
    CreateMouse method not validatingThis seems like very basic stuff, but I can't figure out why it won't accept my code.
    • 12/21/21
    • 610views
    • 5comments
    0
  • Tian Pro
    Level 23
    Cape Town
    Question about the task Find the bugs
    Java Core, Level 10, Lesson 10
    Resolved
    But it's working!? Why the last condition STILL not verified?I'm pretty darn frustrated with this one to be quite honest >.< Ended up taking the advice from the other help answers but for some reason it still doesn't verify. Anyone know what's missing? :'D
    • 2/27/20
    • 1866views
    • 13comments
    1
  • public enum WaysToDie
    Level 23
    Denver
    Question about the task Greater than 10? You're not a good fit for us
    Java Syntax, Level 14, Lesson 7
    Resolved
    Por que esta?So my code seems to fulfill all the requirements yet it is still failing.
    • 12/21/21
    • 731views
    • 3comments
    0
  • Grzegorz
    Level 9
    Question about the task 2048 (Part 4/18)
    Games, Level 0, Lesson 2
    Under discussion
    how can I run the code before verifytask in IDEA s
    • 12/21/21
    • 849views
    • 9comments
    0
  • Luniae
    Level 2
    Stuttgart
    Question about the task Our first converter!
    Java Syntax, Level 2, Lesson 2
    Resolved
    Question about the converter taskHello everyone, i have a question about the converter task. I'd like to know if casting the double type like this is another possible way like writing 9/5.0 public static double convertCelsiusToFahrenheit(int celsius) { //write your code here double TF = (double)9/5 * celsius + 3
    • 4/2/21
    • 904views
    • 2comments
    1
  • Johannes
    Level 27
    Centurion, Pretoria
    Question about the task Minimum changes
    Java Core, Level 10, Lesson 10
    Under discussion
    Can someone please explain to me why the constructor of the B and C class is calling Super(name) ?I am confused again. I am not modifying the parent class if I instantiate a new B or C class ? C c = new C ("Peter"); (Why would I want to pass that name to the Parent or Base (super) class ? What on earth is achieved by doing that ?) Thanks for your attention ;)
    • 4/22/20
    • 830views
    • 1comment
    0
  • Alexis M
    Level 18
    France
    Question about the task Minesweeper (Part 6/16)
    Games, Level 0, Lesson 0
    Under discussion
    countMineNeighbors () est un problème Bien le bonjour! Quelqu'un peut m'éclairer sur mon erreur ? Je n'arrive pas a faire rouler la méthode countMineNeighbors (). Ca compile bien mais la task ne veut pas se valider... Merci d'avance :)
    • 12/18/21
    • 626views
    • 1comment
    0
  • public enum WaysToDie
    Level 23
    Denver
    Question about the task Minimum of three numbers
    Java Syntax, Level 7, Lesson 4
    Resolved
    Same problem different problem.Again my code is producing the expected output but it continues to fail. Where have I gone wrong?
    • 12/18/21
    • 441views
    • 2comments
    0
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task Number of letters
    Java Syntax, Level 10, Lesson 11
    Resolved
    but still... :DI realy don t know what to do anymore! This code do the job but still... :D Any hints? Tk you!
    • 12/9/21
    • 703views
    • 20comments
    0
  • Grzegorz
    Level 9
    Question about the task Snake (Part 7/20)
    Games, Level 0, Lesson 1
    Under discussion
    need helpthree task are not passed
    • 12/15/21
    • 599views
    • 1comment
    0
  • Anonymous #10843241
    Level 14
    Bentonville
    Under discussion
    level 11 lesson 6 first task - Pls help me understand why type casting neededIn below example why should I type cast " CellPhone cellPhone = (CellPhone) o;" instead of directly accessing "Objects.equals(vendor, o.vendor) && Objects.equals(model, o.model);" ?. When I use "o." it gives oblect not found though its passed as part of parameter.
    • 12/13/21
    • 565views
    • 3comments
    0
  • Romain
    Level 26
    Paris
    Question about the task Make a word chain
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    'if possible' in 7th requirementWhat does mean "if possible" in the 7th requirement ? Should we delete all word without any correspondence with the first or last letter of the others words ?
    • 3/25/21
    • 1090views
    • 7comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Find a substring
    Java Multithreading, Level 2, Lesson 5
    Under discussion
    can't get last conditionI've tested with numerous strings of different lengths and different numbers of spaces, empty string, null. All of them either produce a substring that matches the requirement (with no leading or trailing spaces), or throws the required exception. There is one situation where the conditions aren't
    • 12/12/21
    • 781views
    • 3comments
    0
  • Szymon
    Level 41
    Warsaw
    Question about the task Log parser (part 1)
    Java Collections, Level 7, Lesson 15
    New
    I need help guys .
    • 12/13/21
    • 621views
    • 0comments
    0
  • Gellert Varga
    Level 23
    Szekesfehervar
    Resolved
    Serialisation in a custom code example -- NotActiveExceptionI wanted to try and test a lot of things about serialization/deserialization with a made-up code, just for myself. Unfortunately, I got stuck at the very beginning. Here is the code: import java.io.*; public class Solution implements Serializable { // private int age; private int wei
    • 12/9/21
    • 945views
    • 10comments
    0
  • 1
  • ...
  • 54
  • 55
  • 56
  • 57
  • 58
  • ...
  • 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