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
  • Jesufemi Adejare
    Level 20
    Question about the task Chess board
    Java Syntax, Level 6, Lesson 5
    Under discussion
    validation failing for chess board task help. im getting right output but last 3 validations checks failing for the chess task
    • 5/22/24
    • 251views
    • 2comments
    0
  • Evgeniia Shabaeva
    Level 42
    Budapest
    Question about the task Mixed-up bytes
    Java Syntax, Level 16, Lesson 2
    Under discussion
    Why is my code not working?The correct solution suggests we use try-with-resources to complete the task. I understand that's a more beautiful way, but I'd like to use the try-catch-finally formula just in order to better understand how all this works. So, the validator implies that I'm not using the newInputStream and newOutp
    • 5/31/24
    • 323views
    • 7comments
    0
  • Mattt321
    Level 17
    Question about the task There's never too much of a good thing
    Java Syntax, Level 4, Lesson 5
    Under discussion
    Hey - check number 2 is not solved, can someone help me understand why? Hey - check number 2 is not solved, can someone help me understand why? package en.codegym.task.pro.task04.task0414; import java.util.Scanner; /* There's never too much of a good thing */ public class Solution { public static void main(String[] args) { //write your code here
    • 5/31/24
    • 256views
    • 2comments
    0
  • RMR
    Level 20
    Birmingham
    Question about the task Three arrays
    Java Syntax, Level 13, Lesson 5
    Under discussion
    Why is not passing the testing?The program fails at this condition: The program should display the divBy3, divBy2, and others lists using the printList() method. While clearly it is printing them...
    • 10/24/21
    • 918views
    • 2comments
    0
  • Reyaz Ahmad Bhat
    Level 4
    Anantnag Jammu And Kashmir
    Question about the task Bigger every time
    Java Syntax, Level 2, Lesson 6
    Under discussion
    This is the anint hugeAmount = Integer.parseInt(bigAmount) + Integer.parseInt(greatAmount);
    • 2/14/23
    • 494views
    • 3comments
    0
  • Adrija Sur
    Level 1
    Under discussion
    What is the output of this snippet? int a =5,b=2; double c =a/b; System.out.println(c);
    • 5/29/24
    • 219views
    • 1comment
    0
  • Filip
    Level 6
    Question about the task Summation
    Java Syntax, Level 4, Lesson 3
    Under discussion
    I can`t meet the secound requirement.Hello everyone! I`ve been trying to solve this task for manny hours, but nothing came up to my head. I`ve been trying with simply while loop, without hasNextInt() and hasNextLine() ect. but nothing meets the second requirement. Pls help. I`d like to solve and understand this task. Thanks! Proposing
    • 1/19/23
    • 835views
    • 5comments
    0
  • Amantai
    Level 47
    Shymkent
    Question about the task Working with Java 8's DateTime API
    Java Collections, Level 10, Lesson 10
    Resolved
    Output is correctWhat is the problem?
    • 5/21/24
    • 258views
    • 2comments
    0
  • Arnold Hauptricht
    Level 28
    Question about the task Positive and negative numbers
    Java Syntax, Level 3, Lesson 10
    Under discussion
    Program runs fineI've tested manually all given scenarios and they work just fine. I think there is a problem with this solutions testing requirements
    • 4/24/24
    • 277views
    • 3comments
    0
  • Jesufemi Adejare
    Level 20
    Question about the task Count the number of cats
    Java Syntax, Level 3, Lesson 5
    Resolved
    count variable errorplease what could be wrong with my code? I keep getting the error that only one count variable should exist or so. and I only see one count class variable here. public class Solution { public static void main(String[] args) { Cat cat1 = new Cat(); //write your code here
    • 5/20/24
    • 240views
    • 2comments
    0
  • Morteza Jalalvand
    Level 32
    Question about the task Pharmacy
    Java Core, Level 7, Lesson 10
    New
    possible bug in the correct solution The allDrugs map is static but the methods of DrugController are not. Making its methods synchronised still allows simultaneous access to the allDrugs via 2 different DrugController objects. Either the methods should be static too or or synchronized(DrugController.class) should be used.
    • 5/18/24
    • 216views
    • 0comments
    0
  • Inna
    Level 16
    United Kingdom
    Question about the task Binary converter
    Java Syntax, Level 9, Lesson 2
    Resolved
    toBinary(int) method works as it is required but doesn't pass validationHi everyone, Can anybody explain what the validator expect from toBinary(int) method ? It converts the integer and returns its string representation It returns an empty string if the input parameter is less than or equal to 0. What is wrong?
    • 5/17/24
    • 251views
    • 2comments
    0
  • Bob
    Level 10
    United States of America
    Question about the task Need for speed
    Java Syntax, Level 10, Lesson 2
    Under discussion
    What am I doing wrong? I have tried a couple of different things, but I am at a loss. Perhaps I am misinterpreting the requirements? A hint would be appreciated.
    • 5/15/24
    • 255views
    • 2comments
    0
  • Scott
    Level 14
    Ashburn
    Question about the task Four mistakes
    Java Core, Level 3, Lesson 2
    Under discussion
    Why it has to be static class Hobby?Why it has to be static class so we can use following line. System.out.println(new Hobby().toString());
    • 4/25/20
    • 1379views
    • 2comments
    0
  • Joe
    Level 5
    Salt Lake City
    Question about the task Minesweeper (Part 1/16)
    Games, Level 0, Lesson 0
    Under discussion
    Would love some help as to why this isn't passing the third criteria. package com.codegym.games.minesweeper; import com.codegym.engine.cell.*; public class MinesweeperGame extends Game { }
    • 6/20/20
    • 1809views
    • 8comments
    15
  • Evgeniia Shabaeva
    Level 42
    Budapest
    Question about the task Verifying existence
    Java Syntax, Level 14, Lesson 1
    Resolved
    Same as the suggested solution but doesn't workWell, this quite simple code of mine doesn't only produce the expected output but also fully coincides with the suggested solution (I checked it line by line). Still, it does not pass the verification. Could there be a bug?
    • 5/13/24
    • 283views
    • 4comments
    0
  • Anonymous #11512242
    Level 5
    Question about the task Sprucing up your resume
    Java Syntax, Level 2, Lesson 4
    Under discussion
    Im trying to get all four lines to print lowercase?I add the .toLowerCase option to the three lines, but how can I make the system out print on top (the first instance).
    • 5/13/24
    • 264views
    • 1comment
    0
  • haayden
    Level 18
    United States of America
    Question about the task The end of times
    Java Syntax, Level 17, Lesson 6
    Resolved
    Time ConversionI understand what the task is trying to make me do, but I don't understand how to do it. I've tried using millisecond to second conversions, but I can't seem to convert it, because I'm not getting the exact amount the milliseconds are giving me.
    • 5/16/22
    • 889views
    • 7comments
    0
  • Lord_Gabo
    Level 11
    Arzachena
    Question about the task This age doesn't work for me…
    Java Syntax, Level 3, Lesson 4
    Under discussion
    The Person class's adjustAge method should increase the Person's age by 20. Why is my code not good?After three days I need to ask for help! Where am I going wrong? The error being validated tells me The Person class's adjustAge method should increase the Person's age by 20. The printed output is 40 , I think I did not understand well .. I tried with: Person person = new Person(); this.age = age
    • 3/18/22
    • 1330views
    • 4comments
    2
  • HaeWon Chung
    Level 17
    Boston
    Question about the task Neo
    Java Core, Level 3, Lesson 11
    Resolved
    I don't know why this code runsAfter reading answers from other questions, I understand that I have to change DBObject to User to pass the verification. However, even without changing it, the code displays correct answer. Could someone please explain why it displays correct answer?
    • 5/16/20
    • 850views
    • 4comments
    0
  • X SS
    Level 25
    Question about the task Reverse
    Java Syntax, Level 6, Lesson 3
    Under discussion
    Says can't find symbolPlease look at my solution it prompts can't find symbol on 23rd line? Why?
    • 4/25/24
    • 286views
    • 1comment
    0
  • rags 3
    Level 5
    Wichita
    Question about the task Price of apples
    Java Syntax, Level 3, Lesson 4
    Under discussion
    how is the Apple.addprice working tried to switch with subtract doesn't workI understand that your creating a Apple class apple and passing variable applePrice to it but i want to know how the addprice works how does the operator work tried to exchange subtract but didnt work like Apple.subtractPrice(100);
    • 4/24/24
    • 265views
    • 1comment
    0
  • FelixUjo
    Level 35
    Gijón
    Question about the task Archiver (part 8)
    Java Multithreading, Level 7, Lesson 15
    Under discussion
    I do not understand why it does not validate the task. HelpIf any exception other than a NoSuchZipFileException occurs, then display "An error occurred. Please check the entered data."
    • 4/22/24
    • 292views
    • 1comment
    0
  • Evgeniia Shabaeva
    Level 42
    Budapest
    Question about the task StringTokenizer
    Java Syntax, Level 10, Lesson 6
    Under discussion
    Which task conditions am I missing?I've written code that has to use a StringTokenizer and split the input string into parts based on the delimiter variable, while the maximum possible number of tokens must be 6. The result must be returned without null tokens. I guess I've done all that and my code produces the required output. What
    • 4/22/24
    • 282views
    • 2comments
    0
  • Dương Tiến Đạt
    Level 41
    Ha Noi City
    Question about the task Chat (part 8)
    Java Multithreading, Level 6, Lesson 15
    Under discussion
    What's wrong?I couldn't seem to pass the "The name request should repeated until the message type of the response is equal to MessageType.USER_NAME." validation. Can someone tell me why?
    • 8/27/20
    • 767views
    • 2comments
    0
  • rags 3
    Level 5
    Wichita
    New
    can i reset where im atHi started while back then quit do to money is there a way to reset to start lesson one again so i can refresh have bought year program now so im good for while
    • 4/21/24
    • 257views
    • 0comments
    0
  • Christy
    Level 5
    Question about the task Summation
    Java Syntax, Level 4, Lesson 0
    Under discussion
    Summation exercise with Boolean valuesHi, can someone pls explain why the Boolean isExit variable is initially initialized to false and why the boolean in the while loop condition is set as true (!isExit) only for the Boolean in the if condition to be set to true. It's quite confusing to me. I found it hard to come up with the correct s
    • 4/20/24
    • 262views
    • 2comments
    0
  • Evgeniia Shabaeva
    Level 42
    Budapest
    Question about the task Remove duplicate strings
    Java Syntax, Level 6, Lesson 4
    Resolved
    What's wrong if the output's right?The code I've written reads 6 strings from the console, finds duplicated ones among them, substitutes them with null and produces the expected output. Why does it still fail validation (in particular, does not meet the 2nd requirement)?
    • 3/22/24
    • 406views
    • 9comments
    0
  • Evgeniia Shabaeva
    Level 42
    Budapest
    Question about the task Filling an array
    Java Syntax, Level 6, Lesson 8
    Resolved
    What's wrong if the output's right?I'm wondering which particular requirements are not met by my code if it produces the expected output...
    • 3/25/24
    • 318views
    • 3comments
    0
  • Evgeniia Shabaeva
    Level 42
    Budapest
    Question about the task Magic 8 ball
    Java Syntax, Level 9, Lesson 2
    Resolved
    What's wrong?I've written some code that seems logical to me. Why is it still not meeting the requirements I wonder?
    • 4/3/24
    • 320views
    • 4comments
    0
  • 1
  • ...
  • 9
  • 10
  • 11
  • 12
  • 13
  • ...
  • 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