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
  • preshgerman3
    Level 14
    Under discussion
    how to implement games how to implement games
    • 8/2/24
    • 222views
    • 0comments
    0
  • Павел Артеменко
    Level 41
    Krasnodar
    Question about the task Chat (part 9)
    Java Multithreading, Level 6, Lesson 15
    Resolved
    What's wrong with notifyUsers()? private void notifyUsers(Connection connection, String userName) throws IOException { Message message = new Message(MessageType.USER_ADDED, "User, called " + userName + " has been added."); for (Map.Entry connectionEntry : connectionMap.entrySet()) { if (!connectionEntry.getKey().equals
    • 5/11/19
    • 2597views
    • 7comments
    2
  • Anonymous #11533978
    Level 26
    Bilbao
    Question about the task GCD
    Java Core, Level 4, Lesson 8
    Resolved
    what is wrong? It gives the correct result and yet does not meet the criteriaAccording to the revision, the code is not meeting the task requeriments. The result I get with the inputs 24 and 42 is correct (6) but somehow it does not pass the test. What is wrong? public class Solution { public static void main(String[] args) throws Exception { BufferedReader irak
    • 8/1/24
    • 270views
    • 3comments
    0
  • yuvraj bhatti
    Level 1
    Mumbai
    Under discussion
    car parking barriermake a barrier in car parking that lifts up when car is nearer and down when car is not nearer
    • 7/31/24
    • 218views
    • 0comments
    0
  • Dipankar Sinha
    Level 22
    United States of America
    Under discussion
    how to disable subscriptionBy 16th september 2024 i will complete my annual subscription. How to disable subscription post the date.
    • 7/31/24
    • 210views
    • 0comments
    0
  • Evgeniia Shabaeva
    Level 42
    Budapest
    Question about the task File in a static block
    Java Core, Level 5, Lesson 12
    Resolved
    How to make it really read from a real fileI've solved this task, or at least it has been validated by CodeGym as correct. I still have a question, though. The code is supposed to read lines from a real file, the path to which we need to assign as a value to the public static String field called FILE_NAME (of the file called Statics). How
    • 7/18/24
    • 322views
    • 9comments
    0
  • Evgeniia Shabaeva
    Level 42
    Budapest
    Question about the task Binary to hexadecimal converter
    Java Syntax, Level 10, Lesson 2
    Resolved
    One of the methods in this code is still not accepted by the validator. What am I doing wrong?I kind of put aside this task some time ago and moved on. But today I decided to catch up with some unresolved tasks and got back to this one. The code seems to work fine in general, but there is still something wrong with the toBinary(String value) method, even though it produces and outputs the ex
    • 7/19/24
    • 295views
    • 3comments
    0
  • Evgeniia Shabaeva
    Level 42
    Budapest
    Question about the task Binary to hexadecimal converter
    Java Syntax, Level 10, Lesson 2
    Resolved
    I wonder if I could've made it shorterI've just written the longest code in my short professional life:) It produces the expected output but I'm wondering if I could make it any simpler. The second issue is that after verification the website says, "Be sure that the toHex(String) method returns an empty string if it receives an empty s
    • 4/18/24
    • 391views
    • 9comments
    0
  • Evgeniia Shabaeva
    Level 42
    Budapest
    Question about the task Face control
    Java Syntax, Level 16, Lesson 2
    Resolved
    Why not this way?I've read the correct solution and see that we are expected to display the data from the file our program reads in the form of characters, not strings. I just don't understand why it cannot be done in the string form, as the requirement is technically to "display everything except periods, commas, a
    • 5/31/24
    • 299views
    • 4comments
    0
  • Mm m
    Level 1
    Question about the task From student to skilled slave
    Java Core, Level 1, Lesson 11
    Under discussion
    digoprime numberWAP to input a four digit number and check whether it is a digorime number or not ( a number is said to be digoPrime when its only contain Prime digit)
    • 7/16/24
    • 210views
    • 0comments
    0
  • Bob
    Level 10
    United States of America
    Question about the task Two iPhones
    Java Syntax, Level 10, Lesson 4
    Under discussion
    What am I missing?When I run the program, it says true. if I change one of the parameters for one of the Iphones, I get false, yet I am not meeting the second criteria?
    • 7/14/24
    • 231views
    • 5comments
    0
  • Naman Gamer
    Level 1
    Bangalore
    Under discussion
    cssvss
    • 7/12/24
    • 222views
    • 0comments
    0
  • Evgeniia Shabaeva
    Level 42
    Budapest
    Question about the task Reading a file
    Java Core, Level 3, Lesson 11
    Resolved
    Why close the BufferedReader if I'm not using it?I wrote this code without using the BufferedReader (as I actually wasn't told to do so). But, according to the validator, I still have to close it.... So, should I use it instead of the Scanner or the InputStream? I'm slightly puzzled;)
    • 7/2/24
    • 331views
    • 7comments
    0
  • X SS
    Level 25
    Question about the task Binary converter
    Java Syntax, Level 10, Lesson 2
    Under discussion
    Codegym's answerHow come we can assign String binaryNumber an integer?
    • 7/3/24
    • 240views
    • 2comments
    0
  • Pratusha Mandal
    Level 1
    Under discussion
    how to codehow can I code in this app by clicking what?
    • 7/1/24
    • 232views
    • 1comment
    0
  • X SS
    Level 25
    Question about the task Octal converter
    Java Syntax, Level 10, Lesson 2
    Under discussion
    End of file while parsingerror:reached end of file while parsing. How can i solve this?
    • 7/2/24
    • 252views
    • 1comment
    0
  • Anonymous #11492773
    Level 31
    Germany
    Question about the task Shall we play?
    Java Core, Level 6, Lesson 13
    Resolved
    task is not compiled on the serverHey guys. i try to validate my solution but for some reason it keeps telling me task is not compiled on the server. any tips on what i am doing wrong is appreciated.
    • 6/25/24
    • 251views
    • 2comments
    0
  • Benjamin Joseph Lentine
    Level 8
    Songwon
    Question about the task Price of apples
    Java Syntax, Level 3, Lesson 4
    Under discussion
    How does += get the right answer?So, I get what it does in functionality, but I can't seem to understand how it gets the right answer here. So here is how I'm understanding this code: applePrice = 0. apple.addprice increases applePrice to 50. apple2.addPrice increases it by 100 to 150. It seems to me like the math should already
    • 6/23/24
    • 332views
    • 4comments
    1
  • Anonymous #11475584
    Level 11
    Hayward
    Question about the task Snake (Part 19/20)
    Games, Level 0, Lesson 1
    Under discussion
    helpwhy is this part of my code causing problems and saying illegal start of expression for public void move (Apple apple) ? im really lost (im referring to the commented part in the Snake class inside the setDirection method)
    • 6/23/24
    • 231views
    • 1comment
    0
  • Ahmed
    Level 23
    Amsterdam
    Question about the task Array of string lists
    Java Syntax, Level 10, Lesson 11
    Resolved
    It should work?Anyone can help here? I think this code should work? Or i'm missing something?
    • 5/21/19
    • 2893views
    • 4comments
    12
  • lobotomic
    Level 4
    Prague
    Question about the task Sorting three numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    "The task does not compile on the server"Hi guys, I tried some List approach for this task and when validating I get an error "The task does not compile on the server". Is there some issue in Intelijj settings or the validator just does not except such solution and is not ready for that? So with if/else solution I gonna be ok to proceed to
    • 6/15/24
    • 258views
    • 2comments
    0
  • X SS
    Level 25
    Question about the task Triangular array
    Java Syntax, Level 6, Lesson 6
    Under discussion
    IndexOutOfBounds but whyWhat's difference between my solution and codegym's. Mine gives error?
    • 6/20/24
    • 258views
    • 1comment
    0
  • Evgeniia Shabaeva
    Level 42
    Budapest
    Question about the task It's all relative
    Java Syntax, Level 16, Lesson 5
    Resolved
    Why not like this?I've got a problem similar to the one already posted here. The validator does not believe I'm using the relativize() method of the Path class. I'm wondering why. I also have another question, not related to the validation process. The tasks "hints" that if I can't find the relative path between pat
    • 6/10/24
    • 286views
    • 3comments
    0
  • Solanki Dhruv
    Level 18
    Surat
    Question about the task Debug everything under the sun
    Java Core, Level 6, Lesson 13
    Resolved
    don't understand where is the problem???
    • 12/16/18
    • 2883views
    • 17comments
    0
  • Anonymous #11423390
    Level 5
    Mountlake Terrace
    Question about the task There's never too much of a good thing
    Java Syntax, Level 4, Lesson 5
    Under discussion
    I don't understand the last line of the answerThe last line "while (number >0 && number < 4); confuses me. Why it's not "while (number > 0 && number < 5);"? Can someone help to explain? Thank you!
    • 11/30/23
    • 461views
    • 1comment
    0
  • Nicole Gottschall
    Level 23
    Germany
    Question about the task Chess board
    Java Syntax, Level 6, Lesson 5
    Resolved
    Why doesn't my solution pass the verification even though it works as it should?I ran the program and it outputs the same as the example in the task condition. However, it doesn't pass the verification. More precisely it is wrong for number 3. and 4. Am I missing something else? Looking forward to your help!
    • 1/26/22
    • 558views
    • 2comments
    0
  • Andrea
    Level 20
    Question about the task Whales and cows
    Java Core, Level 2, Lesson 2
    Resolved
    Why is this not correct? I specifically met the 5th requirement: I overridden the getName method to say "I am not a cow, I am whale" and that what the output says: public static class Whale extends Cow { public String getName() { return "I'm not a cow. I'm a whale";} } Why is the validator not accepting this?
    • 8/22/19
    • 1421views
    • 6comments
    1
  • Nic
    Level 14
    London
    Question about the task Whales and cows
    Java Core, Level 2, Lesson 2
    Resolved
    Unable to satisfy the fifth requirement, but the solution displays fineCould you please help me see where I've gone wrong? Thanks.
    • 7/16/19
    • 1297views
    • 3comments
    0
  • Brentachii
    Level 13
    United States of America
    Question about the task Price of apples
    Java Syntax, Level 3, Lesson 4
    Resolved
    it appears to work so why is it wrong?Hi there, I added the sout on line 11 so that when I run it I can see the results of the increases by the passed-in value I would appreciate it if anyone could tell me why is this wrong? thanks
    • 11/22/21
    • 935views
    • 6comments
    1
  • Jesufemi Adejare
    Level 20
    Question about the task Stack trace revisited
    Java Syntax, Level 15, Lesson 2
    Under discussion
    Stack Trace. what am I missing?what am i missing here. array length -1 is the top element in the stack. the method that called the top stack element should be arraylength -2 , so why is this not validating ? in the code gym solution they used [2] for everything. That doesnt make much sense to me. if there are like 5 method tha
    • 6/4/24
    • 304views
    • 5comments
    0
  • 1
  • ...
  • 8
  • 9
  • 10
  • 11
  • 12
  • ...
  • 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