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
  • Anonymous #11418252
    Level 15
    Question about the task Path update
    Java Syntax, Level 9, Lesson 3
    Under discussion
    What's wrong with my code?Hello! My solution isn't validate from the compiler. Why? Thanks a lot!
    • 11/11/23
    • 303views
    • 2comments
    0
  • Alana Robinson
    Level 4
    United States of America
    Question about the task School or college
    Java Syntax, Level 3, Lesson 4
    Under discussion
    In this task I keep getting an error message. I'm confused where I should put the curly braces.In this task I keep getting an error message. I'm confused where I should put the curly braces.
    • 5/10/22
    • 971views
    • 3comments
    0
  • Karthik .R
    Level 3
    India
    Question about the task Reading and converting strings
    Java Syntax, Level 2, Lesson 8
    Under discussion
    how to add lines from keyboard??what does that mean?? what is scanner? why to use that??
    • 1/8/23
    • 514views
    • 1comment
    0
  • Evghenii Seremet
    Level 41
    London
    Question about the task HTML Editor (part 13)
    Java Multithreading, Level 8, Lesson 15
    Resolved
    I must be doing something wrong, can someone point what is the issue? thankscode from TextEditMenuListener class: public void menuSelected(MenuEvent menuEvent) { JMenuBar jMenuBar = (JMenuBar) view.getContentPane().getComponent(0); for(int i=2; i<6; i++) { JMenu jMenu = jMenuBar.getMenu(i); for (Component item : jMenu.getMenuCompo
    • 12/24/19
    • 1864views
    • 3comments
    1
  • Dương Tiến Đạt
    Level 41
    Ha Noi City
    Question about the task Plants vs Zombies
    Java Multithreading, Level 8, Lesson 10
    Resolved
    Where to put arriveAndDeregister()?Can someone tell me where to phaser.arriveAndDeregister()? I tried every place possible and still failed. The validator is really racking by brain.
    • 10/10/20
    • 746views
    • 6comments
    0
  • Djole
    Level 41
    Belgrade
    Question about the task Mastering switch
    Java Multithreading, Level 8, Lesson 2
    Resolved
    output matches condition, so where is the catch? public static void switchTest(Enum obj) { // Add your code here String s = obj.getClass().getSimpleName(); switch(s){ case "E1": System.out.println(String.format("It's %s.%s", s, obj.name())); break; case "E2":
    • 5/14/19
    • 1860views
    • 3comments
    2
  • Jesú
    Level 14
    Madrid
    Resolved
    I don't understand this about Strings and equality.I think I found a contradiction. In JavaSyntaxZero Level 3 Lecture 6, this is said about strings: However, in the previous lecture, it shows two strings with the exact same text, having different references that point to memory: Could somebody explain why the strings with identical text have diff
    • 11/7/23
    • 696views
    • 3comments
    0
  • Jonas
    Level 41
    Vilnius
    Question about the task Archiver (part 17)
    Java Multithreading, Level 7, Lesson 15
    Under discussion
    Please helpIt says: "The method adds new files to the archive incorrectly." I don't know how to do it
    • 5/31/20
    • 825views
    • 3comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Archiver (part 15)
    Java Multithreading, Level 7, Lesson 15
    Resolved
    Extraction code not passing validationI felt a little like shooting in the dark on this task since we haven't been given an example of code to extract a file from a Zip yet. But I assumed the copyData method would be used for that. I googled a few options and it seemed they used code similar to copyData with a few other bits. I tried to
    • 4/24/22
    • 1042views
    • 5comments
    0
  • sagar thakur
    Level 6
    CodeGym University in India
    Question about the task Filled rectangle
    Java Syntax, Level 4, Lesson 3
    Under discussion
    This is a perfectly written code and the output is correct when i use intelliJ still here it shows my answer is wrongpublic static void main(String[] args) { int n = 0; while (n < 5) { int m = 0; while (m < 10) { System.out.print("Q"); m++; } System.out.println(); n++;
    • 3/8/23
    • 431views
    • 1comment
    0
  • Attila Ágoston
    Level 5
    Question about the task Combining arrays
    Java Syntax, Level 5, Lesson 1
    Under discussion
    I need help.I wrote this code and it work as this task insists, but it's not accept as a solution. What's wrong whit my code? resultArray = (firstArray); for (int i = 0; i < resultArray.length; i++) { System.out.print(resultArray[i] + ", "); } resultArray = (secondArray)
    • 9/7/23
    • 338views
    • 3comments
    0
  • Harshit Garg
    Level 34
    Chandigarh
    Question about the task Next month, please
    Java Syntax, Level 14, Lesson 6
    Resolved
    pls see this.... I think the requirements are fulfilled, it doesn't understand this.
    • 11/5/23
    • 286views
    • 1comment
    0
  • Harshit Garg
    Level 34
    Chandigarh
    Question about the task From if to switch
    Java Syntax, Level 14, Lesson 7
    Resolved
    wheres the errorpls tell
    • 11/5/23
    • 314views
    • 1comment
    0
  • matemate123
    Level 50
    Kraków
    Question about the task Log parser (part 1)
    Java Collections, Level 7, Lesson 15
    Resolved
    My results seems correct but Validator don't like it.I need some different eyes to look into my code. I don't know where is problem. I think is not bad but still almost all red. Maybe I don't get some condition? Please help!
    • 11/4/23
    • 338views
    • 2comments
    0
  • 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
    • 594views
    • 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
    • 679views
    • 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
    • 418views
    • 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
    • 324views
    • 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
    • 949views
    • 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
    • 842views
    • 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
    • 1676views
    • 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
    • 401views
    • 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
    • 1364views
    • 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
    • 326views
    • 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
    • 395views
    • 2comments
    0
  • koko
    Level 1
    Under discussion
    efp hack pubg hack efp
    • 10/26/23
    • 267views
    • 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
    • 1122views
    • 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
    • 1547views
    • 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
    • 323views
    • 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
    • 372views
    • 1comment
    0
  • 1
  • ...
  • 17
  • 18
  • 19
  • 20
  • 21
  • ...
  • 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