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
  • Morteza Jalalvand
    Level 31
    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.
    • 18.05.2024
    • 104views
    • 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?
    • 17.05.2024
    • 133views
    • 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.
    • 15.05.2024
    • 130views
    • 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());
    • 25.04.2020
    • 1230views
    • 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 { }
    • 20.06.2020
    • 1638views
    • 8comments
    15
  • Evgeniia Shabaeva
    Level 40
    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?
    • 13.05.2024
    • 158views
    • 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).
    • 13.05.2024
    • 137views
    • 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.
    • 16.05.2022
    • 716views
    • 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
    • 18.03.2022
    • 1128views
    • 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?
    • 16.05.2020
    • 682views
    • 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?
    • 25.04.2024
    • 154views
    • 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);
    • 24.04.2024
    • 145views
    • 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."
    • 22.04.2024
    • 161views
    • 1comment
    0
  • Evgeniia Shabaeva
    Level 40
    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
    • 22.04.2024
    • 151views
    • 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?
    • 27.08.2020
    • 638views
    • 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
    • 21.04.2024
    • 120views
    • 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
    • 20.04.2024
    • 138views
    • 2comments
    0
  • Evgeniia Shabaeva
    Level 40
    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)?
    • 22.03.2024
    • 266views
    • 9comments
    0
  • Evgeniia Shabaeva
    Level 40
    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...
    • 25.03.2024
    • 187views
    • 3comments
    0
  • Evgeniia Shabaeva
    Level 40
    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?
    • 03.04.2024
    • 196views
    • 4comments
    0
  • Evgeniia Shabaeva
    Level 40
    Budapest
    Question about the task Increments
    Java Syntax, Level 9, Lesson 7
    Resolved
    What is the order this code compiles?I'm interested in the order 'b' is calculated here: int a = 3; int b = a++ + (a-- * a++); We've read in the lesson that the 1st priority belongs to parenthesis, so we begin with (a-- * a++), right? The 2nd priority is the unary operator, but which one? The lesson says it works from right to
    • 11.04.2024
    • 157views
    • 2comments
    0
  • Evgeniia Shabaeva
    Level 40
    Budapest
    Question about the task Binary converter
    Java Syntax, Level 10, Lesson 2
    Resolved
    What's wrong with the second method?The task is to write code to convert a decimal to a binary number and vice versa. I've kind of finally written the 'toBinary' method that works but the 'toDecimal' one keeps making an error. I still can't see what I'm doing wrong.
    • 12.04.2024
    • 132views
    • 2comments
    0
  • Ekaterina
    Level 28
    Tbilisi
    Question about the task QR-code reader
    Java Syntax, Level 8, Lesson 2
    Under discussion
    Can't pass last requirementReceived: "The task failed to pass testing: Be sure that the program compares arrays using the deepEquals method of the Arrays class." But I am using Arrays.deepEquals in the 30th line of code. Please help me understand what I'm doing wrong.
    • 25.01.2024
    • 362views
    • 6comments
    0
  • hidden #10668264
    Level 7
    Question about the task Minesweeper (Part 1/16)
    Games, Level 0, Lesson 0
    Under discussion
    Engine symbol unresolvedI typed the import statement: import com.codegym.engine.cell.*; but got an error message saying cannot resolve symbol engine. Has anyone come across this issue?
    • 17.09.2020
    • 564views
    • 8comments
    0
  • Djole
    Level 41
    Belgrade
    Question about the task Aggregator (part 6)
    Java Collections, Level 8, Lesson 15
    Resolved
    not sure what is wrong @Override public List getJobPostings(String searchString) { try { Document doc = Jsoup.connect("https://www.linkedin.com/").get(); } catch (IOException e) { e.printStackTrace(); } return Collections.emptyList(); }
    • 18.06.2019
    • 1448views
    • 2comments
    0
  • Jesú
    Level 14
    Madrid
    Resolved
    How to refresh tasks in the IntelliJ CodeGym plugin? No new tasks appear, despite new tasks being available from advancing through the course.
    • 07.03.2024
    • 217views
    • 1comment
    0
  • Daniel Njuguna
    Level 14
    Kiambu
    Under discussion
    What's wrong with my code?package com.codegym.task.task09.task0902; /* Stack trace revisited */ public class Solution { public static void main(String[] args) throws Exception { method1(); } public static String method1() { method2(); //write your code here StackTraceElement[] st
    • 05.02.2019
    • 1306views
    • 2comments
    0
  • Mayank Chandratre
    Level 21
    Question about the task Autoboxing
    Java Syntax, Level 13, Lesson 1
    Resolved
    Will it be same?Are the Integer a = new Integer(10); and Integer a = Integer.valueOf(10); commands same?
    • 05.11.2022
    • 368views
    • 3comments
    0
  • Aduroja ayomide Philip
    Level 2
    Ado ekiti
    Under discussion
    run itimport tkinter as tk def calculate_area(): try: radius = float(entry_radius.get()) height = float(entry_height.get()) area = 2 * 3.14 * radius * (radius + height) result_label.config(text=f"Area of the cylinder: {area}") except ValueError:
    • 10.04.2024
    • 243views
    • 0comments
    0
  • Zubin Nair
    Level 7
    New Delhi
    Question about the task String array in reverse order
    Java Syntax, Level 7, Lesson 4
    Under discussion
    I am not able to understand 3 and 4th requirementsI am not able to understand 3 and 4th requirements Pls explain with required input and output Reply asap
    • 18.09.2018
    • 1993views
    • 10comments
    0
  • 1
  • ...
  • 6
  • 7
  • 8
  • 9
  • 10
  • ...
  • 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