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
  • Ovo Leslie
    Level 26
    Lagos
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Resolved
    Whats wrong with my code pls!!!My program seems to run correctly, but it is not satisfying the conditions. Help needed!
    • 8/12/19
    • 1392views
    • 1comment
    0
  • ousi4ous
    Level 2
    Douala
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Resolved
    I have difficulties in getting this task done as i dont understand anything public static void print(String s) { //write your code here String data = print.("Java is easy to learn!"); String data = print.("Java opens many opportunities!"); print.write(data); String data = print.read("Java opens many opportunities!");
    • 4/8/19
    • 1592views
    • 4comments
    1
  • kiwii
    Level 37
    Question about the task Space (part 3)
    Java Collections, Level 3, Lesson 15
    Resolved
    What is the problem?Cannot figure it out.
    • 8/22/19
    • 1074views
    • 2comments
    1
  • Premachandran
    Level 35
    Ernakulam
    Question about the task Food
    Java Core, Level 4, Lesson 4
    Under discussion
    pl help. I am getting this error "non-static method onSelect() cannot be referenced from a static context: Solution.java, line: 26, column: 19"Pl help.
    • 11/17/18
    • 1858views
    • 4comments
    0
  • Anonymous #10410173
    Level 22
    Delhi
    Question about the task Minimum and Maximum
    Java Core, Level 1, Lesson 11
    Resolved
    help????what's the error????
    • 8/22/19
    • 1264views
    • 1comment
    0
  • Matjes
    Level 12
    Prague
    Question about the task Creating cats
    Java Syntax, Level 5, Lesson 9
    Resolved
    Help! ☺Can anybody help me, please? I cannot find the root cause of why my code is not being accepted. Any help would be appreciated. Thank you!
    • 8/21/19
    • 1525views
    • 4comments
    0
  • Yash
    Level 15
    Sugar Hill
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Why not work.If I'm correct. Line 45 should display its not a leap year if its not a leap year.
    • 5/15/19
    • 1619views
    • 6comments
    0
  • Raisa Toscano
    Level 27
    Tepic
    Question about the task Number of days in the year
    Java Syntax, Level 4, Lesson 4
    Resolved
    i cant find the mistake, the output its ok... if(year%400==0 || year%4==0) System.out.println("Number of days in the year: 366"); else System.out.println("Number of days in the year: 365");
    • 12/15/18
    • 2579views
    • 2comments
    0
  • AK
    Level 4
    Mumbai
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    What is wrong in code? pl help.What is wrong in code? pl help.
    • 8/19/19
    • 1079views
    • 2comments
    0
  • Anwar
    Level 3
    Jaipur
    Question about the task Where does a Person come from?
    Java Syntax, Level 2, Lesson 2
    Under discussion
    i don't understand 5th Requirement. help me to understand. public static void main(String[] args) { //write your code here Person Person = new Person(); } public static class Person { //write your code here String name; int age; int weight; int money; } }
    • 6/8/19
    • 1715views
    • 6comments
    0
  • vivek mankar
    Level 9
    Nagpur
    Question about the task Five winners
    Java Syntax, Level 8, Lesson 11
    Under discussion
    I am not getting this ......? Ipackage com.codegym.task.task08.task0826; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.* ; /* Five winners */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputSt
    • 8/10/19
    • 1348views
    • 3comments
    0
  • Letenyei Ádám
    Level 16
    Bakonyszombathely
    Question about the task Software update
    Java Syntax, Level 8, Lesson 11
    Under discussion
    What is the problem? Please help package com.codegym.task.task08.task0829; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /* Software update */ public class Solution { public sta
    • 7/23/19
    • 1632views
    • 6comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Help pleaseI've tried everything to meet the last condition nothing works. Please Help. Thank you.
    • 8/21/19
    • 978views
    • 2comments
    0
  • kapil
    Level 12
    delhi
    Question about the task Set of cats
    Java Syntax, Level 8, Lesson 11
    Resolved
    problem while printingi have checked by printing all three cats and by printing cats after removing one, but it fails all time....please help someone
    • 1/31/19
    • 2342views
    • 5comments
    1
  • Itachi
    Level 16
    Brooklyn
    Question about the task Minesweeper (Part 13/16)
    Games, Level 0, Lesson 0
    Resolved
    helpit is not compiling
    • 8/21/19
    • 1459views
    • 0comments
    0
  • hidden #10514438
    Level 2
    Under discussion
    i dont understand the code the relation between x and ypackage com.codegym.task.task01.task0107; /* No comments needed */ public class Solution { public static void main(String[] args) { int x = 2; int y = 12; // y = x * y; y = x + y; x = y - x; y = y - x; System.out.println(x);
    • 8/20/19
    • 1078views
    • 1comment
    0
  • Eduardo
    Level 23
    Coyoacan
    Question about the task Computer
    Java Core, Level 4, Lesson 8
    Resolved
    Computer classHi, I need a hand with this task, I got it to compile but I'm missing two last conditions. I tried moving the getters inside the constructor but that causes an error. What am I doing wrong?
    • 2/28/19
    • 1720views
    • 3comments
    2
  • Talha
    Level 5
    Lahore
    Question about the task Escaping characters
    Java Syntax, Level 3, Lesson 6
    Resolved
    Why is this not working????The output in console is same as in question but it is still not meeting the requirement
    • 8/17/19
    • 1614views
    • 2comments
    1
  • KARAN BHOITE
    Level 15
    Nagpur
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Archived
    I DONT SEE ANY MISTAKE ?I TRIED MY BEST...
    • 8/19/19
    • 1314views
    • 1comment
    0
  • Mykola
    Level 14
    Toronto
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Resolved
    Cant pass the verification. Any suggestions? Steps 3, 4, 5 failed. I've checked every array individually and it looks like everything ok. Just can't get what is wrong here. Thanks.
    • 8/3/19
    • 1367views
    • 5comments
    0
  • Steve
    Level 9
    Denver
    Question about the task Software update
    Java Syntax, Level 8, Lesson 11
    Resolved
    Program is working,, I am not meeting the first and fourth requirements.Program is working fine,, I am not meeting the first and fourth requirements.
    • 8/17/19
    • 1193views
    • 2comments
    0
  • Sven
    Level 19
    Hanover
    Question about the task GCD
    Java Core, Level 4, Lesson 8
    Under discussion
    I can't see the problem here. Infinite loop?When I run this, it works without any problems. But as soon as I do the validation I get "The program ran too long and was closed" . Any ideas?
    • 8/16/19
    • 1339views
    • 1comment
    0
  • Vikrant.
    Level 1
    Delhi
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Archived
    Last Condition?My Solution works fine but it is not meeting the last condition. Any idea, why?
    • 8/16/19
    • 1097views
    • 2comments
    0
  • gmb55
    Level 25
    Tarnów
    Question about the task Sequential file output
    Java Core, Level 6, Lesson 13
    Resolved
    Variable in while loop from run() methodHi, I deleted last request because I didn't knew how to edit it. AzjaLevel 30 , Krakow 36 minutes ago Your code is working fine and "end" variable is updated but it is recommended to use "StringBuilder class" for string concatenation and it should use "getFileContents method" in "run method" becaus
    • 8/19/19
    • 1989views
    • 4comments
    0
  • Michael Davis
    Level 11
    Mount Laurel
    Question about the task Minesweeper (Part 3/16)
    Games, Level 0, Lesson 0
    Under discussion
    I'm declaring the constructor what am I missing?package com.codegym.games.minesweeper; public class GameObject { public int x; public int y; GameObject (int x, int y) { } }
    • 8/17/19
    • 1763views
    • 1comment
    0
  • Itachi
    Level 16
    Brooklyn
    Question about the task Minesweeper (Part 4/16)
    Games, Level 0, Lesson 0
    Under discussion
    The createGame() method must be called in the initialize() method.
    • 7/24/19
    • 1741views
    • 2comments
    0
  • Joy Majumdar
    Level 16
    Kolkata
    Question about the task Factorial
    Java Core, Level 5, Lesson 12
    Under discussion
    Can't get it rightHelp
    • 8/16/19
    • 1202views
    • 1comment
    0
  • Brandon Nicolle
    Level 5
    Edmonton
    Question about the task 18+
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Question about SyntaxHello, So I know I can max this program work as intended by switching my nameCheck and ageCheck scanners so that it checks for a string first. I'm just wondering if there anyway to bypass having to put them in order to avoid errors. Obviously when you're coding you don't know when and what order yo
    • 8/18/19
    • 1691views
    • 1comment
    0
  • Brandon Nicolle
    Level 5
    Edmonton
    Question about the task Multiplication table
    Java Syntax, Level 4, Lesson 10
    Under discussion
    Can my code be cleaner?This seems to work, I'm just wondering if it could be any cleaner or more compact?
    • 8/18/19
    • 1163views
    • 1comment
    0
  • Mykhailo Kuvshynov
    Level 8
    Dnipro
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Resolved
    Whats wrong?can't figure out the problem :(
    • 8/18/19
    • 1162views
    • 1comment
    2
  • 1
  • ...
  • 288
  • 289
  • 290
  • 291
  • 292
  • ...
  • 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