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
  • Praveen
    Level 2
    Dayton
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    I'm confuse why my code isn't working. Help?package com.codegym.task.task02.task0201; /* Implement the print method */ public class Solution { public static void main(String[] args) { Solution sol = new Solution(); sol.print("CodeGym is the best"); sol.print("CodeG
    • 20.04.2019
    • 1400views
    • 3comments
    0
  • edis emin
    Level 7
    London
    Under discussion
    Please help I am stuck on level 4 lesson 4package com.codegym.task.task04.task0412; /* Positive and negative numbers */ import java.io.*; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { Scanner scanner = new Scanner(System.in); int num = scanner.readInt();
    • 21.04.2019
    • 1039views
    • 2comments
    0
  • Sabine Meijran-Prins
    Level 7
    Enschede
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Resolved
    colors not displayedAt my compiler it is working, but when I click to verify it keeps telling me that the colors are not displayed..
    • 26.12.2018
    • 2149views
    • 10comments
    0
  • Wesley Dolton Masunika
    Level 8
    Pretoria
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Under discussion
    Please advise on the issue belowThe below failure message is shown: The printList method should display each element of the passed list on a new line. The program should display the three supplementary lists using the printList method.
    • 22.04.2019
    • 1222views
    • 1comment
    0
  • SilverZax
    Level 18
    Poltava
    Question about the task Identical words in a list
    Java Syntax, Level 10, Lesson 11
    Resolved
    The programm seems works correct, but don't pass third conditionThe programm seems works correct, but don't pass third condition
    • 18.04.2019
    • 1870views
    • 2comments
    0
  • Kymie
    Level 4
    Singapore
    Question about the task Favorite poem
    Java Syntax, Level 1, Lesson 8
    Resolved
    "Cannot find symbol" error Hi, What am I doing wrong in this piece of code This seems to happen whenever I use the printIn() function. I have tried resetting multiple times too but to no avail. Do let me know if you can spot the error! Thanks in advance!
    • 22.04.2019
    • 1412views
    • 4comments
    0
  • Joy Majumdar
    Level 16
    Kolkata
    Question about the task In the blue depths of the stack trace…
    Java Syntax, Level 9, Lesson 2
    Resolved
    I am calling the stacktrace lengthBut where is the problem ?
    • 21.04.2019
    • 2886views
    • 2comments
    0
  • Rizwan Ahmed Shaik
    Level 2
    Hyderabad
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Under discussion
    Kindly let me know what is the error in this program?Hello can anyone say what is the error in this program public class Solution { public static void main(String[] args) { System.out.println("Hello"); System.out.println("Hey"); System.out.println("you"); System.out.println("whatsup"); Solution.print(); So
    • 21.04.2019
    • 1047views
    • 2comments
    0
  • Vaishnavi
    Level 8
    Waukesha
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Code works, but does not verify.When I run my code, I get the right code, but when I try to verify it, it says that I got none of the 5 requirements right, even though I get the correct system output. What do I do?
    • 21.04.2019
    • 1727views
    • 1comment
    0
  • dean
    Level 8
    Deutschland
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Not verify my code package com.codegym.task.task04.task0415; /* Rule of the triangle */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
    • 21.04.2019
    • 1372views
    • 2comments
    0
  • qsasdgkl
    Level 17
    San Diego
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Resolved
    Stuck on this for 2 days for some reason the last element "LOL" is not processed corretly. Following code works great until the last element in the ArrayList "LOL", which should be duplicated as per the rules but instead it get stuck in an infinate loop and the output (including the debug output) is Current list: [love, love, lyre, LOL] Debug three LOL 3 Current list: [love, love, lyre,
    • 21.04.2019
    • 1541views
    • 4comments
    0
  • thisisalongname
    Level 15
    Spokane
    Question about the task Roy G. Biv…
    Java Syntax, Level 3, Lesson 6
    Under discussion
    Code is not printing out colors on IDE but does on siteI've been doing the tasks in IntelliJ IDEA, and for some reason this code wouldn't print out like it does on site. When I run it on the IDE it outputs "Process finished with exit code 0". I spent a long time messing with the code thinking I had done something wrong, but when I copied it to the sites
    • 21.04.2019
    • 1553views
    • 1comment
    0
  • Eduardo
    Level 23
    Coyoacan
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Resolved
    Need a hintHi, I can't figure out who to solve this, since I already used a constructor with two intakes, I can't duplicate it and just change parent(mother) to father. Any hints on how to work around that? or should I change that approach completely? Thanks
    • 26.10.2018
    • 1718views
    • 5comments
    0
  • Hafsah Jilanee
    Level 10
    Karachi
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Under discussion
    condition isn't valid Hi, so the condtion i set isn't working for the year 3300 pls help
    • 20.04.2019
    • 1355views
    • 2comments
    0
  • Sanzhik
    Level 2
    Novoishimskiy
    Question about the task Pay raise
    Java Syntax, Level 2, Lesson 2
    Under discussion
    ыва 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) { } }
    • 20.04.2019
    • 1307views
    • 1comment
    0
  • Patson T Lawrence
    Level 8
    Kampala
    Question about the task Shuffled just in time
    Java Syntax, Level 7, Lesson 12
    Under discussion
    english?? or ??interpretation is the problem.
    • 06.03.2019
    • 1144views
    • 2comments
    0
  • Kisszol
    Level 15
    Toeroekbalint
    Question about the task Beer. Part 2. The recovery.
    Java Core, Level 3, Lesson 2
    Resolved
    Esperanto - Programo funkcias sed sistemo ne akceptas, Kial ? English - Program works, but system does not accept itEsperanto - Sistemo ne akceptas mian solvon English - System does not accept my solution
    • 17.04.2019
    • 1177views
    • 4comments
    0
  • Serg
    Level 23
    Tyumen
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    Why not pass the test? package com.codegym.task.task02.task0216; public class Solution { public static int min(int a, int b, int c) { if (a <= b && b <= c) return a; else if (b <= a && b <= c) return b; else return c; } public stati
    • 19.04.2019
    • 978views
    • 1comment
    0
  • Cristian Stefan
    Level 4
    Bucharest
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    returning minimum solution works in ide but fails on codegymHello, It seems that my solution fails on codegym even though it gives the right answer in IntelliJ. Can you give me some hints of what am I doing wrong ? Thank you Cristian
    • 09.04.2019
    • 1496views
    • 6comments
    0
  • Sobbor
    Level 9
    Banja Luka
    Question about the task Predictions
    Java Syntax, Level 3, Lesson 8
    Resolved
    What is wrong?Please for help, I don't understand what is wrong, i'm getting these error messages? java.lang.NumberFormatException: Solution.java, method main, line: 17 Error converting a string to a number (invalid format). Thank you in advance!!!
    • 19.04.2019
    • 1322views
    • 3comments
    0
  • Jon Hjerting
    Level 1
    Oslo
    Question about the task Sum of the digits of a three-digit number
    Java Syntax, Level 3, Lesson 12
    Under discussion
    Response on this task does not register.I have found that submitted tasks frequently fail to register. Normally restarting IntelliJ and resubmitting will work, but with this particular task even that fails to work. I have submitted this task several times. It passes all tests, but when I go to my task list it is still there. The task pas
    • 25.03.2019
    • 1685views
    • 1comment
    0
  • Myles Thompson
    Level 4
    Richardson
    Question about the task Predictions
    Java Syntax, Level 3, Lesson 8
    Resolved
    Says that it doesn't correspond to the task conditions. It says "The displayed text does not correspond to the task conditions.". Any ideas? Thanks!
    • 28.01.2019
    • 1640views
    • 11comments
    0
  • Connor
    Level 8
    Boston
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    I've been at this for too many hours.If someone could review my code and give me a few pointers that would be ~FABULOUS~
    • 19.04.2019
    • 1498views
    • 3comments
    0
  • Serg
    Level 23
    Tyumen
    Question about the task Print three times
    Java Syntax, Level 2, Lesson 8
    Under discussion
    Why are the results displayed like this? package com.codegym.task.task02.task0219; public class Solution { public static void print3(String s) { System.out.print(s + " " + s + " " + s + " "); } public static void main(String[] args) { print3("window"); print3("file"); } } Why does my screen disp
    • 19.04.2019
    • 1224views
    • 1comment
    0
  • Jeff Jeffy
    Level 15
    Irvine
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    I don't know whats wrong.
    • 11.03.2019
    • 1536views
    • 3comments
    0
  • corsi
    Level 4
    Furiani
    Question about the task Predictions
    Java Syntax, Level 3, Lesson 8
    Resolved
    Predictions code gym exercice package com.codegym.task.task03.task0319; /* Predictions */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader scan = new BufferedReader(new InputStreamReader(System.in)); String name = scan.readLine();
    • 02.04.2019
    • 1606views
    • 4comments
    0
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task Adapter
    Java Core, Level 9, Lesson 3
    Resolved
    Please Help Cant Understand The RequirementsPlease Help...
    • 19.04.2019
    • 1674views
    • 1comment
    0
  • Ram Charan Teja kaikala
    Level 3
    Question about the task The required number
    Java Syntax, Level 2, Lesson 5
    Resolved
    Comment out as many lines as possible to display the number 19(while i am running code 19 is displaying but while i am verifying it is showing error(You need to comment out as many required lines as possible and not change the rest.) what is the mistake i have done.) public class Solution { public static void main(String[] args) { int x = 1; int y = 0; y = y + x; x = x * 2; y = y + x; x = x * 2; y = y + x; // x = x * 2; y = y + x; x = x * 2; y = y + x; System.
    • 09.08.2018
    • 1635views
    • 2comments
    0
  • Xubres
    Level 16
    Uranus
    Question about the task StringHelper class
    Java Syntax, Level 6, Lesson 8
    Resolved
    What's wrong?It says it won't compile on the server but it runs fine on my computer? public class StringHelper { public static String multiply(String s) { return s.repeat(5); } public static String multiply(String s, int count) { return s.repeat(count); } public static voi
    • 12.12.2018
    • 2476views
    • 6comments
    0
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task Reversing a file
    Java Core, Level 8, Lesson 5
    Resolved
    Help
    • 18.04.2019
    • 1521views
    • 2comments
    0
  • 1
  • ...
  • 330
  • 331
  • 332
  • 333
  • 334
  • ...
  • 371
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 © 2025 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2025 CodeGym