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
  • Niladri pradhan
    Level 33
    Mumbai
    Question about the task Restaurant (part 2)
    Java Multithreading, Level 9, Lesson 15
    Resolved
    Log condition did not metHow to satisfy "write the message "The console is unavailable." (with log level SEVERE)." condition . I have tried everything but it did not work.
    • 05.01.2020
    • 1250views
    • 1comment
    2
  • Angel Stefan Arjoca
    Level 26
    Bucharest
    Question about the task ABCs
    Java Core, Level 8, Lesson 11
    Resolved
    I don't understand this one!I don't understand what is the conexion between args and the letters of english alphabet. How i read the english alphabet from the file args. I don't need the code, i need the pseudocode because i don't understand. Tk!
    • 19.08.2020
    • 597views
    • 3comments
    0
  • M Till
    Level 7
    San Jose
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    100% sure this is a correct solution, but still failsUpon verification it says "took too long, looks like you have an infinite loop", despite it even showing my output is correct. It is not an infinite loop, I added condition that changes the while condition to false and a break statement(even though one or the other is sufficient) in two places in wh
    • 25.07.2020
    • 656views
    • 4comments
    0
  • Jurabek Kuralbaev
    Level 8
    Tashkent
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Under discussion
    How can I resolve it?last requirement does not met I did all right. Please help me with this!
    • 29.07.2020
    • 720views
    • 4comments
    0
  • Henrique
    Level 41
    São Paulo
    Question about the task Refactoring the Chain of Responsibility pattern
    Java Multithreading, Level 9, Lesson 9
    Resolved
    I think the problem is with the constructor. HELP PLIZwhen i remove the level field, the constructors crash, and i need them to make it verify. what's the solution?
    • 18.08.2020
    • 395views
    • 3comments
    0
  • Eddie
    Level 16
    Jacksonville
    Question about the task Making the top ten
    Java Core, Level 2, Lesson 12
    Resolved
    Not sure this is not working.Hello Fellow Codegym, I am not sure why my code is not passing the conditions. I must be overlooking something. The overloaded transformValue method must double the number passed to it. - line 19 is overloaded, doubles the number by adding itself The main method should only call the transformVal
    • 10.03.2019
    • 2308views
    • 7comments
    0
  • Jared
    Level 9
    Aurora
    Question about the task Cat code won't compile
    Java Syntax, Level 7, Lesson 12
    Resolved
    I keep getting NullPointerExceptionjava.lang.NullPointerException at com.codegym.task.task07.task0726.Solution.main(Solution.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De
    • 19.07.2019
    • 1694views
    • 4comments
    1
  • anna
    Level 15
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Resolved
    Second condition not matched .I am absolutely lost, second condition always not matched...
    • 18.08.2020
    • 514views
    • 3comments
    0
  • Abdullah Al Hasan
    Level 13
    Question about the task Unknown animal
    Java Core, Level 2, Lesson 12
    Under discussion
    what the blunder i've done?its producing output like - Cat Tiger Lion Bull Animal
    • 14.01.2019
    • 1561views
    • 4comments
    1
  • Azhar Iqbal
    Level 18
    Multan
    Question about the task Stopwatch
    Java Core, Level 6, Lesson 7
    Resolved
    Is there any Bug ??Please tell me where the problem is ?
    • 09.10.2018
    • 1668views
    • 4comments
    0
  • Arun
    Level 17
    Tirupati
    Question about the task Order of loading variables
    Java Core, Level 5, Lesson 12
    Resolved
    Didn't understood what wrong!I get the order but not satisfying requirements, can anyone clarify , what is the reason?
    • 19.08.2020
    • 505views
    • 2comments
    0
  • Yuvavimal
    Level 12
    coimbatore
    Question about the task Move one static modifier
    Java Syntax, Level 7, Lesson 12
    Under discussion
    I'll couldn't understand ?whatpackage com.codegym.task.task07.task0725; /* Move one static modifier */ public class Solution { public static int A = 5; public static int B = 2; public static int C = A * B; public static void main(String[] args) { } public static int getValue() { return
    • 19.08.2020
    • 588views
    • 1comment
    0
  • Yuvavimal
    Level 12
    coimbatore
    Question about the task Family census
    Java Syntax, Level 7, Lesson 12
    Resolved
    what is the wrongpackage com.codegym.task.task07.task0724; /* Family census */ public class Solution { public static void main(String[] args) { Human gF1 = new Human("Dodoo", true, 78); Human
    • 19.08.2020
    • 810views
    • 1comment
    0
  • Andrei Stratu
    Level 18
    Iasi
    Question about the task Rounding numbers
    Java Core, Level 8, Lesson 11
    Resolved
    Can't validateFor some reason, I am not able to write the integers to the file. Rounded them and try to convert them to byte before writing them on the file
    • 18.08.2020
    • 422views
    • 2comments
    0
  • Sindhura
    Level 15
    Delhi
    Question about the task Method quartet
    Java Syntax, Level 8, Lesson 6
    Under discussion
    What is the mistakepackage com.codegym.task.task08.task0811; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedList; import java.util.List; /* Quartet of "Methods" */ public class Solution {
    • 05.10.2018
    • 2318views
    • 5comments
    0
  • Yuvavimal
    Level 12
    coimbatore
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Under discussion
    it's working fine but i have an doubt!!!!______________________________________________ package com.codegym.task.task07.task0708; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.*; /* Longest string */ public class Solution { private static List strings; public sta
    • 11.08.2020
    • 413views
    • 1comment
    0
  • Łukasz
    Level 16
    GDANSK
    Question about the task Ten cats
    Java Syntax, Level 9, Lesson 11
    Under discussion
    Does anyone have any idea for my bug?The program does not pass the last test. "The program should display all the cats in the set."
    • 17.08.2020
    • 564views
    • 4comments
    0
  • X Khan
    Level 8
    Palmdale
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    What would make my code wrong?It displays the max number, but in the conditions everything is checked off except that "the program should display the max number". It displays the max number in the output. I noticed I have this problem with if/if-else statements. If anyone can explain or maybe link to another source that explai
    • 18.08.2020
    • 464views
    • 3comments
    0
  • Michael
    Level 10
    Dresden
    Question about the task Remove and insert
    Java Syntax, Level 7, Lesson 6
    Resolved
    Correct result, but code does not validate- My code creates the 'list' array and reads the required 5 elements from the keyboard into the list. - It iterates 13 times through the list by adding the last list element at the beginning of the list and then removing the last element from the resulting array. - All 5 members of the resulting l
    • 17.08.2020
    • 482views
    • 2comments
    1
  • Voris
    Level 10
    Tashkent
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    class, interface or enum expected , but there's no any errors, how can i fix it package com.codegym.task.task02.task0216; /* Minimum of three numbers */ public class Solution { public static int min(int a, int b, int c) { int res; if(a <= b && a <= c){ res = a; }else if(c <= b && c <= a){
    • 04.04.2019
    • 2921views
    • 3comments
    1
  • Chris
    Level 19
    Newark
    Question about the task Somehow average
    Java Syntax, Level 4, Lesson 16
    Under discussion
    Im unsure of what this assignment wants from me. I am unsure of what this assignment wants from me. It says it wants the average of three numbers. But it also says if all numbers are equal display any one of them(ex: a = 5, b = 5 and c = 5 print a or b or even c)!?!? And it says if two of the 3 numbers are equal, display either of the two(a = 5, b
    • 17.08.2020
    • 543views
    • 6comments
    0
  • Kaiyr Shayakhmetov
    Level 22
    Question about the task Building a file
    Java Core, Level 8, Lesson 11
    Resolved
    The code seems working but fails to pass verificationHi, Spent several days, have tried different options to implement the task. All the time fail to pass requirements #2-#5
    • 16.08.2020
    • 934views
    • 2comments
    0
  • Maxb
    Level 7
    Yonkers
    Question about the task Feline carnage
    Java Syntax, Level 5, Lesson 5
    Under discussion
    Cannot compile code to see output in intelliJHello, I finished the problem and got it correct, but the code cannot be compiled to test the output in the terminal without an error. I get the below error, but my code pasts all the tests. Module '1.JavaSyntax' production: java.lang.NullPointerException: Null elements are not allowed in THas
    • 17.08.2020
    • 578views
    • 1comment
    0
  • Inifome
    Level 10
    Delta
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Resolved
    getting error massages about void in main()why is the compiler giving me void error
    • 08.07.2020
    • 565views
    • 2comments
    0
  • Jay
    Level 17
    Washington
    Question about the task Let's talk music
    Java Core, Level 6, Lesson 3
    Under discussion
    Don't see a problemFor some reason, it's not verifying.
    • 13.09.2019
    • 1393views
    • 3comments
    0
  • Rohit Aggarwal
    Level 32
    New Delhi
    Question about the task Minesweeper (Part 14/16)
    Games, Level 0, Lesson 0
    Resolved
    What exactly is the issue here?Requirement 2 and 3 are continuously failing. Can someone help me figure out what exactly is the issue here ? private void openTile(int i, int j) { if (isGameStopped) { return; } else if (gameField[j][i].isOpen) { return; } else if (gameField[j][i].
    • 29.07.2020
    • 501views
    • 2comments
    0
  • Karolina
    Level 7
    Question about the task Static cats
    Java Syntax, Level 6, Lesson 11
    Resolved
    I have no idea what's wrong. Can U help me pls?I completed this task with a lot help from Agent Smith. Thank you very much!
    • 17.08.2020
    • 691views
    • 6comments
    0
  • dhanush
    Level 30
    Chennai
    Question about the task Moon Lander (Part 11/23)
    Games, Level 0, Lesson 4
    Resolved
    need helpi don't know where the width field is exactly pls tell me :(
    • 22.07.2020
    • 408views
    • 2comments
    1
  • Petros
    Level 23
    Columbia
    Question about the task CRUD 2
    Java Core, Level 7, Lesson 10
    Resolved
    One condition failing. Please help!Not sure why the -i condition is failing. Please help me figure this out.
    • 17.08.2020
    • 483views
    • 3comments
    0
  • Baurzhan Konurbayev
    Level 40
    Question about the task Introducing properties
    Java Core, Level 10, Lesson 2
    Resolved
    Failing validation, need some hintHi guys, Validation fails on save/load tests. Could you please give me some hints which test are failing. I checked my solution with Wikipedia sample test and it worked as expected. Thank you!
    • 17.08.2020
    • 586views
    • 2comments
    0
  • 1
  • ...
  • 147
  • 148
  • 149
  • 150
  • 151
  • ...
  • 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