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
  • Prassha
    Level 24
    Chagford
    Question about the task How do you serialize Singleton?
    Java Core, Level 10, Lesson 4
    Under discussion
    Please help me to understand the different between returning object and Singltonprivate Object readResolve(){ return ourInstance; } And private Singlton readResolve(){ return ourInstance; } when i used Singlton as return type it is giving different value for singleton1 and singleton for bellow code Singleton singleton = deserializeSi
    • 6/17/20
    • 694views
    • 2comments
    0
  • AKA
    Level 18
    Jieyang
    Under discussion
    I don't know how I faultpublic class Solution { public static void main(String[] args) throws Exception { //在此编写你的代码 String[] arr=new String[10]; BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); for(int i=0;i<8;i++){ arr[i]=reader.readLine();
    • 6/22/20
    • 653views
    • 2comments
    0
  • Brad Reed
    Level 19
    Hartford
    Question about the task Creating cats
    Java Syntax, Level 5, Lesson 9
    Resolved
    Help please;I thought I did this correctly this time, but clearly not. I'm obviously missing something that I'm not seeing.
    • 6/23/20
    • 644views
    • 2comments
    0
  • Tata
    Level 16
    Hisar, Haryana
    Question about the task Minimum of N numbers
    Java Syntax, Level 8, Lesson 11
    Resolved
    I'm getting error at line 39. It is showing unreachable statement.please help....!!!
    • 6/22/20
    • 696views
    • 2comments
    0
  • Tata
    Level 16
    Hisar, Haryana
    Question about the task Let's put together a rectangle
    Java Syntax, Level 5, Lesson 7
    Resolved
    may anyone explain this task to me. I'm confused please. all answers will be appreciated. 😊
    • 5/22/20
    • 806views
    • 2comments
    0
  • Connor
    Level 8
    Boston
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion
    Unsure of what the problem is here. Could anyone give me a hint?I've looked through a lot of the other problems people have been having, and written and re written the code a few times just to get a fresh start after a new perspective. I thought this time I was correct. Lo and behold I am missing a piece of the puzzle. Thanks all you're a beautiful bunch
    • 4/24/19
    • 1409views
    • 2comments
    0
  • Antonia
    Level 10
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Resolved
    ????????????????????????????
    • 7/22/19
    • 2064views
    • 6comments
    2
  • Seferi
    Level 22
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Resolved
    I don't understand why it fails...Can anyone explain the reason? Thanks in advance
    • 6/19/20
    • 674views
    • 3comments
    0
  • Maxine Hammett
    Level 19
    San Diego
    Question about the task Improving functionality
    Java Syntax, Level 5, Lesson 12
    Resolved
    If there are several minimum numbers return any of them?Hi I have all tasks working accept task number 4. My code does take in 5 variables, and searches through each for the minumun number. The output's right "-79", but I'm still getting an error. Your help is appreciated.
    • 6/23/20
    • 772views
    • 1comment
    0
  • Deepak
    Level 7
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Under discussion
    Don't know what is wrong?Can someone please help with the code. I am not getting anywhere with this
    • 6/20/20
    • 609views
    • 4comments
    0
  • Stephen Haokip
    Level 8
    imphal
    Question about the task Time for 10,000 insertions
    Java Syntax, Level 8, Lesson 6
    Resolved
    m stuck herei need guidance please
    • 6/23/20
    • 788views
    • 1comment
    0
  • Balen Asangbeh
    Level 23
    Douala
    Question about the task Overriding serialization
    Java Core, Level 10, Lesson 7
    Resolved
    Pls what am I doing wrongpls what am I doing wrong
    • 4/6/19
    • 2268views
    • 8comments
    1
  • Oliver Lutz
    Level 18
    Budapest
    Question about the task Overloading constructors
    Java Core, Level 5, Lesson 12
    Resolved
    Help plsi don't know what is wrong it says return type required or invalid method declaration
    • 6/22/20
    • 645views
    • 2comments
    0
  • Randall John
    Level 19
    San Jose
    Question about the task GCD
    Java Core, Level 4, Lesson 8
    Under discussion
    Can't get exception throwing requirement to passAny input on why?
    • 6/22/20
    • 593views
    • 1comment
    0
  • Stephen Haokip
    Level 8
    imphal
    Question about the task HashMap of cats
    Java Syntax, Level 8, Lesson 3
    Resolved
    m stuck help me
    • 6/22/20
    • 785views
    • 2comments
    0
  • Ivan
    Level 9
    Uzhhorod
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Under discussion
    My code works, I checked it. Why codegym don't accept it?My code works, I checked it. Why codegym don't accept it?
    • 6/22/20
    • 627views
    • 2comments
    0
  • jajaceek
    Level 23
    Warszawa
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Under discussion
    The program ran too long - Check your code. It looks like you have an infinite loop.When I run the program all is ok but verification didn’t pass. The verification said that it was too long. Maybe any hint how to improve my solution?
    • 4/29/20
    • 1400views
    • 1comment
    0
  • andy 6473
    Level 9
    Bangalore
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Resolved
    help me with this stupid program public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader (System.in)); System.out.println ("Enter the amount of numbers to be scanned"); int n = Integer.parseInt ( reader.readLine () ); System.out.prin
    • 6/18/20
    • 591views
    • 1comment
    0
  • Jhoal
    Level 22
    Berlín
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Under discussion
    error while the program compileswhat I'm doing wrong? I'm having a mistake while the program compiles and I don't understand it :/ it says something like : Java.lang.NumberFormatException: null at Java.lang.Integer.parseInt...
    • 6/22/20
    • 946views
    • 1comment
    0
  • Erik Kristofer Anderson
    Level 15
    Chicago
    Question about the task Somehow average
    Java Syntax, Level 4, Lesson 16
    Under discussion
    Looking for a solution with loopsHi, I've solved this one, but I'm not super happy with the method I used. I just did manually wrote comparisons. I'd like to do it with two nested for loops, but I don't see a way to do that using only what we've learned so far. Any thoughts?
    • 4/14/20
    • 1479views
    • 8comments
    0
  • David
    Level 26
    Bucharest
    Question about the task Threads and bytes
    Java Core, Level 8, Lesson 11
    Under discussion
    Please, Help! Can't pass one conditonThank you!!
    • 6/20/20
    • 768views
    • 10comments
    0
  • Tata
    Level 16
    Hisar, Haryana
    Question about the task Animal set
    Java Syntax, Level 8, Lesson 11
    Resolved
    I'm getting error in join method...please help to sort it out.🧐
    • 6/21/20
    • 699views
    • 3comments
    0
  • Stephen Haokip
    Level 8
    imphal
    Question about the task HashMap of 10 pairs
    Java Syntax, Level 8, Lesson 3
    Under discussion
    m stuckhelp needed
    • 6/22/20
    • 633views
    • 1comment
    0
  • Tessa Podbury
    Level 18
    Melbourne
    Question about the task CRUD 2
    Java Core, Level 7, Lesson 10
    Under discussion
    Help with validationHey guys, just wondering if anyone can spot a bug in my code which isn't allowing validation? Thanks so much
    • 6/21/20
    • 688views
    • 1comment
    0
  • Ivan
    Level 9
    Uzhhorod
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    What is wrong in myne code?What is wrong in myne code?
    • 6/21/20
    • 501views
    • 2comments
    0
  • Edddieg
    Level 15
    Providence
    Question about the task Duplicating words
    Java Syntax, Level 7, Lesson 9
    Under discussion
    help please ...its doing what its supposed to do.. im confused
    • 6/22/20
    • 1058views
    • 1comment
    0
  • Ian Rafferty
    Level 13
    Question about the task Logging stack traces
    Java Syntax, Level 9, Lesson 2
    Under discussion
    seems to match Not passing 3 of the requirements don't know why. Any help would be great thanks
    • 6/19/20
    • 570views
    • 3comments
    0
  • Stephen Haokip
    Level 8
    imphal
    Question about the task Checking the order
    Java Syntax, Level 7, Lesson 9
    Resolved
    guys i have tested multiple timeseverything seems fine for me. but the last condition is unsatisfied. any suggestion is needed please
    • 6/21/20
    • 490views
    • 3comments
    0
  • Divyansh
    Level 4
    Mathura
    Question about the task Currency exchange
    Java Syntax, Level 3, Lesson 3
    Resolved
    Please Help !Whats the problem !!??
    • 7/8/19
    • 1866views
    • 4comments
    0
  • Stephen Haokip
    Level 8
    imphal
    Question about the task Checking the order
    Java Syntax, Level 7, Lesson 9
    Resolved
    last condition not metplis help me
    • 6/21/20
    • 989views
    • 1comment
    0
  • 1
  • ...
  • 178
  • 179
  • 180
  • 181
  • 182
  • ...
  • 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