CodeGym
Promotion
CodeGym University
Java FullStack
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
  • 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
    • 1343views
    • 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
    • 866views
    • 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
    • 299views
    • 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
    • 278views
    • 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
    • 300views
    • 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
    • 295views
    • 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
    • 779views
    • 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
    • 268views
    • 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
    • 273views
    • 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
    • 417views
    • 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
    • 330views
    • 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
    • 330views
    • 4comments
    0
  • Evgeniia Shabaeva
    Level 42
    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
    • 4/11/24
    • 304views
    • 2comments
    0
  • Evgeniia Shabaeva
    Level 42
    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.
    • 4/12/24
    • 276views
    • 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.
    • 1/25/24
    • 524views
    • 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?
    • 9/17/20
    • 745views
    • 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(); }
    • 6/18/19
    • 1704views
    • 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.
    • 3/7/24
    • 345views
    • 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
    • 2/5/19
    • 1568views
    • 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?
    • 11/5/22
    • 515views
    • 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:
    • 4/10/24
    • 375views
    • 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
    • 9/18/18
    • 2203views
    • 10comments
    0
  • #mr.coder
    Level 5
    Question about the task 2048 (Part 1/18)
    Games, Level 0, Lesson 2
    Under discussion
    what classes are. What are objects?"what classes are. What are objects?"
    • 7/20/21
    • 919views
    • 1comment
    0
  • Angus McDonald
    Level 5
    Sydney
    Question about the task Rounding numbers
    Java Core, Level 8, Lesson 11
    Under discussion
    Output seems fine when testing.. can't seem to passI've had a really good look through other solutions. A number of variations that I can't wrap my head around.
    • 6/9/20
    • 1186views
    • 7comments
    0
  • Angus McDonald
    Level 5
    Sydney
    Question about the task Sequential file output
    Java Core, Level 6, Lesson 13
    Resolved
    Last condition just won't validate!I've tried a couple different versions.. some I built myself.. others with help from other questions/solutions here... I've left various versions in commented out. I cannot for the life of me get the last condition to validate correctly. I suspect that the " " white space is being added to the end
    • 6/8/20
    • 887views
    • 11comments
    0
  • Fairoz Logde
    Level 14
    Mumbai
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Resolved
    Logic HelpWhat is wrong in my code since my code is displaying wrong answer please help me where I am wrong with my logic.
    • 11/16/18
    • 2516views
    • 14comments
    1
  • Lucas Hoage
    Level 14
    Savannah
    Question about the task Task about algorithms
    Java Syntax, Level 8, Lesson 11
    Resolved
    Feel like I'm on the right track but not sure.I understand the nature of the boolean compare function. If true, do this, if false do second. What I'm not really understanding is why the array is not assigning a value to when true or false. I expect that is should be doing this but I'm seeing nothing when I run test output in between the loops.
    • 6/3/20
    • 808views
    • 9comments
    0
  • Prassha
    Level 24
    Chagford
    Question about the task Countdown at the races
    Java Core, Level 6, Lesson 10
    Resolved
    numSeconds = 4; Why when numSeconds is more than 3 it is goes to catch? package com.codegym.task.task16; public class Solution { public static volatile int numSeconds = 4; public static void main(String[] args) throws InterruptedException { RacingClock clock = new RacingClock(); //write your code here Thread.sleep(3500); clock.i
    • 6/2/20
    • 813views
    • 4comments
    0
  • Xuhaib
    Level 7
    Lahore
    Question about the task Streets and houses
    Java Syntax, Level 7, Lesson 4
    Archived
    What the err ?????WHYYY?
    • 11/15/18
    • 2456views
    • 7comments
    0
  • Fadi AlSaidi
    Level 13
    Carrollton
    Question about the task Somehow average
    Java Syntax, Level 4, Lesson 16
    Resolved
    I tried multiple scenarios including negatives and still no luckI am approaching this in a different way than what has been posted by others. I ran multiple scenarios with no issues, IntelliJ passed the assignment but I couldn't get it to show complete, so I tried to submit it through the web, and it will not pass saying that I need to display the middle number.
    • 11/14/18
    • 2786views
    • 17comments
    0
  • 1
  • ...
  • 10
  • 11
  • 12
  • 13
  • 14
  • ...
  • 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