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
  • Cinthya Cabanzo
    Level 22
    Bogota
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Resolved
    Runs ok in IntelijIDEA but not in the Web PageHi Pals, Here said that "java.lang.NullPointerException: Solution.java, method main, line: 18" An attempt was made to access an uninitialized object (Null). But in the IDEA return : Apple 22 Bob 3 Cherry 1 0 Watermelon Process finished with exit code 0 Please help me.
    • 5/27/19
    • 1960views
    • 7comments
    0
  • edis emin
    Level 7
    London
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 4
    Archived
    Why does this code work in Eclipse IDE but not on CodeGym IDE?import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in)); String num = buffer.readLine(); int number = Integer.parseInt(num); if(number>0)
    • 4/22/19
    • 1635views
    • 4comments
    0
  • Henk
    Level 19
    Pretoria
    Question about the task Horse racing
    Java Core, Level 6, Lesson 5
    Archived
    code looks correct as per requirement, but I'm obviously missing something small ?cannot pass 3rd requirement.... Also, the output is not coherent/consistent: it displays some of the horse more than once, but I think it's because the while loop driving it, doesn't constitute the best way to start the whole thread ?
    • 5/24/19
    • 2008views
    • 2comments
    0
  • romeo
    Level 5
    Paramaribo
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Can anyone help me spot the error? condition 3 not metI entered 1988 and got days = 365 which is correct.
    • 5/28/19
    • 1796views
    • 1comment
    0
  • AndroidMalaya
    Level 4
    Shah Alam
    Under discussion
    Problem when doing activity using mobile phoneWhen enable desktop version, it will get zoom in and cannot zoom out. When in mobile version, the word will always be replaced repeating to only 1 char .
    • 5/27/19
    • 1362views
    • 2comments
    0
  • Manoj Chander
    Level 11
    Singapore
    Question about the task Vowels and consonants
    Java Syntax, Level 9, Lesson 11
    Under discussion
    Verification ErrorThe output is correct . But i'm getting verification error . Please help to rectify . Thanks .
    • 5/28/19
    • 1231views
    • 2comments
    0
  • satish
    Level 15
    kadapa
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Under discussion
    what was the mistakeis that increment and decrement operations of for loop correct
    • 5/27/19
    • 1480views
    • 3comments
    0
  • Rusu Adelina
    Level 17
    Iasi
    Question about the task 1 to 10
    Java Syntax, Level 4, Lesson 10
    Resolved
    help! i need a hintint a = 1; while (a<10){ System.out.println(a); a++; } System.out.println("Loop finished");
    • 3/25/19
    • 1701views
    • 2comments
    1
  • Naman
    Level 2
    Thana Bhawan
    Question about the task Bugs and features
    Java Syntax, Level 0, Lesson 8
    Resolved
    Its not a bug it's a featureSystem.out.println("It's not a bug - it's a feature.")
    • 4/21/19
    • 1697views
    • 2comments
    0
  • shabarish kumar
    Level 20
    Hyderabad
    Under discussion
    Can anyone help me to find the mistake. Please help me, this is failing atpackage com.codegym.task.task06.task0621; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Cat relations */ public class Solution { private static int i= 0; private static int j = 0; public static void main(String[] args) thr
    • 5/25/19
    • 1462views
    • 1comment
    0
  • Pioniio
    Level 22
    Schaffhausen
    Resolved
    task0905: Why is number of methods 3Hi task0905 In the blue depths of the stack trace…: My solution works fine. But i don't understand why the number of methods in the stack trace is 3 (variable int deep). We have main method (method 1) which calls getStackTraceDepth method (method 2), hence two methods. Why isn't the answer 2 then? t
    • 5/27/19
    • 1491views
    • 2comments
    0
  • Jacob Warren
    Level 8
    Tampa
    Under discussion
    How to run a program in IntelliJ IDEA?I am trying to test my program using the run command in IntelliJ but it is blurred out. The only way that I have found is going up to run tab on mac and doing a special run since the solution.java is in a different location is this the only way to actually run the program?
    • 5/25/19
    • 1535views
    • 1comment
    0
  • Naman
    Level 2
    Thana Bhawan
    Under discussion
    Text should consist of 9 linesI have created blank lines instead it shows text should consist of nine lines
    • 4/29/19
    • 1514views
    • 1comment
    0
  • Evghenii
    Level 13
    Chisinau
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 7
    Resolved
    What yhe problem? Can somebody to explayn me?I dont see what mistake I do?
    • 4/27/19
    • 2151views
    • 8comments
    1
  • Girish
    Level 5
    Chicago
    Under discussion
    How to unlock the lessonsHow to unlock the lessons
    • 5/27/19
    • 1677views
    • 1comment
    0
  • Mohamed Nagy
    Level 7
    Alexandria
    Question about the task Describing numbers
    Java Syntax, Level 4, Lesson 7
    Archived
    whats the problem guy please helpthe last condition fails why??
    • 5/17/19
    • 1573views
    • 3comments
    1
  • dpp
    Level 8
    Colombo
    Question about the task Describing numbers
    Java Syntax, Level 4, Lesson 7
    Archived
    Runs perfectly but doesn't pass the testWhen I run it all the conditions are satisfied but the verification says that the 1-999 thing is not satisfied
    • 4/26/19
    • 1479views
    • 2comments
    1
  • Steven Mcilhone
    Level 17
    Belfast
    Question about the task HashMap of Objects
    Java Syntax, Level 8, Lesson 3
    Resolved
    unsure what to dosee code
    • 5/7/19
    • 1808views
    • 7comments
    0
  • Chiritoiu Cristian
    Level 4
    Bucharest
    Question about the task What's the cat's name?
    Java Syntax, Level 4, Lesson 2
    Under discussion
    Help the cat get a name using the setName methodI need more tips for doing this task. Some code would be great!
    • 1/27/19
    • 3535views
    • 6comments
    0
  • harshshah
    Level 9
    Gandhinagar
    Question about the task Deep and pure love
    Java Syntax, Level 3, Lesson 8
    Under discussion
    Dispaly dosen't match\Didn't able to find the mistake in white space...!
    • 4/8/19
    • 1667views
    • 7comments
    0
  • Jyothi
    Level 20
    Question about the task Working with dates
    Java Syntax, Level 8, Lesson 11
    Under discussion
    verify failing. please adviseScreen output from the program (System.out) 120 false
    • 12/30/18
    • 1642views
    • 2comments
    0
  • WatWat
    Level 9
    Vancouver
    Question about the task Part of a calculator
    Java Syntax, Level 2, Lesson 2
    Under discussion
    Separate Methods for sum and product not workingI thought I would be able to create to separate methods to calculate a sum and a product. public class Solution { public static void main(String[] args) { int c = 5; int d = 7; sum(c, d); product(c, d); } public sum(a, b){ System.out.print(a + b)
    • 10/2/18
    • 1611views
    • 6comments
    0
  • Ahmed
    Level 23
    Amsterdam
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Resolved
    Can't understand the validator any more?!Why I got this error/ im making a list with 20 numbers? What is wrong?
    • 5/23/19
    • 1878views
    • 6comments
    0
  • John Michael Montuya
    Level 10
    Cebu City
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Resolved
    Question about static int variables on the code.So, the last task (Odd or Even). I don't see the following int variables initialized to zero anywhere, but the program somehow works just fine without errors: public static int even; public static int odd; What am I missing? TIA!
    • 5/25/19
    • 1935views
    • 8comments
    0
  • Payal Agarwal
    Level 17
    Bucharest
    Question about the task Sum of the digits of a three-digit number
    Java Syntax, Level 3, Lesson 12
    Under discussion
    My querryWhy you are dividing numbers by 10 and 100??
    • 5/24/19
    • 1769views
    • 2comments
    0
  • Dupi
    Level 22
    Guangzhou
    Question about the task Writing to a file from the console
    Java Core, Level 3, Lesson 11
    Under discussion
    i was defeated!!!!!Somebody Help!?
    • 5/27/19
    • 1407views
    • 2comments
    0
  • vengadesh
    Level 5
    chennai
    Question about the task Three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    what the error occur in my code pls tell me???package com.codegym.task.task04.task0424; /* Three numbers */ import java.io.*; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { BufferedReader index =new BufferedReader (new InputStreamReader(System.in)); int n1=Integer.parseI
    • 5/20/19
    • 1707views
    • 11comments
    0
  • Nithin
    Level 35
    Hyderabad
    Question about the task Cat code won't compile
    Java Syntax, Level 7, Lesson 12
    Resolved
    what is wrong with this codePlease help me solve this
    • 5/24/19
    • 1545views
    • 4comments
    0
  • dave
    Level 14
    Lancaster
    Question about the task Animal set
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Can there issue with using removeAll()? public static void removeCats(Set pets, Set cats) { pets.removeAll(cats); }
    • 4/10/19
    • 1565views
    • 2comments
    0
  • Monica Nicoleta
    Level 7
    Arad
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    I cannot see the error. Please help!Can anyone help me understand where is the mistake, please?
    • 2/4/19
    • 1594views
    • 3comments
    0
  • 1
  • ...
  • 319
  • 320
  • 321
  • 322
  • 323
  • ...
  • 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