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
  • Tommy Guinness
    Level 15
    Newcastle West
    Question about the task Min and max in arrays
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Dont meet 3rd requirment but out put seems be okpackage com.codegym.task.task07.task0721; import javax.swing.*; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; /* Min and max in arrays */ public class Solution { public static void main(String[] args) throws IOException
    • 10/16/19
    • 981views
    • 2comments
    0
  • Ash Ka
    Level 13
    Calgary
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion
    Giving the inputs satisfies the conditions but verification failsGiving the inputs satisfies the conditions but verification fails
    • 3/13/19
    • 1243views
    • 4comments
    0
  • hemant
    Level 8
    prayagraj
    Question about the task Multiplication table
    Java Syntax, Level 3, Lesson 6
    Under discussion
    How do I display looped numbers in one line. I.e.1 2 3 4...How do I use loop so that numbers are displayed in one line. I.e. 1 2 3 4 5 .....
    • 4/5/19
    • 1459views
    • 4comments
    0
  • Somya Gupta
    Level 4
    Vrindavan
    Question about the task Multiplication table
    Java Syntax, Level 3, Lesson 6
    Under discussion
    The displayed text should contain 10 lines. RECOMMENDATION FROM YOUR MENTOR Be sure that you are not displaying unnecessary blank lines. Each displayed string must contain 10 numbers separated by spaces. error package com.codegym.task.task03.task0314; /* Multiplication table */ public class Solution { public static void main(String[] args) { int i,j,ans; for(i=1;i<=10;i++) { System.out.println("\n "); for(j=1;j<=10;j++)
    • 8/22/18
    • 1576views
    • 2comments
    0
  • Letenyei Ádám
    Level 16
    Bakonyszombathely
    Question about the task Moon Lander (Part 12/23)
    Games, Level 0, Lesson 4
    Under discussion
    Please help me!Please help me! I don't know the right answer for the last 3 task :(
    • 10/13/19
    • 1031views
    • 2comments
    0
  • Wei Cui
    Level 39
    Newark
    Question about the task Computer
    Java Core, Level 4, Lesson 8
    Resolved
    Cant solve problemjavax.management.monitor.Monitor is abstract; cannot be instantiated when run it said class monitor is abstract, but i couldn't find any problem, please help.
    • 10/15/19
    • 945views
    • 5comments
    0
  • Elio Borges
    Level 3
    Ribeirao
    Question about the task Only 20 will do
    Java Syntax, Level 1, Lesson 4
    Under discussion
    I it solve with thisresult = - a+b-c+d; Output 20 You need change value positive not negative
    • 10/15/19
    • 947views
    • 1comment
    0
  • John
    Level 27
    Washington DC
    Question about the task Fixing bugs
    Java Core, Level 4, Lesson 8
    Under discussion
    Not sure how to implement getCurrentCreature() in Orca and Whale classesNot sure how to implement getCurrentCreature() in Orca and Whale classes
    • 10/14/19
    • 1176views
    • 1comment
    0
  • Mike
    Level 9
    Lublin
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Archived
    code works when I test it, but codegym tests failed.My code works when I test it, but codegym tests failes. Why?
    • 10/15/19
    • 918views
    • 2comments
    0
  • Shubham Falke
    Level 8
    Pune
    Under discussion
    not getting "dot" operatorpublic class Man { int dnaCode; public boolean equals(Man man) { return this.dnaCode == man.dnaCode; } public static void main(String[] args) { Man man1 = new Man(); man1.dnaCode = 1111222233; Man man2 = new Man(); man2.dnaCode = 1111222233;
    • 5/1/19
    • 1180views
    • 1comment
    0
  • Iliri Cani
    Level 37
    Tirana
    Question about the task AmigoSet (part 2)
    Java Collections, Level 4, Lesson 15
    Archived
    What is wrong with this task???Am i stupid or is this task bugged. i did everything that conditions said and still one condition doesnt validate!!!
    • 9/18/19
    • 1212views
    • 1comment
    0
  • James Mackenzie
    Level 7
    Victoria
    Question about the task Remove and insert
    Java Syntax, Level 7, Lesson 6
    Resolved
    out of index boundry?not sure why its failing here, i feel like the logic should repeat 13 times until its shuffled the strings about. anyone see something i cant?
    • 10/16/19
    • 1230views
    • 1comment
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    Please helpWhy is the last condition no being met?
    • 10/15/19
    • 1413views
    • 8comments
    0
  • lexter
    Level 16
    New York
    Question about the task Labels and numbers
    Java Syntax, Level 4, Lesson 7
    Under discussion
    Dont know whats wrong with my code. Error says on displaying the zero "Be sure that the program doesn't display any extra text."Scanner scn = new Scanner(System.in); int num = scn.nextInt(); if(num == 0) { System.out.print("Zero"); } if(num < 1 && num % 2 == 0) { System.out.println("Negative even number"); } if(num < 1 && num% 2 != 0) { System.out.println("Negative odd number"
    • 9/19/19
    • 1177views
    • 1comment
    0
  • Deepanshu Kumar
    Level 1
    Hyderabad
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Help me debugging this code. Don't know what's wrong with the code. It looks fine to me. I read about array and bubble sort on an another website and tried to implement it. But the code didn't ran as expected.
    • 9/20/19
    • 1270views
    • 2comments
    0
  • maciek
    Level 8
    Stockholm
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Archived
    whats wrong? result is oki do not know what is wrong in my code.
    • 10/15/19
    • 1479views
    • 2comments
    0
  • parth shah
    Level 3
    Mumbai
    Question about the task Max, Bella, and Jack
    Java Syntax, Level 2, Lesson 3
    Under discussion
    Why condition ''Each Dog object must be assigned a name'' is not getting fulfilled here ?My Code :: public class Solution { public static void main(String[] args) { Dog Max = new Dog(); Dog Bella = new Dog(); Dog Jack = new Dog(); //write your code here } public static class Dog { public String name; } } Question is :: Wh
    • 11/16/18
    • 1919views
    • 9comments
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Catching unchecked exceptions
    Java Syntax, Level 9, Lesson 8
    Under discussion
    HELP PLS GUUUYS(Pls give me full solution for my understanding
    • 6/21/19
    • 1448views
    • 2comments
    1
  • Muhammad Faizan Janjua
    Level 6
    Lahore
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    howww import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader bf=new BufferedReader(new InputStreamReader(System.in)); int a=Integer.parseInt(bf.readLine()); int b=Integer.parseInt(bf.readL
    • 9/27/18
    • 1942views
    • 4comments
    0
  • Kent Hervey
    Level 19
    Question about the task Somehow average
    Java Syntax, Level 4, Lesson 16
    Under discussion
    Correct, but too many linesI found a solution, but it seems to be too long...needs refactoring? After I checked for duplicates, I had 7 more checks to catch them all. Seems like three should be enough?
    • 10/15/19
    • 1155views
    • 1comment
    0
  • Patrick freeman
    Level 14
    Buffalo
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    Is there an easier way for this?So, this was my solution for this problem, and I feel I may have over complicated this a little bit. My output from entering 1,2,9,9 comes out as 1, which is incorrect. What I tried to do was break down all the logic required to both come up with a maximum number between the 4, and only display 1 in
    • 9/28/19
    • 1265views
    • 4comments
    0
  • Soham
    Level 5
    Kitchener
    Question about the task Seasons on Terra
    Java Syntax, Level 4, Lesson 4
    Under discussion
    what is wrong here?getting uneven output, autumn winter spring autumn something like that, if someone can please explain
    • 10/15/19
    • 1047views
    • 4comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Console-based piggy bank
    Java Syntax, Level 5, Lesson 12
    Under discussion
    I don't understandI'm really not sure where I've gone wrong, please help.
    • 10/15/19
    • 1230views
    • 2comments
    0
  • Aswini
    Level 5
    Irving
    Question about the task Repetition is the mother of all learning
    Java Syntax, Level 2, Lesson 8
    Under discussion
    Cant use system.out.println methodHi, Im trying to reun the above task in IntelliJ idea and I cant use System.out.println in print3 method in intelli j idea, Im getting error as follows My program: package com.codegym.task.task02.task0218; /* Repetition is the mother of all learning */ public class Solution { public static
    • 12/14/18
    • 3306views
    • 2comments
    0
  • ывапролд
    Level 19
    Moscow
    Question about the task Symbol frequency
    Java Core, Level 8, Lesson 11
    Under discussion
    What should be fixet?I don't understand, why it thinks i do not create the stream, do not sort bytes and even do not close the stream.
    • 10/15/19
    • 1400views
    • 3comments
    0
  • sachin thakur
    Level 8
    Addanki
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion
    Need HelpPlease see what is wrong in my code. Thank you
    • 10/15/19
    • 1183views
    • 3comments
    0
  • Dedcom
    Level 19
    Lahore
    Question about the task Family census
    Java Syntax, Level 7, Lesson 12
    Resolved
    helpwhats wrong in this code
    • 11/17/18
    • 2483views
    • 4comments
    0
  • Mishra
    Level 3
    Lansing
    Question about the task Our first converter!
    Java Syntax, Level 2, Lesson 2
    Under discussion
    My answer is corerct, but compiler keeps giving the errorCompiler Error Message: "The convertCelsiusToFahrenheit method must correctly convert degrees Celsius to degrees Fahrenheit and return the result."
    • 10/15/19
    • 1071views
    • 2comments
    0
  • Soham
    Level 5
    Kitchener
    Question about the task Seasons on Terra
    Java Syntax, Level 4, Lesson 4
    Under discussion
    what is wrong with this code.can someone please explain in simple language since i am not a pro in java, why both if else and switch statements are failing the last condition of the code.
    • 10/15/19
    • 2267views
    • 1comment
    0
  • Alexandru Ovcinicov
    Level 15
    London
    Question about the task GCD
    Java Core, Level 4, Lesson 8
    Resolved
    Help PleaseLast validation fails . The results are fine.
    • 10/12/19
    • 1268views
    • 8comments
    2
  • 1
  • ...
  • 271
  • 272
  • 273
  • 274
  • 275
  • ...
  • 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