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
  • Tomek
    Level 11
    Gdansk
    Question about the task Logging stack traces
    Java Syntax, Level 9, Lesson 2
    Under discussion
    What's wrong with my code? (Same output)Hi, what's wrong with my solution? Output seems to be the same. Kind Regards
    • 2/13/23
    • 319views
    • 1comment
    0
  • Profj
    Level 20
    Lagos
    Question about the task Restaurant
    Java Core, Level 7, Lesson 10
    Under discussion
    Help a friend please.What can I do on this task? I've checked and checked and checked.
    • 6/26/19
    • 1778views
    • 4comments
    0
  • ugabuga
    Level 39
    Question about the task Restaurant (part 21)
    Java Multithreading, Level 9, Lesson 15
    New
    Second Requirement will not pass, even though my code is identical with solution...!! package com.codegym.task.task27.task2712; import com.codegym.task.task27.task2712.kitchen.Cook; import com.codegym.task.task27.task2712.kitchen.Order; import com.codegym.task.task27.task2712.statistics.StatisticsManager; import java.util.Observable; import java.util.Observer; import java.util.Set
    • 2/12/23
    • 513views
    • 0comments
    0
  • Richard Han
    Level 4
    Lipa
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Help! I can't understand this. This lesson did not explain how to do this exactly, and it's expecting us to answer this ;-;I'm not giving hate to codegym, I just wish they teached us how to do this before they gave us the tasks. ok ok now. I don't understand this. Please help. And ok, I'll say it, I copied the solution below from another help section. I understand the lesson, but that doesn't mean I understand the tasks
    • 9/10/18
    • 2221views
    • 6comments
    4
  • Andrei
    Level 41
    Question about the task Overriding serialization
    Java Core, Level 10, Lesson 7
    Resolved
    What is the point of creating a new thread in the readObject method and starting that thread if that is done already when we create a new object? package com.codegym.task.task20.task2015; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; /* Overriding serialization */ public class Solution implements Serializable, Runnable { private transient Thread runner;
    • 2/26/21
    • 1023views
    • 4comments
    0
  • Henrique
    Level 41
    São Paulo
    Question about the task Serializable Solution
    Java Core, Level 10, Lesson 7
    Under discussion
    One question about MAIN METHOD and one about TRANSIENT MODIFIER1. I was able to pass this task, but I have a question about the "Write the verification code yourself in the main method:". I followed the steps and came up with the code bellow: Steps: 1) create a file, open an input stream and an output stream; 2) create an instance of the Solution class (savedO
    • 7/8/20
    • 1096views
    • 7comments
    0
  • Radosław Dziura
    Level 16
    Question about the task Turnip
    Java Core, Level 3, Lesson 11
    Under discussion
    I don't have a clue how to do itCan anybody help?
    • 4/15/20
    • 1284views
    • 4comments
    1
  • Ryan
    Level 14
    Ashburn
    Question about the task Building and School
    Java Core, Level 4, Lesson 4
    Under discussion
    Worked but still questionsI passed but I'm still a bit confused on why. The default code said to "write code" in the Building class but I never did because everything already seemed attached to the Building class (after writing code for School class). I've also never seen class method written outside the class code block. My
    • 3/24/19
    • 1692views
    • 4comments
    2
  • Mike S
    Level 28
    Saint Louis
    Question about the task Threads and bytes
    Java Core, Level 8, Lesson 11
    Resolved
    Failing second condition...I was surprised to have gotten this right on the first try except for the second condition. But I don't understand how it can be right every other way except for the second one. Any insights?
    • 2/10/23
    • 377views
    • 3comments
    0
  • hendra gunawan
    Level 9
    tebing tinggi
    Question about the task Binary converter
    Java Syntax, Level 9, Lesson 2
    Resolved
    please helpwhat's wrong with my code? the first and second task requirement make me so confuse
    • 2/6/23
    • 375views
    • 2comments
    0
  • Masopha Makhetha
    Level 1
    Mohale's hoek
    New
    what to learn another course rather than the one i selected? ?
    • 2/10/23
    • 329views
    • 0comments
    0
  • ADAM GROCHOWSKI
    Level 4
    Milwaukee
    Question about the task What's the cat's name?
    Java Syntax, Level 4, Lesson 2
    Under discussion
    Why does name = this.name not work?Is someone able to explain why name = this.name not work?
    • 3/29/20
    • 1086views
    • 3comments
    0
  • Micheline Peric
    Level 0
    Question about the task We're on overload!
    Java Core, Level 2, Lesson 4
    Under discussion
    2023 Great love spell caster to help restore my broken marriage now WhatsApp +2348124644470URGENT AND EFFECTIVE LOVE SPELL CASTER TO HELP YOU GET BACK YOUR EX LOVER VERY FAST WHATSAPP +2348124644470 My Name is Micheline Peric from Ireland, I want to say thank you to PRIEST WISDOM for the good thing he has done for me,Though am not sure if this is the best forum to show my joy and happin
    • 2/9/23
    • 329views
    • 0comments
    0
  • Dinesh
    Level 7
    Delhi
    Question about the task This age doesn't work for me…
    Java Syntax, Level 4, Lesson 1
    Under discussion
    can any one explain how this.age= age+20 is giving 20 as outputCompleted the task just by hit and trial after reading all the comments of respected members Is there any difference between instance and local variable ? if I am correct this keyword is used to access the instance variable that is the local variable
    • 5/24/20
    • 972views
    • 5comments
    0
  • Thomas Yates
    Level 1
    Question about the task High accuracy
    Java Syntax, Level 4, Lesson 4
    Resolved
    Not sure where to look next...?When I enter 1.000001 and 1.000002 I get "The numbers are not equal". When I enter 16574837432.0000002 and 16574837432.00000003 I get "The numbers are equal". I am not understanding how to cause the program to get the difference only up to the millionths place value and then determine the output sta
    • 2/9/23
    • 538views
    • 2comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Caching proxy
    Java Collections, Level 7, Lesson 6
    Resolved
    Stuck with one condition remaining...There are two things I was very uncertain about with this task... First, the removeEldestEntry method in the LRUCache class doesn't actually appear to do what it is supposed to do, but we were not instructed to edit that class, so I didn't touch it. And the constructor for this class takes a capacit
    • 2/9/23
    • 309views
    • 1comment
    0
  • HaeWon Chung
    Level 17
    Boston
    Question about the task The simplest code: part 2
    Java Core, Level 5, Lesson 6
    Under discussion
    I don't know why I need the constructor without parameterBelow code fails to pass the verification. Hint says to have the NormalCat constructor without parameter. So I deleted and pass. But I don't know why I need that constructor because the code runs well without it. public class Solution { public static void main(String[] args) { SiamCat c
    • 5/28/20
    • 898views
    • 3comments
    0
  • Anonymous #11100313
    Level 24
    Question about the task Binary to hexadecimal converter
    Java Syntax, Level 9, Lesson 2
    Under discussion
    How can I solve this it says outOfBoundsException?I saw the correct solution but it seems that the code is too long so I'm trying to create one with using loops.
    • 2/9/23
    • 593views
    • 1comment
    0
  • matemate123
    Level 50
    Kraków
    Question about the task Replacing numbers
    Java Core, Level 9, Lesson 11
    Under discussion
    Don't try this at home...Maybe someone find inspiration in my code. After almost seven hours non-stop working (not counting WC visits, and coffe/pizza break) I did this Frankenstain. I start this task yesterday and I tried did it with Pattern and Matcher help. It's not work, and I ending on help section. I find beauty code
    • 2/7/23
    • 614views
    • 13comments
    0
  • Mithun
    Level 1
    Черкаси
    Question about the task My young friend
    Java Syntax, Level 0, Lesson 4
    Resolved
    help and point out a mistakeI do not know how can I display the subtraction of this action, but I can write this int x = (3126); int a = (8); int = ("x-a"); if there is an error please help
    • 7/25/18
    • 2478views
    • 10comments
    1
  • Josip Batinić
    Level 17
    Question about the task 5 shades of char
    Java Syntax, Level 8, Lesson 1
    Under discussion
    Not passing validationProgram compiles and prints: Hello char as it should public class Solution { public static char char1 = 101; public static char char2 = 'H'; public static char char3 = 114; public static char char4 = '\u006F'; public static char char5 = 108; public static char char6 = 'h';
    • 2/8/23
    • 302views
    • 1comment
    0
  • Ashok
    Level 3
    United States of America
    Question about the task Emptiness and spaces
    Java Syntax, Level 2, Lesson 3
    Under discussion
    can i get solution for the above programpublic class Solution { public static void main(String[] args) { String emptiness = "emptiness"; String fullness = emptiness + emptiness + emptiness; //write your code here System.out.println(fullness); } } can i get solution for the above program
    • 1/31/23
    • 460views
    • 2comments
    0
  • matemate123
    Level 50
    Kraków
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Resolved
    It's almost good, but something wrongOk it's time for ask for help. After few hours of work I have this. I think something wrong with my trying create algorithm to solve situation when this tag is a little mess. (line 68-74). Maybe it possible way when I could repair this program. Am I long for good solution? I feel I'm close to do thi
    • 2/1/23
    • 608views
    • 17comments
    0
  • Oliver Heintz
    Level 18
    Mustang
    Question about the task Splitting a file
    Java Core, Level 8, Lesson 5
    Resolved
    Struggling with "off" and "len"The lessons are teaching me less and less. I've failed this task like half a dozen times already. So I check if my count is even or odd. If odd (count % 2 != 0), I write from 0 the first count / 2 characters. So, if I had 7 bytes, 7 / 2 should give me 3. 0-3. Then I write starting at count /
    • 3/8/21
    • 1039views
    • 5comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Circular iterator
    Java Collections, Level 7, Lesson 4
    Under discussion
    Almost there, stuck on the 3rd conditionI think I have used try/catch for every place where an index out of bounds exception might occur. Not sure what else to do.
    • 2/3/23
    • 323views
    • 2comments
    0
  • Mike S
    Level 28
    Saint Louis
    Question about the task Sequential file output
    Java Core, Level 6, Lesson 13
    Under discussion
    Last Condition: "The output must contain the contents of the first file."There's several layers to this question: 1) This sounds ignorant to ask at this point, but how in the heck does one use the console interface in IntelliJ? That would seem useful here. (As opposed to CodeGym where it's just "there".) 2) Since I can't play with any file names on the console interfac
    • 2/1/23
    • 622views
    • 7comments
    0
  • Andrei
    Level 41
    Question about the task Logging stack traces
    Java Syntax, Level 9, Lesson 2
    Under discussion
    Different Index for getStackTrace()[2] vs[1], same results. One is accepted, one is not. Why !?This one is accepted: public class Solution { public static void main(String[] args) { log("In main method"); } public static void log(String s) { //write your code here String fullClassName = Thread.currentThread().getStackTrace()[2].getClassName(); St
    • 11/10/20
    • 1249views
    • 5comments
    1
  • Bo By
    Level 8
    Bratislava
    Question about the task Task about algorithms
    Java Syntax, Level 5, Lesson 12
    Resolved
    What is the wrong with this solution - is showing me the largerst number but not accepted? What is the wrong with this solution - is showing me the largerst number but not accepted? // The program should display the maximum of the N entered numbers. - this is not accepted, this requitment // also some hint/error I get : Be sure that the program works correctly for negative numbers.
    • 1/30/23
    • 432views
    • 2comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Find the bugs
    Java Core, Level 10, Lesson 10
    Resolved
    My code is now identical to the solution but still generates notserializableexceptionThe only differences I can find: 1. The names of the arguments in the readObject and writeObject methods in the B class. Instead of "in" and "out" I use "aInputStream" and "aOutputStream". Shouldn't matter, right? 2. The order in which classes are declared. I have A and B declared before Main, the s
    • 11/21/21
    • 680views
    • 1comment
    2
  • Manoj
    Level 3
    Gurgaon
    Question about the task Share a Coke
    Java Syntax, Level 3, Lesson 3
    Under discussion
    The program should display a number on the screen.Getting "The program should display a number on the screen." where as number is getting displayed in console after writing SOP on code. Then why error ?
    • 1/29/23
    • 372views
    • 1comment
    0
  • 1
  • ...
  • 33
  • 34
  • 35
  • 36
  • 37
  • ...
  • 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