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
  • Roman Grygorczuk
    Level 19
    Cracow
    Question about the task Software update
    Java Syntax, Level 8, Lesson 11
    Resolved
    Cannot pass last requirementsHi all, Cannot pass the last condition. I read through another examples in the forum but I cannot understand what is wrong. Any hints? Thanks, Roman
    • 11/22/20
    • 813views
    • 9comments
    0
  • Bogdan Codreanu
    Level 23
    Question about the task Find all the files
    Java Collections, Level 1, Lesson 2
    Resolved
    can someone help please ????
    • 9/5/19
    • 1486views
    • 2comments
    0
  • Jay
    Level 17
    Washington
    Question about the task Robot wars
    Java Core, Level 3, Lesson 11
    Under discussion
    Compilation error: Need Help I continue to receive the following error message, and I can't figure out why: com/codegym/task/task13/task1328/Solution.java:27: error: cannot find symbol robotFirst.getName(), robotSecond.getName(), attacked, defended)); ^ symbol: method getName()
    • 8/14/19
    • 1172views
    • 2comments
    0
  • Andrei
    Level 41
    Question about the task Identical words in a list
    Java Syntax, Level 10, Lesson 11
    Under discussion
    The algorithm works on paper but running it gives different result.Please advise, what am I doing wrong?
    • 11/19/20
    • 709views
    • 6comments
    0
  • Maksim Lukjanskis
    Level 17
    Riga
    Question about the task StringHelper class
    Java Syntax, Level 6, Lesson 8
    Under discussion
    Someone can help me?I read a couple of differents hints, from others questions, but still can't understand...
    • 11/23/20
    • 614views
    • 2comments
    0
  • Vo
    Level 41
    Sofia
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Resolved
    It seems that everything is fine, but I guess I am missing something.I get great timing and decent memory usage in IntelliJ Idea. The results also seem to be correct. Do I miss something? Is there are corner case I am missing out? Thanks!
    • 11/18/20
    • 758views
    • 3comments
    0
  • Rishabh Joshi
    Level 10
    Indore
    Under discussion
    Why does it not work?public class Solution { public static int min(int a, int b, int c, int d) { //write your code here int m2 = min(min(int a, int b), min(int c, int d)); return m2; } public static int min(int a, int b) { //write your code here int m1 = a < b ? a
    • 11/21/20
    • 535views
    • 4comments
    0
  • Mihaela
    Level 16
    Iasi
    Question about the task Positive number
    Java Syntax, Level 4, Lesson 7
    Resolved
    Help!"Note that 0 is not a positive or negative number." ??
    • 1/30/19
    • 2052views
    • 4comments
    0
  • Roman Grygorczuk
    Level 19
    Cracow
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Resolved
    Cannot pass third stepHi all, The program doesn't want to pass third step. I works and gave me the correct output. Any hint how to test it out? Thanks, Roman
    • 11/22/20
    • 710views
    • 2comments
    0
  • Шарох
    Level 12
    Question about the task Static cats
    Java Syntax, Level 6, Lesson 11
    Under discussion
    Hi Coders ! What should I do ? I don't know arrays.
    • 11/21/20
    • 698views
    • 4comments
    0
  • Sylwia
    Level 16
    Deutschland
    Resolved
    String array to 2D char arrayHello, I don't really understand how the 2D array works here. Why can't we take a normal array? Can someone explain this? Is there any other way to convert String array to char array? Thank you! String[] arr = { "apple", "banana" }; char[][] cs= new char[arr.length][]; for (int i = 0;
    • 11/21/20
    • 459views
    • 0comments
    0
  • Michael
    Level 10
    Dresden
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Resolved
    The code solves the tasks with a quite easy solution, yet it does not meet the validator's expectations. Does anyone have an idea why the code does not validate?
    • 10/19/20
    • 551views
    • 3comments
    0
  • Cristian
    Level 16
    Bucharest
    Question about the task Playing Javarella
    Java Syntax, Level 7, Lesson 9
    Under discussion
    I have one missing requirement. Help me, please! Thank you!package com.codegym.task.task07.task0713; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import java.util.List; /* Playing Javarella */ public class Solution { public static void main(String[] args) throws Exception {
    • 11/4/19
    • 1197views
    • 4comments
    0
  • Jason
    Level 26
    Rancho Cucamonga
    Question about the task Reading and writing to a file: Human
    Java Core, Level 10, Lesson 2
    Under discussion
    Is it just me or is this another time CodeGym didn't teach us a damn thing about the skills we will need to do the tasks at hand. Great Start to Section 20...Does anyone have any links or documentation that is actually useful for completing these tasks. I tried combing the questions section and didn't find anything and then I tried to just read and write some code I found in the same places hoping to get some understanding but that did not work out at al
    • 10/28/19
    • 2077views
    • 13comments
    6
  • Nicholas Burkill
    Level 3
    Toronto
    Question about the task Escaping characters
    Java Syntax, Level 3, Lesson 6
    Under discussion
    help? not sure why this isn't working. seems identical to what is supposed to be printed.
    • 11/21/20
    • 679views
    • 2comments
    0
  • Nemanja Vasiljevic
    Level 11
    Beograd
    Question about the task Feline carnage
    Java Syntax, Level 5, Lesson 5
    Resolved
    Three fights error?Why am I getting an error, that I need to conduct three fights, when I obviously do?
    • 10/29/18
    • 2285views
    • 4comments
    4
  • tony
    Level 20
    Nis
    Question about the task Feline carnage
    Java Syntax, Level 5, Lesson 5
    Resolved
    Don't understandI don't understand this, I have 3 fights in my code, but still, there is an error saying "You need to conduct three fights." Any idea why this happens?
    • 11/30/18
    • 1985views
    • 4comments
    2
  • Шарох
    Level 12
    Question about the task ConsoleReader class
    Java Syntax, Level 6, Lesson 8
    Resolved
    Hi Coders! Where I missed return statement?
    • 11/21/20
    • 659views
    • 5comments
    0
  • Seferi
    Level 22
    Question about the task Replacing numbers
    Java Core, Level 9, Lesson 11
    Archived
    Its working for me but for some reason doesnt validateHelp is appreciated
    • 11/18/20
    • 557views
    • 2comments
    0
  • Andrew
    Level 29
    Seattle
    Question about the task Replacing numbers
    Java Core, Level 9, Lesson 11
    Archived
    How did you do it?I got the answer but I'm really curious how others went about the solution. I'm sure there are better/more succinct ways to solve this task. Specifically, how did you handle "12."? My crazy solution involves splitting each line into words. If the first character of a word is a number, then I split
    • 2/28/19
    • 2017views
    • 3comments
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Replacing numbers
    Java Core, Level 9, Lesson 11
    Archived
    Need helpPls guys
    • 6/29/19
    • 1178views
    • 2comments
    0
  • Rishabh Joshi
    Level 10
    Indore
    Under discussion
    I got an error in this solution. Is something wrong here?package com.codegym.task.task02.task0202; /* Where does a Person come from? */ public class Solution { public static void main(String[] args) { //write your code here Person person = new Person();; person.name = "Rishabh"; person.age = 22; person.weigh
    • 11/20/20
    • 622views
    • 1comment
    0
  • Lex Icon
    Level 17
    Sofia
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Resolved
    The code seems correct, but...Any ideas why it doesn't work?
    • 11/19/20
    • 595views
    • 3comments
    0
  • Jyothi
    Level 20
    Question about the task Writing to a file from the console
    Java Core, Level 3, Lesson 11
    Resolved
    Not passing write exit to fileNot passing write exit to file
    • 1/13/19
    • 2318views
    • 10comments
    0
  • Michael
    Level 10
    Dresden
    Question about the task Words in reverse
    Java Syntax, Level 7, Lesson 9
    Resolved
    Again also in this task, the code produces the correct result but does not validateDoes anyone see, why the second and third condition do not validate? Thanks for your suggestions!
    • 9/26/20
    • 685views
    • 4comments
    0
  • Cam
    Level 15
    Bogota
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Under discussion
    I can't verify the last taskafter cracking my head open I finally managed a way out of the while loop, yet I'm still unable to "not lose the last number" and I don't understand why... please help
    • 11/19/20
    • 522views
    • 2comments
    0
  • Rajni Agrawal
    Level 12
    Bangalore
    Question about the task Let's make the code do something useful!
    Java Syntax, Level 9, Lesson 11
    Resolved
    Validation 3 is not successful.Working fine in both conditions but validation not going thru.
    • 11/19/20
    • 560views
    • 4comments
    0
  • Шарох
    Level 12
    Question about the task Even and odd digits
    Java Syntax, Level 6, Lesson 5
    Resolved
    Hi Coders! What should I do ? It's hard .
    • 11/18/20
    • 716views
    • 4comments
    0
  • Himanshu Pal
    Level 3
    Delhi
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Resolved
    don't know where is mistake package com.codegym.task.task02.task0204; /* Family relations */ public class Solution { public static void main(String[] args) { Man men = new Man(); Woman woman = new Woman(); man.wife = woman; woman.husband = man;} //man.wife=woman; woman.husband = man;
    • 8/31/18
    • 2727views
    • 23comments
    0
  • Albert
    Level 6
    Hong Kong
    Question about the task Product of 10 numbers
    Java Syntax, Level 3, Lesson 4
    Under discussion
    Is there anyway that I could further simplify the code? Thankspublic class Solution { public static void main(String[] args) { //write your code here int d = 1; for (int i=1; i<=9; i++){ d= d*(i+1); } System.out.println(d); } }
    • 11/19/20
    • 539views
    • 1comment
    0
  • 1
  • ...
  • 114
  • 115
  • 116
  • 117
  • 118
  • ...
  • 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