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
  • Sanjay Chauhan
    Level 28
    Delhi
    Question about the task Reading a file
    Java Core, Level 3, Lesson 11
    Archived
    Program display too many lines.Dear CodeGym Members, like other users, I am also getting "Program display too many lines". Will it possible for you to check what am I doing wrong here? I tested with a file and it's working fine.
    • 2/24/20
    • 1307views
    • 8comments
    1
  • Art
    Level 13
    Chisinau
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Under discussion
    Where's the issue?I know that my code isn't the most eye pleasing code you could write, but it works and the output is 100% right. Where's the issue?
    • 3/5/20
    • 973views
    • 2comments
    0
  • Raj Mishra
    Level 2
    India
    Question about the task Checking the order
    Java Syntax, Level 7, Lesson 9
    Resolved
    Please help me in understanding the questionI am not understanding the logic of the question, what to code ? Could you pls help me understanding the question ?
    • 1/31/20
    • 1103views
    • 2comments
    0
  • Mikayla Pace
    Level 27
    Salt Lake City
    Question about the task Tracking changes
    Java Core, Level 9, Lesson 11
    Under discussion
    I'm at a loss, need another pair of eyesI've been over and over this, I'm sure there is something simple I am missing, but I can't figure out what it is, it seems like it should work... also why does the validator say I haven't closed my FileReader Streams?
    • 1/9/20
    • 1355views
    • 2comments
    0
  • Luke
    Level 5
    Seattle
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    Why do these objects work?Is "import.java.io.*" the reason that the objects "InputStream, Reader, and BufferedReader" have actual functions? Like are the methods that determine the abilities of those objects defined in some class called java.io?
    • 3/6/20
    • 1521views
    • 1comment
    0
  • Antonia
    Level 10
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Under discussion
    !!!help please
    • 7/24/19
    • 1284views
    • 2comments
    0
  • hidden #10450313
    Level 8
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Under discussion
    What is wrong here?I can't tell what is going wrong, output is correct and I see no problem with what I have done here. No errors when I run it, so I'm just confused at this point.
    • 7/2/19
    • 1259views
    • 2comments
    0
  • Iasu
    Level 18
    Question about the task Adding
    Java Syntax, Level 4, Lesson 16
    Under discussion
    I can't go anyway with task! How many inputs does the task take. I'm very confused..I can't go anyway with task! How many inputs does the task take. I'm very confused..
    • 12/9/18
    • 2046views
    • 2comments
    0
  • hidden #10589341
    Level 19
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Resolved
    Why the output is these?My output is java.lang.NumberFormatException: For input string: "String1" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.parseInt(Integer.java:615) at com.codegym.task.task10.task1019.Solution
    • 3/5/20
    • 1164views
    • 2comments
    0
  • Johannes
    Level 27
    Centurion, Pretoria
    Question about the task Checking the order
    Java Syntax, Level 7, Lesson 9
    Resolved
    Please help: works when testing, but not validating 4th requirement.public class Solution { public static void main(String[] args) throws IOException { ArrayList myList = new ArrayList(); BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String s; int i=0; for (i=0;i<10;i++){
    • 3/5/20
    • 1420views
    • 3comments
    0
  • David
    Level 26
    Bucharest
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Under discussion
    Can anyone explain me, please, what am I doing wrong?BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int maximum = 0 ; int n=-1; while(n<=0) { n = Integer.parseInt(reader.readLine()); } if(n>0) { for (int i = 0; i < n; i++) {
    • 3/5/20
    • 1255views
    • 3comments
    0
  • - FniJnn -
    Level 33
    Paris
    Question about the task Problem solving
    Java Core, Level 9, Lesson 8
    Under discussion
    Output is correct :(Hello, I wrote this, it works fine (except for double multiplications like 6 * 6 * 6 but codegym says that it comes from additions so i don't think this is the problem) thanks :)
    • 12/8/19
    • 1437views
    • 3comments
    0
  • ddi
    Level 18
    Dortmund
    Question about the task Turnip
    Java Core, Level 3, Lesson 11
    Resolved
    Missing the last requirement help! I am missing the last requirement can someone help me?
    • 8/14/19
    • 1718views
    • 1comment
    0
  • CJ
    Level 5
    El Cajon
    Question about the task Implement the fight method
    Java Syntax, Level 5, Lesson 5
    Under discussion
    Whats the problem with my code? Keeps failing last check public class Cat { public int age; public int weight; public int strength; public Cat() { } public boolean fight(Cat anotherCat) { if (this.age <= anotherCat.age && this.weight >= anotherCat.weight && this.strength >= anotherCat.st
    • 3/5/20
    • 1237views
    • 2comments
    0
  • Johannes
    Level 27
    Centurion, Pretoria
    Question about the task Flip the array
    Java Syntax, Level 7, Lesson 4
    Resolved
    works when running, but not meeting task requirements for creating array ? Why ??public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int n,i; Integer[] iArray = new Integer[10]; for (i=0;i<10;i++){ n = Int
    • 3/5/20
    • 1240views
    • 1comment
    0
  • Dinesh
    Level 7
    Delhi
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    I am not getting the proper output of First print statementpackage com.codegym.task.task02.task0216; /* Minimum of three numbers */ public class Solution { public static int min(int a, int b, int c) { //write your code here int minimum; if ( a > b ) minimum = b; else minimum = a; if ( a >
    • 3/2/20
    • 1307views
    • 2comments
    0
  • Lelush
    Level 7
    Question about the task Notepad for new ideas
    Java Syntax, Level 6, Lesson 11
    Resolved
    Why it doesnt verify?pls help
    • 12/15/19
    • 1994views
    • 5comments
    0
  • Arun
    Level 17
    Tirupati
    Question about the task Census
    Java Syntax, Level 8, Lesson 8
    Resolved
    Executed Pogrampackage com.codegym.task.task08.task0815;
    • 3/5/20
    • 1075views
    • 0comments
    0
  • Liliane Top
    Level 17
    Amsterdam
    Question about the task 2048 (Part 6/18)
    Games, Level 0, Lesson 2
    Under discussion
    I copied and pasted but do not get it to work. I have some specific questions about how certain code worksThere are a couple of things I do not understand 1) How to add a color to the specific field? 2) should you use if statements or a a switch statement 3) why does it not accept the empty string "" in the setCellValueEx ? 4) I do not understand this part of the code: private void drawScene(){
    • 3/1/20
    • 1137views
    • 1comment
    0
  • Lgd
    Level 20
    London
    Question about the task Flip the array
    Java Syntax, Level 7, Lesson 4
    Resolved
    I must be making an elementary mistake here. output looks good but it passes validation. please helpwhy is the validation failing on the last item ? suggestions please
    • 3/2/20
    • 1174views
    • 5comments
    0
  • Lgd
    Level 20
    London
    Question about the task String array in reverse order
    Java Syntax, Level 7, Lesson 4
    Resolved
    Go to display output in reverse order. It looks ok but it wont validateI set all elements to "" then read in 8 strings ok when it prints out it shows all ten elements in reverse order - starting with element [9] and element [8] as "" it wont validate . any suggestions please. many thanks
    • 3/2/20
    • 1318views
    • 3comments
    0
  • Lgd
    Level 20
    London
    Question about the task Flip the array
    Java Syntax, Level 7, Lesson 4
    Resolved
    Please can anybody help with this ? the output looks fine, I stepped through in debug - looks good. but it wont pass validation it says array is not displayed in reverse order
    • 3/4/20
    • 1215views
    • 3comments
    0
  • hidden #10362262
    Level 9
    Question about the task Minimum number of statics
    Java Syntax, Level 6, Lesson 11
    Under discussion
    I got it to work, but need to understand fully how this works.Can someone write another (though similar) example to show how this exercise is working? Thank you!
    • 2/15/19
    • 1956views
    • 4comments
    0
  • null
    Level 26
    Orlando
    Question about the task Month number
    Java Syntax, Level 8, Lesson 11
    Under discussion
    I thought enum was also a java collection. This make it more simple than using ArrayList tho.
    • 3/3/20
    • 1133views
    • 1comment
    0
  • Van Ha
    Level 41
    Bodegraven
    Question about the task Arkanoid (part 18)
    Java Multithreading, Level 3, Lesson 13
    Resolved
    calling draw on all bricksHi, When trying to call the draw method on all bricks with a for loop all conditions fail to verify, if I remove the for loop the first condition verifies. Am I overlooking something obvious?
    • 3/4/20
    • 1244views
    • 2comments
    0
  • Damodar Gopagoni
    Level 11
    Singapore
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Resolved
    closest to 10I am getting expected result, But system not accepting. Can some one review and support on this. Thanks
    • 3/3/20
    • 1338views
    • 4comments
    0
  • Diana Pettit
    Level 4
    Mobile
    Question about the task Multiplication table
    Java Syntax, Level 3, Lesson 6
    Under discussion
    I don't know why I'm not fulfilling all the requirementsIs this not a table? Are there not spaces between the numbers? Ami missing something?
    • 1/12/20
    • 1231views
    • 5comments
    0
  • Michael Brimage
    Level 19
    Washington D.C.
    Question about the task Multiplication table
    Java Syntax, Level 3, Lesson 6
    Resolved
    What am I doing wrong?Hello, since we have not covered control statements (loops) yet; I tried to execute this problem based on the criteria set forth and the skills we've learned so far. Please see my solution below which has the following output: 1 2 3 4 5 6 7 8 9 10 2 4 6 8 10 12 14 16 18 20 3 6 9 12
    • 2/10/20
    • 1222views
    • 6comments
    0
  • hidden #10589341
    Level 19
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Under discussion
    why my code could not duplicate word "love"??????my input is love lyre plz help me!
    • 2/28/20
    • 1093views
    • 5comments
    0
  • Goran
    Level 41
    Belgrade
    Question about the task Checking the order
    Java Syntax, Level 7, Lesson 9
    Under discussion
    Bug in program that passed checking ArrayList<String> list = new ArrayList<String>(); BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); for (int i=0; i < 10; i++) { list.add(reader.readLine()); } int last; int current; for (int
    • 2/28/20
    • 1005views
    • 1comment
    0
  • 1
  • ...
  • 227
  • 228
  • 229
  • 230
  • 231
  • ...
  • 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