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
  • JESSE AITKEN
    Level 8
    Tampa
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Why is my code failing?I'm not sure what is wrong?
    • 12/15/20
    • 608views
    • 1comment
    0
  • Syed Akash Mazhar
    Level 3
    Wah Cantt
    Under discussion
    it's showing unavailable on intelliJ Idea. says a premium subscription is required.Tasks are available on app but on his intelliJ Idea it shows not available and asks a Premium Subscription is required.
    • 12/15/20
    • 549views
    • 1comment
    0
  • Шарох
    Level 12
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Resolved
    What ?Why it doesn't run? 😑
    • 12/14/20
    • 665views
    • 5comments
    0
  • Bart De Lepeleer
    Level 30
    Question about the task Your own FileWriter
    Java Core, Level 9, Lesson 11
    Resolved
    Solution does not validate - any thoughts?Seems like all conditions are met, but solution does not validate
    • 12/13/20
    • 784views
    • 3comments
    0
  • Daniel Whyte
    Level 17
    Question about the task Square of a number
    Java Syntax, Level 1, Lesson 8
    Under discussion
    Return after the method Why is it that you only sometimes need to put return after the method in order for it to go back to the main when at other times it just calls it without this?
    • 12/13/20
    • 493views
    • 2comments
    0
  • Andrei
    Level 41
    Question about the task Stopwatch
    Java Core, Level 6, Lesson 7
    Resolved
    I don't understand. If thread is supposed to sleep for 2 seconds and then stop, why is it actually running in those 2 second? :-/ I think I must not be understanding correctly the way sleep works... public class Solution { public static volatile boolean isStopped = false; public static void main(String[] args) throws InterruptedException { Runner usain = new Runner("Usain", 4); Runner carl = new Run
    • 12/14/20
    • 607views
    • 2comments
    0
  • Vitalina
    Level 20
    Question about the task OOP: Books
    Java Core, Level 5, Lesson 2
    Resolved
    Everything works...I don't know what codegym wants from me..Everything works...I don't know what codegym wants from me...I'm confused..
    • 12/13/20
    • 876views
    • 8comments
    2
  • MoJo
    Level 23
    Cairns
    Question about the task Reversing a file
    Java Core, Level 8, Lesson 5
    Resolved
    Where do the extra lines come from?I did the task and it's valid, but i tested my code and got this question now: My fileinput was: Start hi, this is a test. how are you? thank you for visiting blank blank blank end. But when i checked outcome in the textfile it was: .dne knalb knalb knalb gnitisiv rof uoy knaht ?uoy era woh
    • 12/9/20
    • 868views
    • 8comments
    0
  • Andrei
    Level 41
    Question about the task Arranging calls to join()
    Java Core, Level 6, Lesson 5
    Resolved
    Where are Cat class and Kitten class getting their (super)name from? Thread class?Where are Cat class and Kitten class getting their (super)name from? Thread class?
    • 12/11/20
    • 813views
    • 5comments
    0
  • Liliane Top
    Level 24
    Amsterdam
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Resolved
    Almost a year later and I still do not understand how this worksI do not understand the following: 1) I convert the date into a String and check if it contains a certain month if so I remove the entry. I do not get an error but the code doesn't remove any 2) I tried to use an iterator but somehow I can't get date.getMonth() to work. I do not understand why? 3) T
    • 12/12/20
    • 854views
    • 5comments
    0
  • Cristian
    Level 13
    Ploiesti
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    Where is my mistake?Hi, guys! Where is my mistake? Thank you in advance! package com.codegym.task.task08.task0812; import java.io.*; import java.util.ArrayList; /* Longest sequence */ public class Solution { public static void main(String[] args) throws IOException { //write your code here Buf
    • 12/9/20
    • 802views
    • 8comments
    0
  • David Haines
    Level 13
    La Crosse
    Question about the task Cat code won't compile
    Java Syntax, Level 7, Lesson 12
    Resolved
    Can someone please explain why this compiled and verified while throwing an error? And how to make it work?the output showing is what I get when I verify, yet it verified and completed. Why? How do I get rid of the error and get the output I am expecting? Output java.lang.NullPointerException at com.codegym.task.task07.task0726.Solution.main(Solution.java:25) at sun.reflect.NativeMethodAccessorIm
    • 7/25/20
    • 574views
    • 2comments
    0
  • David Haines
    Level 13
    La Crosse
    Question about the task Snake (Part 19/20)
    Games, Level 0, Lesson 1
    Resolved
    What am I missing?Could somebody please tell me what is missing? And how to fix it?
    • 11/28/20
    • 543views
    • 2comments
    0
  • Ahu
    Level 5
    Slough
    Question about the task This age doesn't work for me…
    Java Syntax, Level 4, Lesson 1
    Resolved
    Can be a static variable age called in a non-static method? public static class Person { public int age = 20; public void adjustAge(int age) { this.age = age + 20; System.out.println("The age in adjustAge() is " + age); } } I am just confused, can someone kindly advise me why we should have this.age in
    • 12/7/20
    • 1059views
    • 3comments
    1
  • The Chief
    Level 18
    Question about the task Shuffled just in time
    Java Syntax, Level 7, Lesson 12
    Under discussion
    How does line 26 work?I'm confused as to how that line works. Wouldn't the list.remove delete the first string and then make it impossible to move that string to the end? Shouldn't it be " list.remove(list.add(0)); " instead?
    • 12/10/20
    • 693views
    • 4comments
    0
  • Dyrits
    Level 1
    Question about the task Clew
    Java Core, Level 6, Lesson 13
    Resolved
    Thread 4 in the threads list must implement the Message interface.What's wrong?
    • 8/29/20
    • 619views
    • 1comment
    1
  • Jurij Thmsn
    Level 29
    Flensburg
    Question about the task Adding
    Java Syntax, Level 4, Lesson 16
    Resolved
    for loop?I solved this task with a while loop. The conditions also allow a for loop, but I can't figure out how to to it with a for loop. Anyone knows? Thanks in advance :)
    • 12/13/20
    • 713views
    • 5comments
    0
  • Vitalina
    Level 20
    Question about the task GCD
    Java Core, Level 4, Lesson 8
    Resolved
    I don't understand what else codegym wants from me...condition 2Hi! I don't understand what else codegym wants from me... The problem is with condition 2. I would appreciate your help!
    • 12/12/20
    • 700views
    • 2comments
    0
  • Tomasz
    Level 15
    Warsaw
    Under discussion
    Tasks are not loaded into IntelliJTask are loaded only until level 10, from 11 onwards I cannot find any task in IntelliJ, how to sort it?
    • 12/12/20
    • 537views
    • 1comment
    0
  • satish
    Level 15
    kadapa
    Question about the task Minesweeper (Part 5/16)
    Games, Level 0, Lesson 0
    Under discussion
    can any one explain 2nd and 4th requirementshow to assign mines and how to count them
    • 7/12/19
    • 1601views
    • 3comments
    0
  • Шарох
    Level 12
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Resolved
    Hi Coders ! Please help me !
    • 12/10/20
    • 684views
    • 4comments
    1
  • sourav bamotra
    Level 20
    jammu
    Question about the task Promotion during political debates
    Java Core, Level 6, Lesson 5
    Under discussion
    something new just appeared."volatile" keyword.
    • 9/25/20
    • 578views
    • 1comment
    0
  • Anitamalina
    Level 18
    København
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    Won't accept last requirement even though I print the right resultI get the right results, but I don't understand, why I don't fulfil the last requirement ? Can someone help me or explain? :)
    • 12/11/20
    • 405views
    • 2comments
    0
  • Andrei
    Level 41
    Question about the task Different methods for different types
    Java Core, Level 5, Lesson 12
    Resolved
    Last requirement not met, have no idea why. Help please .Hi, I have spent about 4 hours on this program so far but it's starting to kill me. If I add input " This is a String. Value: -555000000000000000000000000000000000000000000000000000000000000000000000000000000 " in the program, nothing happens. If I add just the number: -5550000000000000000000000000
    • 12/8/20
    • 803views
    • 16comments
    0
  • Andrei
    Level 41
    Question about the task Displaying a stack trace
    Java Core, Level 6, Lesson 3
    Resolved
    What is the order of execution for the for loops in each class?In my opinion this is the logic of execution for the 2 threads (main and SpecialThread): 1. main is run 2. a new thread "thread" is created. 3. thread is assigned a new SpecialThread object. 4. the new thread is started. 5. the **** line is printed. Now the confusion begins for me. In my opinion an
    • 12/11/20
    • 734views
    • 7comments
    0
  • The Chief
    Level 18
    Question about the task Changing functionality
    Java Syntax, Level 7, Lesson 12
    Under discussion
    How to get the right output?When I compile my program, I'm not getting any errors but the output is just a bunch of red text. What do I have to change to get the middle 3 validation requirements?
    • 12/9/20
    • 721views
    • 10comments
    0
  • Andrei
    Level 41
    Question about the task My first thread
    Java Core, Level 6, Lesson 3
    Resolved
    Why do we have to use new Thread(task).start(); instead of just task.start() ? public class Solution { public static class TestThread implements Runnable{ public void run(){ System.out.println("My first thread"); } } public static void main(String[] args) { TestThread task = new TestThread(); new Thread(task).start();
    • 12/11/20
    • 457views
    • 2comments
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task My second thread
    Java Core, Level 6, Lesson 3
    Under discussion
    what i can do thishelp me pls
    • 6/27/19
    • 1639views
    • 4comments
    0
  • Andrei
    Level 41
    Question about the task Request parser
    Java Core, Level 5, Lesson 12
    Resolved
    What does codegym want from me???? waaaaaa :((( the output is like in the examples provided yet it is not good. What the hell? Pls help :(((I have created the isDouble class which is from the previous FromHell exercise "Different methods for different types" which checks if a number has "." in it meaning it is a double. This class's method is used in line 75. What have I done wrong?
    • 12/9/20
    • 836views
    • 10comments
    0
  • Anitamalina
    Level 18
    København
    Question about the task Changing functionality
    Java Syntax, Level 7, Lesson 12
    Resolved
    NullPointerExceptionWhen I run my code in VS code it works, but at codeJudge I get a NullPointerException? Does anyone know why and how to solve it?
    • 12/9/20
    • 553views
    • 4comments
    0
  • 1
  • ...
  • 110
  • 111
  • 112
  • 113
  • 114
  • ...
  • 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