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
  • Rad
    Level 8
    Maidstone
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    how to enter inputshowing error as Error converting a string to a number (invalid format).
    • 10/12/18
    • 1480views
    • 2comments
    0
  • Inaam ur Rahman
    Level 3
    Karachi
    Question about the task Task with percentages
    Java Syntax, Level 3, Lesson 3
    Resolved
    the error i'm getting is fo different types being added that is double and intthe error i'm getting is of different types of variables being added that is double and int
    • 10/10/18
    • 2011views
    • 5comments
    0
  • Joseph
    Level 2
    Milton Keynes
    Question about the task Square of a number
    Java Syntax, Level 1, Lesson 8
    Archived
    Square of a number - How to solve this?We have not been taught how to call a method, so why are we being tested? i can't seem to progress past this point.
    • 10/8/18
    • 2160views
    • 2comments
    0
  • Azhar Iqbal
    Level 18
    Multan
    Question about the task Sequential file output
    Java Core, Level 6, Lesson 13
    Under discussion
    A little help is requiredThnaks advance
    • 10/12/18
    • 1878views
    • 2comments
    0
  • Tayyab Mubeen
    Level 16
    Lahore
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Resolved
    not able to remove summer monthshow can i use Calendar class
    • 10/13/18
    • 2171views
    • 3comments
    0
  • Ishaq Syed
    Level 9
    Hyderabad
    Resolved
    Level 3 - Lesson 2After installing Codegym plugins, I don't see the new group of six buttons....plz help...
    • 9/20/18
    • 1749views
    • 1comment
    0
  • Henrik Krogsholm
    Level 18
    Copenhagen
    Under discussion
    errror converting to a numbererror converting a string to a number package com.codegym.task.task04.task0412; /* Positive and negative numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new
    • 10/10/18
    • 1768views
    • 10comments
    0
  • muhammad asad ali
    Level 5
    Islamabad
    Question about the task Where does a Person come from?
    Java Syntax, Level 2, Lesson 2
    Under discussion
    where does a person come from?package com.codegym.task.task02.task0202; Where does a Person come from? */ public class Solution { public static void main(String[] args) { //write your code here Person person= new Person(); } public static class person{ String name; int age;
    • 10/5/18
    • 1992views
    • 3comments
    0
  • WatWat
    Level 9
    Vancouver
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Under discussion
    Missing return statement at line 50? public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String grandfatherName = reader.readLine(); Cat catGrandfather = new Cat(grandfatherName, null, null
    • 10/12/18
    • 1752views
    • 2comments
    0
  • Skylar
    Level 2
    Flint
    Question about the task Choose healthy food! Choose fruit!
    Java Syntax, Level 1, Lesson 8
    Archived
    I dont get what the thing is asking me to do anyone help?This is probably retardedly easy I just don't get the directions
    • 10/10/18
    • 1550views
    • 3comments
    0
  • manoj deo
    Level 3
    Jakarta
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    What's wrong???
    • 10/1/18
    • 1567views
    • 3comments
    0
  • irfan
    Level 9
    Allahabad
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Under discussion
    what is the problem is this code? is there any logical error?
    • 9/16/18
    • 1781views
    • 6comments
    0
  • WatWat
    Level 9
    Vancouver
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    Works when I 'run' it but wont verify. Please help lol BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int maximum = 0; int n = Integer.parseInt(reader.readLine()); int arr[] = new int [n]; for(int i = 0; i < n - 1; i += 1){ int number = Integer.parseInt(reader.readL
    • 10/11/18
    • 2270views
    • 2comments
    0
  • WatWat
    Level 9
    Vancouver
    Question about the task Console-based piggy bank
    Java Syntax, Level 5, Lesson 12
    Resolved
    Works in repl.. Why is it not being verified? package com.codegym.task.task05.task0529; import java.io.BufferedReader; import java.io.InputStreamReader; /* Console-based piggy bank */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReade
    • 10/11/18
    • 2515views
    • 4comments
    0
  • I.A
    Level 7
    unknown city
    Under discussion
    why its not correct?package com.codegym.task.task02.task0205; /* Pay raise */ public class Solution { public static void main(String[] args) { hackSalary(7000); } public static void hackSalary(int a) { a = a + 1000; System.out.println("Your sa
    • 10/10/18
    • 1561views
    • 1comment
    0
  • Azhar Iqbal
    Level 18
    Multan
    Question about the task Horse racing
    Java Core, Level 6, Lesson 5
    Archived
    Not Clearly understanding the problem can anyone explain it.?Advance thanks :)
    • 10/8/18
    • 1707views
    • 2comments
    0
  • PRADYUMNA HEGDE
    Level 2
    SHIVAMOGGA
    Under discussion
    what is the problem with my code?public class Solution { public static void main(String[] args) { System.out.println("Two roads diverged in a yellow wood,"); System.out.println("And sorry I could not travel both"); System.out.println("And be one traveler, long I stood"); //write
    • 10/9/18
    • 1401views
    • 1comment
    0
  • Niranjan Soni
    Level 15
    Bangalore
    Question about the task User, loser, coder and programmer
    Java Core, Level 4, Lesson 8
    Under discussion
    Please suggest what's wrong in my code? doWork() method cannot find methods live(), doNothing() and others from Person class.package com.codegym.task.task14.task1411; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; /* User, loser, coder and programmer */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new Bu
    • 10/5/18
    • 1791views
    • 1comment
    0
  • Shipra Nandi
    Level 5
    Chandigarh
    Question about the task Parenthetical brainteaser
    Java Syntax, Level 3, Lesson 4
    Resolved
    tried every possibility but it's not going on!package com.codegym.task.task03.task0306; /* Parenthetical brainteaser */ public class Solution { public static void main(String[] args) { System.out.println((2 * 3 + 4) * (5 + 6) * 7); } }
    • 10/1/18
    • 1906views
    • 1comment
    0
  • Sindhura
    Level 15
    Delhi
    Question about the task Dividing by zero
    Java Syntax, Level 9, Lesson 11
    Resolved
    throwing an error.please helppackage com.codegym.task.task09.task0919; /* Dividing by zero */ public class Solution { public static void main(String[] args) { try{ divideByZero(); } catch(Exception e) { System.out.println(e.printStackTrace()); } } public s
    • 10/8/18
    • 1862views
    • 4comments
    0
  • MARIO
    Level 4
    Rosario
    Question about the task You can't have too much of a good thing
    Java Syntax, Level 4, Lesson 10
    Archived
    What's wrong with my code?When it runs without verification it works correctly.
    • 10/8/18
    • 2109views
    • 6comments
    0
  • Sindhura
    Level 15
    Delhi
    Question about the task Min and max in arrays
    Java Syntax, Level 7, Lesson 12
    Under discussion
    help me pleasepackage com.codegym.task.task07.task0721; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Min and max in arrays Create an array of integers (int[]) with 20 elements. 2. Read 20 integers from the keyboard and add them to the array. 3. Find the maximu
    • 10/3/18
    • 2294views
    • 10comments
    0
  • gery
    Level 9
    Islamabad
    Question about the task To the top of the list
    Java Syntax, Level 7, Lesson 6
    Resolved
    whats wrong with the logic, unable to add at the begining BufferedReader b = new BufferedReader(new InputStreamReader(System.in)); ArrayList l = new ArrayList(); for(int i=0; i<10; i++) { String ss = b.readLine(); //int size; //add an element on index 0 in the list L l.add(0, ss
    • 9/22/18
    • 2617views
    • 18comments
    0
  • Learner
    Level 16
    Question about the task Factorial
    Java Core, Level 5, Lesson 12
    Under discussion
    Factorial of a negative numberFactorial by definition is for positive integers. I do not understand what the program requires. Error message: Be sure that the program works correctly if the entered number is less than 0. So, I have already tried 1. converting the negative number into positive and calculating the factorial. Prin
    • 10/5/18
    • 4620views
    • 5comments
    0
  • Azhar Iqbal
    Level 18
    Multan
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    Where the problem is?A little hint is required.
    • 10/5/18
    • 1846views
    • 2comments
    0
  • Bhumi Shiroya
    Level 4
    Pune
    Question about the task Day of the week
    Java Syntax, Level 4, Lesson 4
    Under discussion
    what is error in the code?please tell the error
    • 10/7/18
    • 1562views
    • 1comment
    0
  • Arjun Kiruthivasan
    Level 14
    Chennai
    Question about the task Three numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    how to solve this? package com.codegym.task.task04.task0424; /* Three numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here boolean check=false; BufferedReader reader = new BufferedReader(new InputStreamRe
    • 8/12/18
    • 2124views
    • 4comments
    0
  • Sindhura
    Level 15
    Delhi
    Question about the task Stack trace with 10 calls
    Java Syntax, Level 9, Lesson 2
    Resolved
    whats wrong with this?package com.codegym.task.task09.task0904; /* Stack trace with 10 calls */ public class Solution { public static void main(String[] args) throws Exception { int stackTraceLength = method1().length - method10().length + 1; method1(); } public static StackTraceElement[]
    • 10/7/18
    • 2040views
    • 2comments
    0
  • Shahanshah Alam
    Level 9
    Mohali
    Question about the task Checking the order
    Java Syntax, Level 7, Lesson 9
    Resolved
    help pleaseits showing correct index but not at correct position
    • 9/29/18
    • 2290views
    • 17comments
    0
  • Hamza Abbasi
    Level 2
    Jhelum
    Under discussion
    Display the circumference of a circle, which is calculated using the formula: C = 2 * pi * radius. The result is a fractional number (double).Display the circumference of a circle, which is calculated using the formula: C = 2 * pi * radius. The result is a fractional number (double).
    • 10/7/18
    • 1598views
    • 1comment
    0
  • 1
  • ...
  • 364
  • 365
  • 366
  • 367
  • 368
  • ...
  • 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