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
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Creating a class from an XML string
    Java Collections, Level 3, Lesson 10
    Under discussion
    return Shop.class?Struggled with this for a bit. My impression is that we're supposed to write code for the getClassName method that does the work of figuring out what the root class name is in the XML data. But I was stumped because the main method calls getClassName before any unmarshalling work is done, so the XML
    • 10/13/22
    • 656views
    • 1comment
    1
  • matemate123
    Level 50
    Kraków
    Question about the task Unique substrings
    Java Collections, Level 9, Lesson 9
    Resolved
    I don't see where is mistakeI think my logic is good but I suppose something I don't see is wrong
    • 11/22/23
    • 520views
    • 8comments
    0
  • KxngChrxs
    Level 11
    Baltimore
    Under discussion
    How do I unlock tasks in intellij?? Do I need intellij for the entire course??Hey, I recently purchased the pro subscription and downloaded intellij. I am not always using my personal laptop so I am not always able to use intellij. I have 2 questions about the plugin. The first is: how do I unlock the tasks in intellij? The tasks are showing but most of them are locked after
    • 11/20/23
    • 263views
    • 2comments
    0
  • Erhan H.
    Level 23
    Istanbul
    Question about the task Writing to an existing file
    Java Collections, Level 2, Lesson 2
    Under discussion
    Server drives me crazy !It works locally. I don't understand what is the problem with this server?
    • 12/10/19
    • 1258views
    • 4comments
    0
  • FelixUjo
    Level 35
    Gijón
    Question about the task Counting words
    Java Core, Level 9, Lesson 5
    Resolved
    I think the problem is in the blanks but I don't know what else to try.I think the problem is in the blanks but I don't know what else to try.
    • 11/18/23
    • 422views
    • 4comments
    0
  • catalin1989
    Level 37
    Question about the task Tracking changes
    Java Core, Level 9, Lesson 11
    Resolved
    Can't pass final point. Can I get a hint?!Won't pass final validation point. Be sure that the lines list has the ADDED label with the required lines in the correct places. I have been reading about what others have done. I have tried with this inputs: Here is an example, lets say file one contained: line one is going to be the same line tw
    • 11/19/23
    • 290views
    • 2comments
    0
  • Angel Stefan Arjoca
    Level 26
    Bucharest
    Question about the task What's in the folder?
    Java Collections, Level 1, Lesson 4
    Resolved
    Total folders??? Any hint!? the total folders request is not passing and i don't no what to do anymore 😣
    • 9/14/20
    • 815views
    • 3comments
    1
  • catalin1989
    Level 37
    Question about the task Counting words
    Java Core, Level 9, Lesson 5
    Resolved
    I don't understand why it doesen't work.What I am doing wrong? 1. I append all the file content to a string builder. 2. I replace all the spaces of the builder.toString with a punctuation. 3. I split the string using the "\\p{Punct}" regex into an aray. 4. I compare all the resulting string with the "world" and increment when I have a mat
    • 11/17/23
    • 402views
    • 3comments
    0
  • FelixUjo
    Level 35
    Gijón
    Question about the task Adapting multiple interfaces
    Java Core, Level 9, Lesson 3
    Resolved
    I don't know what else to try.I don't know what else to try.
    • 11/13/23
    • 292views
    • 3comments
    0
  • Vijay Anand Bukkuri
    Level 2
    Suri
    Question about the task "I'm here about the job..."
    Java Syntax, Level 2, Lesson 0
    Under discussion
    assign different valueswhat's intValue? (1,how? numericValue? (17 ,how?) size? (8,how?) number? (22, how?)
    • 3/7/23
    • 389views
    • 1comment
    0
  • christopher freund
    Level 8
    Houston
    Question about the task Reverse
    Java Syntax, Level 6, Lesson 3
    Under discussion
    It seems they want a specific methodfor the reverse order, method is: for (int i = 0; i < data.length; i++) { System.out.println(data[i]); } This evaluates and runs flawlessly in intelliJ IDEA, but doesn't evaluate in the mobile app version of CodeGym. They specifically want you to set up your for loop
    • 11/12/23
    • 314views
    • 2comments
    0
  • catalin1989
    Level 37
    Question about the task Prices
    Java Core, Level 8, Lesson 11
    Resolved
    Am I overcomplicating things?My question is this. Am I overcomplicating things?I read some simpler solutions and I can adapt. I have tried this code on my computer and it works as the tasks say but I noticed that I tend to overcomplicate the code.
    • 11/13/23
    • 601views
    • 5comments
    0
  • Andrei
    Level 41
    Question about the task Numeral system converter
    Java Multithreading, Level 10, Lesson 2
    Under discussion
    This exercise is supposed to be of medium difficulty, but this is the solution proposed by the mentor:It's just becoming ridiculous... public static Number convertNumberToOtherNumberSystem(Number number, NumberSystem expectedNumberSystem) { checkDataIsValid(number); BigInteger result = to10NumberSystem(number); return from10TOExpectedNumberSystem(result, expectedNumberSy
    • 5/27/21
    • 907views
    • 3comments
    1
  • Justin Johnson
    Level 31
    Clearwater
    Question about the task Restaurant (part 14)
    Java Multithreading, Level 9, Lesson 15
    Under discussion
    I dont understand what is wrongif anyone could help me with these two conditions, I would really appreciate it. Thank you.
    • 9/29/20
    • 593views
    • 3comments
    1
  • Jaime Padilla
    Level 41
    Chandler
    Question about the task HTML Editor (part 9)
    Java Multithreading, Level 8, Lesson 15
    New
    My MenuHelper was missing all of the method contents that were supposed to be added last lesson.If you keep failing - The initMenuBar() method must use MenuHelper to initialize the menu in the following order: File, Edit, Style, Align, Color, Font, and Help. You need to view the solution and add in the additional content that was added to the MenuHelper class
    • 11/11/23
    • 248views
    • 0comments
    0
  • FelixUjo
    Level 35
    Gijón
    Question about the task Rounding numbers
    Java Core, Level 8, Lesson 11
    Under discussion
    I don't know what to doI think I'm missing something
    • 11/5/23
    • 299views
    • 3comments
    0
  • 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
    • 278views
    • 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
    • 945views
    • 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
    • 490views
    • 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
    • 1823views
    • 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
    • 712views
    • 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
    • 1818views
    • 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
    • 658views
    • 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
    • 792views
    • 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
    • 997views
    • 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
    • 404views
    • 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
    • 309views
    • 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
    • 257views
    • 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
    • 285views
    • 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
    • 302views
    • 2comments
    0
  • 1
  • ...
  • 16
  • 17
  • 18
  • 19
  • 20
  • ...
  • 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