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
  • Jesú
    Level 14
    Madrid
    Resolved
    I'm confused about operator precedenceI'm confused about a table showing operator precedence. The table is found in this CodeGym article Why does expr++ have more precedence than ++expr? I thought that ++expr increments first and foremost, whereas expr++ updates its value AFTER being used in the operation. Does anyone understand this?
    • 11/4/23
    • 610views
    • 6comments
    0
  • Jurij Thmsn
    Level 29
    Flensburg
    Question about the task Determining locking order
    Java Multithreading, Level 7, Lesson 6
    Under discussion
    Not validatingI think the code returns the requested value - I m testing by changing the order of o1 and o2 in the method call here: solution.someMethodWithSynchronizedBlocks(o1, o2); //true solution.someMethodWithSynchronizedBlocks(o2, o1); //false or by changing the order of obj1 and obj2 in the someMethod
    • 1/14/22
    • 689views
    • 2comments
    2
  • Harshit Garg
    Level 34
    Chandigarh
    Question about the task Chasing after types
    Java Syntax, Level 13, Lesson 7
    Resolved
    pls checkwhy doesn't switch work? package en.codegym.task.pro.task12.task1220; import java.util.ArrayList; /* Chasing after types */ public class Solution { public static void main(String[] args) { var elements = new ArrayList<>(); elements.add("Hello"); elements.add(1
    • 11/2/23
    • 433views
    • 5comments
    0
  • Harshit Garg
    Level 34
    Chandigarh
    Question about the task Double curly braces
    Java Syntax, Level 13, Lesson 6
    Resolved
    no compiler error, why wrong?requirement looks like not programmed correctly..
    • 10/29/23
    • 334views
    • 2comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Snake (Part 5/20)
    Games, Level 0, Lesson 1
    Under discussion
    Just want to ask clarification on where classes are declaredI don't have a problem with code I'm working on, I just want to ask a question about something regarding creating classes. In some cases, like this project, we create classes in separate .java files (apple.java, snake.java, etc). But some of the other tasks we have done previously have us create mul
    • 7/23/21
    • 957views
    • 1comment
    1
  • Jurij Thmsn
    Level 29
    Flensburg
    Question about the task No goofing off
    Java Multithreading, Level 5, Lesson 7
    Resolved
    NullPointer ExceptionI already looked up the Right Solution - so I already know how to solve the task. I still don't understand why I get a NullPointerException if I write the run() method like this: public class TaskManipulator implements Runnable, CustomThreadManipulator{ private Thread thread; @Override
    • 11/2/21
    • 859views
    • 14comments
    1
  • Van Ha
    Level 41
    Bodegraven
    Question about the task Comments inside XML
    Java Collections, Level 3, Lesson 10
    Resolved
    No clueDon't have any idea how to solve this further, some hints would be appreciated.
    • 3/27/20
    • 1695views
    • 10comments
    0
  • K J LAKSHMI PRASAD
    Level 4
    kalasalingam University
    Question about the task Sum of numbers not divisible by 3
    Java Syntax, Level 4, Lesson 4
    Under discussion
    printing sum of numbers except divisible by 3public class Solution { public static void main(String[] args) { //write your code h int i=0; int sum=0; while(i<100){ i++; if(i%3==0){ continue; } sum=sum+i;
    • 10/28/23
    • 425views
    • 1comment
    0
  • Jonas
    Level 41
    Vilnius
    Question about the task Caching proxy
    Java Collections, Level 7, Lesson 6
    Resolved
    Please, only one conditionHow can you pass 7th and 8th conditions at the same time? They're opposite for each other. If you find element in cache, you cannot search for the element in storage(Condition 6), but if you don't search you cannot pass condition 7. Please help, I'm confused.....
    • 3/26/20
    • 1387views
    • 3comments
    0
  • Kyle Akuya (Wicked98)
    Level 18
    United States of America
    Question about the task Binary to hexadecimal converter
    Java Syntax, Level 10, Lesson 2
    Under discussion
    Right Output but not passing task requirementsThe output I get from this code is correct, but it isn't passing the task requirements (specifically the first two). Why do I keep on having this issue? Please help.
    • 10/27/23
    • 339views
    • 2comments
    0
  • FelixUjo
    Level 35
    Gijón
    Question about the task Splitting a file
    Java Core, Level 8, Lesson 5
    Resolved
    I don't think I understand what void write(byte[] buff,int form, int count) is doing.I don't think I understand what void write(byte[] buff,int form, int count) is doing.
    • 10/24/23
    • 407views
    • 2comments
    0
  • koko
    Level 1
    Under discussion
    efp hack pubg hack efp
    • 10/26/23
    • 277views
    • 0comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Knowledge is power!
    Java Multithreading, Level 4, Lesson 9
    Under discussion
    I can get it sorting correctly, but I don't understand the Formatting part at allI vaguely understand what ChoiceFormat does (it says that it's meant for controlling how singular/plurals work, but CG is using it differently here). I understand that there are two arrays, filelimits and filepart, and that the indexes of the former match up with the indexes in the latter. For examp
    • 1/14/22
    • 1138views
    • 3comments
    1
  • - FniJnn -
    Level 33
    Paris
    Question about the task Refactoring, anonymous classes
    Java Multithreading, Level 4, Lesson 9
    Resolved
    How to create a new object of an anonymous class ?Everything is in the title, thanks :)
    • 1/27/20
    • 1563views
    • 4comments
    2
  • Bertalan
    Level 10
    Question about the task Inheriting methods
    Java Syntax, Level 8, Lesson 7
    Under discussion
    Buggy tasks?I'm maybe doing something wrong, but unless I exit this task and reenter it, it just shows the same class in every file, even for the default starting point. Same with the other inheritance task before this. i just pushed show correct solution in the end and published that
    • 10/22/23
    • 336views
    • 0comments
    0
  • Week Kee
    Level 1
    Under discussion
    Gui java write code in java GUI intellij swing for school management system project
    • 10/16/23
    • 383views
    • 1comment
    0
  • rousal.mart
    Level 1
    Under discussion
    How do I change the programing language?How do I change the programing language?
    • 10/19/23
    • 357views
    • 1comment
    0
  • Nicolas Huet
    Level 41
    Provins
    Question about the task Sometimes anonymity is so nice!
    Java Multithreading, Level 3, Lesson 8
    Under discussion
    Not passing ONE condition, the USER one...Every condition is passing with exactly the same method, but the USER one won't, even if it's correctly displaying everything. Can someone help me? EDIT: there are no " ' " in my real solution, that was just a desperate attempt
    • 8/16/19
    • 1590views
    • 1comment
    1
  • Kyle Akuya (Wicked98)
    Level 18
    United States of America
    Question about the task A cubed cube calculator
    Java Syntax, Level 7, Lesson 3
    Under discussion
    Ninth degree method should work , what is wrong ? I have implemented everything and it appears that the ninth Degree method should work , but I keep on getting that I'm not able to pass the second requirement: The ninthDegree() method must return the result of raising the passed number to the power of nine. What is going wrong for this code?
    • 10/18/23
    • 465views
    • 2comments
    0
  • Sára Göblová
    Level 26
    Prague
    Question about the task Word search
    Java Core, Level 10, Lesson 10
    Under discussion
    it runs smoothly but the verification fails with "the list returned by detectAllWords method is not the right size"I dont understnad why the last condition is not satisfied
    • 2/23/20
    • 1272views
    • 5comments
    0
  • Marcin Olech
    Level 41
    Kraków
    Question about the task MyMultiMap
    Java Collections, Level 6, Lesson 10
    Under discussion
    remove() and keySet() not passingHey, I have the same output as commented in main (also tested it a bit and everything works fine) but it's not passing. keySet() seems obvious (or not?). @Override public Set keySet() { return map.keySet(); } remove(): @Override public V remove(Object key) {
    • 1/15/20
    • 1778views
    • 5comments
    2
  • Denis
    Level 22
    Kharkiv
    Question about the task Another interruption
    Java Core, Level 6, Lesson 10
    Under discussion
    Last condition. HelpPls give me some advice
    • 6/27/19
    • 1224views
    • 3comments
    1
  • Kyle Akuya (Wicked98)
    Level 18
    United States of America
    Question about the task Creating a two-dimensional array
    Java Syntax, Level 6, Lesson 6
    Under discussion
    How to fix this ? Why am I getting errors? Hello All, I'm still encountering error after running the following code. I'm not sure what I'm missing here. I thought I established all my variable correctly.
    • 10/16/23
    • 396views
    • 1comment
    0
  • Harshit Garg
    Level 34
    Chandigarh
    Question about the task Two iPhones
    Java Syntax, Level 11, Lesson 5
    Resolved
    didnt understand the problem errorSecond requirement is not being met.. Requirements: • The IPhone class must override the public boolean equals(Object) method. • The equals method must return true for two equal IPhone objects and false for different ones. • The equals method must return false if null is passed to it. it also says
    • 9/18/23
    • 740views
    • 10comments
    0
  • FelixUjo
    Level 35
    Gijón
    Question about the task CRUD
    Java Core, Level 7, Lesson 10
    Resolved
    I do not understand the mentor's recommendationsI don't know how to be sure that the Person object is added to the list and how to be sure that the size of the list does not change when the object is updated.
    • 10/14/23
    • 421views
    • 1comment
    0
  • Amantai
    Level 47
    Shymkent
    Question about the task Thread priorities
    Java Multithreading, Level 8, Lesson 6
    Resolved
    Help is neededWhy is the task not accepted? All these constructors were produced by IntelliJ IDEA(Alt+Insert), I just added the logic to the corresponding two constructors. Validation result: Error in com/codegym/task/task28/task2805/MyThread.java on line 58 no suitable constructor found for Thread(java.lang.Thr
    • 10/14/23
    • 782views
    • 5comments
    0
  • Inferno
    Level 5
    Rewa
    Question about the task Maximum of entered numbers
    Java Syntax, Level 4, Lesson 5
    Under discussion
    Requirements error All requirements are satisfied but still it's showing error in requirement "System must show the output".
    • 10/14/23
    • 440views
    • 2comments
    0
  • Inferno
    Level 5
    Rewa
    Question about the task We show what we get
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Requirements erroroutput is according to requirement but still requirements not complete
    • 10/4/23
    • 322views
    • 2comments
    0
  • digger
    Level 18
    CodeGym University in India
    Question about the task Second smallest number entered
    Java Syntax, Level 4, Lesson 5
    Resolved
    my solution is correct but its not accepting. idk Whyplease correct me if I am wrong anywhere.
    • 11/30/22
    • 733views
    • 3comments
    0
  • Anonymous #11149234
    Level 6
    United States of America
    Question about the task Second smallest number entered
    Java Syntax, Level 4, Lesson 5
    Under discussion
    any ideas with my solution? pleaseI am getting some of the tasks but I am missing something here! anyone can help me or give me some ideas?? please
    • 11/5/22
    • 797views
    • 4comments
    0
  • 1
  • ...
  • 18
  • 19
  • 20
  • 21
  • 22
  • ...
  • 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