CodeGym
AI Academy
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
  • 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
    • 1325views
    • 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
    • 1529views
    • 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
    • 1770views
    • 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
    • 1333views
    • 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
    • 1339views
    • 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
    • 1398views
    • 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
    • 2052views
    • 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
    • 1160views
    • 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
    • 1182views
    • 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
    • 1227views
    • 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
    • 1435views
    • 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
    • 1281views
    • 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
    • 2074views
    • 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
    • 1209views
    • 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
    • 1314views
    • 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
    • 1380views
    • 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
    • 1284views
    • 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
    • 1296views
    • 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
    • 1146views
    • 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
    • 1106views
    • 1comment
    0
  • Art
    Level 13
    Chisinau
    Question about the task Shuffled just in time
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Output as it supposed to be, but task won't get confirmed - as usually -,-Where's the issue? Thanks alot.
    • 3/1/20
    • 1198views
    • 10comments
    0
  • Art
    Level 13
    Chisinau
    Question about the task Cat code won't compile
    Java Syntax, Level 7, Lesson 12
    Under discussion
    What am I missing here?What am I missing here?
    • 3/3/20
    • 1045views
    • 1comment
    0
  • Anonymous #10410173
    Level 22
    Delhi
    Question about the task Computer
    Java Core, Level 4, Lesson 8
    Resolved
    why constructor not acceptingwhere i am doing mistake... please help!!
    • 3/3/20
    • 1223views
    • 1comment
    0
  • Sindhura
    Level 15
    Delhi
    Question about the task Implement the printMainInfo method
    Java Core, Level 4, Lesson 8
    Under discussion
    Help me please.Getting error package com.codegym.task.task14.task1412; /* Implement the printMainInfo method */ public class Solution { public static void main(String[] args) { //Object obj = new Movable(); // Movable movable = (Movable) obj; // Rectangle drawable = new Rectangle(); Rectang
    • 10/16/18
    • 1832views
    • 6comments
    0
  • shabarish kumar
    Level 20
    Hyderabad
    Question about the task 2048 (Part 7/18)
    Games, Level 0, Lesson 2
    Under discussion
    Unable to meet the 3rd requirement.I have used Arrays.equals() method to check whether the row is changed or not. But it is unable to meet the requirement. Could anyone help me to resolve the issue.
    • 8/21/19
    • 1613views
    • 2comments
    0
  • Fadi AlSaidi
    Level 13
    Carrollton
    Question about the task Compiling the program
    Java Core, Level 3, Lesson 11
    Resolved
    no enclosing instance of type com.codegym.task.task13.task1325.Solution is in scopehow do I resolve this error? I get it when I inherit Fox
    • 3/18/19
    • 2563views
    • 2comments
    1
  • Martin Evtimov
    Level 22
    Chicago
    Question about the task Neo
    Java Core, Level 3, Lesson 11
    Under discussion
    I don't know Rick, It looks broken.What am I doing wrong?
    • 10/28/18
    • 2166views
    • 3comments
    1
  • Elvis Lee
    Level 41
    Aurora
    Question about the task Sokoban (part 15)
    Java Collections, Level 10, Lesson 15
    Resolved
    Alexandre, you're not alone! I got the same problem!The codes work perfectly with the requiremnet but failed the validator. It's always painful to guess what the validator wants, the comments from it are totally not useful.
    • 2/28/20
    • 1153views
    • 3comments
    0
  • Cam
    Level 15
    Bogota
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    what is wrongHello World! after giving it some thought, I came up with this code, my main problem here is that it apparently does not return the minimum value between the three numbers. Can someone please tell me why it is not working?
    • 3/3/20
    • 1264views
    • 1comment
    0
  • Hakkı Anıl Fındıkçıoğlu
    Level 6
    Ankara
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Resolved
    Infinite loopI really couldn't figure out why am I in an infinite loop.
    • 3/2/20
    • 1022views
    • 2comments
    0
  • 1
  • ...
  • 228
  • 229
  • 230
  • 231
  • 232
  • ...
  • 375
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