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
  • Onar D.
    Level 7
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Resolved
    dont know whats wrong. code is working. there was some troble because the last index of arraylist. if it was added in the end , it will be add again and again infinite time. i solved this problem. but subtasks not pass. as a result, the task was not completed. only one subtask not pass where if 'r' and 'l' in index not touch bit, my cod
    • 11/19/21
    • 941views
    • 8comments
    0
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Resolved
    OMG!!! What is this?If somebody can tell me what i must to do, I don t have any idea, what i do is not working. For me is logic: s.contains("r") && !s.contains("l") then delete s, but... I don t know, if somebody can explain me what i need to do and why, step by step... This is very hard task. Tk you!
    • 11/17/21
    • 925views
    • 6comments
    0
  • Przemek
    Level 25
    Lublin
    Question about the task Repeating threads
    Java Multithreading, Level 3, Lesson 8
    Under discussion
    I don;t understand. Can anybody help, please? :)Output is correct but honestly I completely don;t undestand why when I compile program without writing whatever it gives result: Why the program doesnt see sleep method() but that sees eat() and play() methods?? Second thing is question: what is wrong with my solution? :) It gives correct output:
    • 11/18/21
    • 520views
    • 2comments
    0
  • Onar D.
    Level 7
    Question about the task String array in reverse order
    Java Syntax, Level 7, Lesson 4
    Resolved
    why didnt pass task?all working. 10 strings. and reverse array. maybe i did not understand condition?
    • 11/9/21
    • 1033views
    • 4comments
    0
  • Onar D.
    Level 7
    Question about the task Static cats
    Java Syntax, Level 6, Lesson 11
    Under discussion
    who knows when we learned array? what lesson? did i miss array lesson?
    • 10/8/21
    • 543views
    • 5comments
    0
  • Rad
    Level 8
    Maidstone
    Question about the task Create a Friend class
    Java Syntax, Level 5, Lesson 7
    Resolved
    i need helpwhat is wrong in my code
    • 10/22/18
    • 2403views
    • 3comments
    1
  • Onar D.
    Level 7
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Resolved
    why list1, list2, list3 like not exist in printList method?all working fine if i coment 53 , 54 , 55 lines and similar little bit down lines. thos is problem they are not allowed. how to make them exist. but why just list with all 20 lines exist?
    • 11/17/21
    • 887views
    • 3comments
    0
  • EricRicketts
    Level 9
    Gainesville
    Question about the task StringTokenizer
    Java Syntax, Level 9, Lesson 6
    Archived
    I am at a loss as to while I failed to meet the conditionsI checked for the edge case of more than 6 tokens and wrote test code to validate this. I return a non null String array, I am at a loss as to why I am not passing. It is not the most efficient code but as far as I understand it meets the requirements.
    • 11/15/21
    • 496views
    • 1comment
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Reading and writing to a file: Human
    Java Core, Level 10, Lesson 2
    Resolved
    Hm, my solution is not working public void save(OutputStream outputStream) throws Exception { PrintWriter writer = new PrintWriter(outputStream); writer.println(this.name); writer.println(this.assets.size()); if(this.assets.size() > 0) {
    • 11/15/21
    • 765views
    • 4comments
    0
  • Austin Griffith
    Level 9
    Fort Worth
    New
    how do I get more tasksI don't have any more tasks and don't have enough to get to the next lesson.
    • 11/12/21
    • 373views
    • 0comments
    0
  • Seraleksandr4
    Level 1
    Under discussion
    Can u help me? I was given an assignment, but I have no idea how to do it, maybe someone has already done this, could you throw off the code? Create an algorithm for baristas in the DrinkMaker class. He will choose the right cup, put the ingredients and pour liquid. We will also create highly specialized algorithm
    • 11/5/21
    • 656views
    • 5comments
    2
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Resolved
    Pls, little help!I don t know what is wrong with my code, what am I missing??? Pls, I need an explanation! Tk you!
    • 11/11/21
    • 513views
    • 3comments
    0
  • Tamas Horcsak
    Level 18
    Leeds
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Under discussion
    hi guys, could you please help me out?Ok so I don't understand the second half of line 34 what it does? and my next problem when in the main method running gets to sort(array) it actually doesn't start it I mean the line42 doesn't start. Thank you in advance your help, Tamas
    • 11/11/21
    • 608views
    • 1comment
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Replacing numbers
    Java Core, Level 9, Lesson 11
    Under discussion
    clarification on punctuation, spacing rulesIn the example, "12." is converted to "twelve." Does this hold true for all punctuation marks? And does it apply to punctuation both before and after a number? For example, should "%8(" become "%eight("? Or does starting with punctuation mean it's not considered a number? Are there always spaces b
    • 11/10/21
    • 1049views
    • 14comments
    0
  • Przemek
    Level 25
    Lublin
    Question about the task StringTokenizer
    Java Multithreading, Level 2, Lesson 13
    Under discussion
    Where i a mistake?It works for eveything.
    • 11/10/21
    • 546views
    • 1comment
    0
  • EricRicketts
    Level 9
    Gainesville
    Question about the task Binary converter
    Java Syntax, Level 9, Lesson 2
    Resolved
    There is not enough information in the feedback to help me pass the task.Feedback from my failure: 1. The toBinary(int) method needs to be implemented as outlined in the task conditions. 2. The toDecimal(String) method needs to be implemented as outlined in the task conditions. Further, it says, "Be sure that the toDecimal(String) method returns 0 if it receives an em
    • 11/10/21
    • 945views
    • 4comments
    0
  • Jyothi
    Level 20
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Resolved
    Father and Mother print failing validation. Cannot see it... Father and Mother print failing validation. Cannot see it... Please advise.
    • 1/3/19
    • 2606views
    • 5comments
    1
  • EricRicketts
    Level 9
    Gainesville
    Resolved
    The example makes no sense to me, I need some clarificationI must be misunderstanding, but in a chessboard the black and white square alternate in any given row and column. Here is the problem's description for a sample output of a 5x5 board: # # # # # # # # # # # # # I thought it would look something like this: # # # # # # # # # # #
    • 10/20/21
    • 590views
    • 2comments
    0
  • Anonymous #10852348
    Level 1
    Minneapolis
    Question about the task 2 + 3 = 5
    Java Syntax, Level 1, Lesson 6
    Under discussion
    I'm referring to level 1, lesson 6: Comments. Again, this section should be super easy, but I'm stumped. Maybe I'm not clear on exactly what the instuction task is askingI'm referring to level 1, lesson 6: Comments. Again, this section should be super easy, but I'm stumped. Maybe I'm not clear on exactly what the instruction task is asking? Please help, so I can move on. This course is fun, and I'd like to continue.
    • 11/9/21
    • 641views
    • 1comment
    0
  • Libby
    Level 2
    Question about the task ABCs
    Java Core, Level 8, Lesson 11
    Under discussion
    What's wrong here?Program is running too long...
    • 11/2/21
    • 653views
    • 8comments
    0
  • Jon Hjerting
    Level 1
    Oslo
    Question about the task Correct the bug. Classes and interfaces
    Java Core, Level 9, Lesson 11
    Resolved
    I feel really lost in this taskI am very confused by this task. There seems to be a lot in the provided code that I do not understand. 1. public static void main(String... args) throws IOException { The argument to the main function is "String... args". IntelliJ does not report this as an error. I thought it was suppused to be
    • 10/31/21
    • 984views
    • 8comments
    0
  • Wei Cui
    Level 39
    Newark
    Question about the task Introducing Executors
    Java Multithreading, Level 8, Lesson 8
    Under discussion
    little issuechange issue
    • 4/7/20
    • 1289views
    • 4comments
    0
  • HeavenlyDestroyer
    Level 41
    Yekaterinburg
    Question about the task Threads and bytes
    Java Core, Level 8, Lesson 11
    Resolved
    Some hint would be much appreciatedIt's my first time I'm feeling so lost
    • 11/2/21
    • 551views
    • 4comments
    0
  • Andrei
    Level 41
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Resolved
    Code works, output is wrong. Introducing the suggested input data grandfather, grandmother etc... results as grandmother being the longest.Hi, the program works fine, no errors, however, the output is wrong and I can't figure out why exactly. However, I have noticed two strange things when testing. 1 - If I input b, c, a and other longer strings, the results will display "a" as being the first shortest, even though it is the third. 2
    • 10/26/20
    • 1013views
    • 14comments
    2
  • Przemek
    Level 25
    Lublin
    Question about the task Inverted words
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    Why doesn't it work?I tried for every possible words and numbers of words in the file and ALWAYS it gives the correct result. :(
    • 11/4/21
    • 821views
    • 4comments
    0
  • Onar D.
    Level 7
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Under discussion
    so hard task i try solve it alredy 15.days i believe.i dont understand @overide . and this task just piss me off. because why they overode inside methode sustem method. dont understand how it works.
    • 11/2/21
    • 751views
    • 3comments
    0
  • Przemek
    Level 25
    Lublin
    Question about the task Between tabs
    Java Multithreading, Level 2, Lesson 5
    Under discussion
    Does anybody can help? :)Does anybody can help? :)
    • 11/3/21
    • 452views
    • 1comment
    0
  • alex
    Level 3
    Under discussion
    more shortly lessons how to switch to shorter lessons?
    • 11/3/21
    • 462views
    • 0comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Resolved
    contradictory conditionsSee attached image of Task conditions. They provide sample data and sample output of that data. Problem is, they don't match up according to the stated conditions. The sample data contains a span tag containing "Leela Turanga" which is nested inside a b tag which is nested inside another span tag w
    • 11/2/21
    • 700views
    • 1comment
    0
  • Hoist
    Level 15
    San Diego
    Question about the task Triangular array
    Java Syntax, Level 6, Lesson 6
    Under discussion
    Error in Code Gym solution provided ....Error in Code Gym solution .... expected. file en/codegym/task/pro/task05/task0510/Solution.java, line 1, position 32
    • 10/30/21
    • 945views
    • 1comment
    0
  • 1
  • ...
  • 56
  • 57
  • 58
  • 59
  • 60
  • ...
  • 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