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
  • Arkoo
    Level 38
    Germany
    Question about the task Prices
    Java Core, Level 8, Lesson 11
    Under discussion
    I can't understand why it doesn't pass validationOnly the first 3 requirements are validated, not even the last about closing streams
    • 23.09.2024
    • 108views
    • 1comment
    0
  • Βάιος Αργυρόπουλος
    Level 24
    Question about the task Set of cats
    Java Syntax, Level 14, Lesson 9
    Under discussion
    Can't understand whats wrong....It seems that my code does fullfil the requirements but i cannot pass the last requirement. when my code runs it shows that exactly two Cat objects are in the Set. This means that an object is being removed, but validation test says otherwise. Anyone help ?
    • 21.09.2024
    • 120views
    • 1comment
    0
  • GOUTHAM B J
    Level 1
    New
    changing Java learning patternHow to change Java learning patterns from story to minimum material in this Codegym App
    • 20.09.2024
    • 100views
    • 0comments
    0
  • Augusto Ghio
    Level 7
    Question about the task Comparing strings by reference
    Java Syntax, Level 3, Lesson 9
    Under discussion
    no question. a critiquei do it with sout(strings.equals(string2) ? same : different) it works great and fine. not need of if-else structure
    • 03.09.2024
    • 115views
    • 2comments
    0
  • Evgeniia Shabaeva
    Level 41
    Budapest
    Question about the task Request parser
    Java Core, Level 5, Lesson 12
    Resolved
    The program displays what it needs but not validated. What am I doing wrong?It's probably time to post a question about this task. I wrote two variants of this code. The first one creates two lists, one with keys and one with values. You can see that version in comments. The second variant uses a HashMap instead (which, obviously, has keys and values). That is the main co
    • 23.07.2024
    • 165views
    • 2comments
    0
  • Evgeniia Shabaeva
    Level 41
    Budapest
    Question about the task Prices
    Java Core, Level 8, Lesson 11
    Resolved
    Help me please with n3 & n4I've written this code, but I can't pass the 3d and 4th requirements, i.e. I need to make sure the product list remains unchanged when you run the program without arguments, and when the program is run with the arguments "-c productName price quantity", a new line with the corresponding product shou
    • 03.09.2024
    • 157views
    • 8comments
    0
  • Βάιος Αργυρόπουλος
    Level 24
    Question about the task But that's how I want it
    Java Syntax, Level 12, Lesson 7
    Resolved
    First question that i got stuck....Can anyone plz give me a hint of how can i get this problem solved ?? To symmarise my take on the problem : - I think that my logic on if - if-else statements are right. - I am not sure about the conversions and if the exercise imply something i am missing.
    • 08.09.2024
    • 130views
    • 1comment
    0
  • Evgeniia Shabaeva
    Level 41
    Budapest
    Question about the task ABCs
    Java Core, Level 8, Lesson 11
    Resolved
    Why not this simple way?The validator says I'm not counting lowercase letters while I think I am. Or am using the regex the wrong way in line 23? I tried eualsIgnoreCase(), it didn't work either. I've also tried some more complicated code, in which I used StringBuilder and Treeset, see below). In this variant the validato
    • 16.08.2024
    • 180views
    • 4comments
    0
  • slowly
    Level 8
    Mörfelden-walldorf
    Question about the task Somewhere in the middle
    Java Syntax, Level 4, Lesson 10
    Under discussion
    Solution not acceptedWhy is my solution not accepted?
    • 25.08.2024
    • 134views
    • 1comment
    0
  • nealgoogs
    Level 21
    Eliot
    Under discussion
    Why cant I access this page?https://codegym.cc/search?query=math when i search for math, to learn about java methods for the math class. I cant access the lesson?
    • 24.08.2024
    • 107views
    • 1comment
    0
  • Martin G
    Level 6
    Under discussion
    Can anyone help me understand the difference?Hi there I'm completely new to programming and just started this course yesterday! All was going well until I reached the New Java Syntax, Level 2, Lesson 8. For a bit of background,. in the previous lesson(Level 2, Lesson 7) I was thought of the Scanner command and its implications (Which i feel li
    • 24.08.2024
    • 113views
    • 1comment
    0
  • Timothy Cutlip
    Level 4
    Marietta
    Question about the task Implement the print method
    Java Syntax, Level 2, Lesson 1
    Resolved
    How is my code wrong?I get the write output on screen. i called the function twice through a loop in the main function and a separate loop in the print function to get a total of 4 outputs all on separate lines but some how is still wrong. can anyone explain?
    • 11.02.2019
    • 2459views
    • 6comments
    1
  • X SS
    Level 25
    Question about the task Bridges
    Java Core, Level 4, Lesson 8
    Under discussion
    Why are static statements necessary? If I don't put them it gives a error public class Solution { public static void main(String[] args) { println(new WaterBridge()); println(new SuspensionBridge()); } // Add println method here interface Bridge{ int getCarsCount(); } static class WaterBridge implements Bridge{ pub
    • 23.08.2024
    • 132views
    • 1comment
    0
  • DolciNShortE
    Level 3
    Fort Worth
    Question about the task This age doesn't work for me…
    Java Syntax, Level 3, Lesson 4
    Under discussion
    Why is the person object created before the Person class???I am having a very difficult time understanding this task. I've worked on it for about 3 days now and I'm still a little confused. I think I understand the concept of using the "this" keyword, though I'm still a little fuzzy on it. It wasn't explained well at all. But what I'm really confused ab
    • 11.10.2021
    • 903views
    • 2comments
    2
  • Anonymous #11553756
    Level 1
    Under discussion
    generate AI Robot how to add AI trading Robot
    • 17.08.2024
    • 116views
    • 1comment
    0
  • umesh vadachhak
    Level 30
    Bangalore
    Question about the task Archiver (part 11)
    Java Multithreading, Level 7, Lesson 15
    Resolved
    Not able to pass the last two conditions The code is correct and are according to the requirment but not passing the conditions
    • 09.08.2024
    • 129views
    • 2comments
    0
  • GOVARDHANA GOWDA
    Level 2
    Durg
    Question about the task Kind words for the teacher
    Java Syntax, Level 1, Lesson 4
    Under discussion
    finding enter option I write a code but how can I find a enter button
    • 19.07.2024
    • 155views
    • 2comments
    0
  • hidden #10719523
    Level 4
    Under discussion
    How do i logout of my account?? This should be something easy to do...
    • 17.08.2024
    • 107views
    • 1comment
    0
  • hidden #10523504
    Level 4
    Question about the task Price of apples
    Java Syntax, Level 4, Lesson 1
    Under discussion
    Why does Apple.applePrice = applePrice + applePrice; equal to 200 but Apple.applePrice + applePrice equals 150?Struggling to get this..... Why does "Apple.applePrice = applePrice + applePrice" equal to 200 but "Apple.applePrice + applePrice" equals 150?
    • 10.09.2019
    • 2343views
    • 8comments
    0
  • Douglas
    Level 4
    Kano
    Question about the task Declare variables
    Java Syntax, Level 0, Lesson 4
    Resolved
    Declaring Integer as ageString name = ("name"); int age = ("age"); String city = ("city"); How can I declare the integer as age correctly?
    • 15.03.2019
    • 4524views
    • 5comments
    0
  • 123 123
    Level 1
    Question about the task Snake (Part 1/20)
    Games, Level 0, Lesson 1
    Under discussion
    How do I change the language????
    • 01.08.2024
    • 130views
    • 1comment
    0
  • AG09Mex
    Level 28
    Question about the task John Johnson
    Java Core, Level 9, Lesson 11
    Under discussion
    Seems to be working? Not really sure why it is not validating. Whenever I test my code it seems like it does what it is supposed to. I'm not sure what I'm missing, any help would be nice.
    • 14.08.2024
    • 113views
    • 1comment
    0
  • Evgeniia Shabaeva
    Level 41
    Budapest
    Question about the task Debug everything under the sun
    Java Core, Level 6, Lesson 13
    Resolved
    Question about UncaughtExceptionHandler Well, I googled some theoretical info about UncaughtExceptionHandler and even completed the task successfully... As all it required was to add one line:). But I still don't think I really understood what I did. I understand it's an interface for dealing with uncaught exceptions... But we've lived wi
    • 07.08.2024
    • 123views
    • 4comments
    0
  • Evgeniia Shabaeva
    Level 41
    Budapest
    Question about the task The early bird gets the worm
    Java Core, Level 6, Lesson 13
    Resolved
    Why is the 1st requirement not met?I've written this code, it meets all the requirements except the very first one: The run method must run until the thread is terminated (!IsInterrupted). I thought the following while-loop in the run() method was serving that purpose: public void run() { while (!isInterrupted()) {..
    • 31.07.2024
    • 154views
    • 5comments
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task Stopwatch
    Java Core, Level 6, Lesson 7
    Under discussion
    Whats wrong with this code. private void doStep() throws InterruptedException { stepNumber++; // write your code here if (owner.speed == 2) { Thread.sleep(500); } else if (owner.speed == 4) { Thread.sl
    • 01.04.2021
    • 488views
    • 2comments
    0
  • Anonymous #11549069
    Level 5
    Katowice
    Under discussion
    a question about subscribtion mode Hello i want to try codegym in java learning for 2 months .. - subscribtion to see all what you offer , is that good or you just make it nice at begining and in later levels its not fully made ? what exactly give me this subscription - the offer i see , that is : https://codegym.cc/sale "Special d
    • 03.08.2024
    • 123views
    • 0comments
    0
  • preshgerman3
    Level 14
    Under discussion
    how to implement games how to implement games
    • 02.08.2024
    • 100views
    • 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
    • 11.05.2019
    • 2406views
    • 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
    • 01.08.2024
    • 138views
    • 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
    • 31.07.2024
    • 103views
    • 0comments
    0
  • 1
  • ...
  • 4
  • 5
  • 6
  • 7
  • 8
  • ...
  • 372
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