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
  • Karol Wijas
    Level 12
    Zawada
    Under discussion
    Poziomy trudności zadań ?Witam, Czy ktoś opisze poziomy trudności zadań? Tak z ciekawości bo nie mogę nigdzie znaleźć na stronie :D
    • 26.11.2020
    • 477views
    • 5comments
    0
  • Andrei
    Level 41
    Question about the task Don't mix beer with cola
    Java Core, Level 3, Lesson 2
    Resolved
    public vs default?If public interface drink is public, and public class beer is public and boolean isAlcoholic is default, why do I have to change it to public when implementing it in beer class?
    • 26.11.2020
    • 422views
    • 2comments
    0
  • Jeremi Nuer
    Level 7
    San Francisco
    Question about the task String array in reverse order
    Java Syntax, Level 7, Lesson 4
    Resolved
    Should work... why doesn't it?I've checked other peoples problems, and looked over mine quite a few times. Everything should work, but its not fulfilling last two requirements, and its not telling me whats wrong.
    • 26.11.2020
    • 398views
    • 1comment
    0
  • Albert
    Level 6
    Hong Kong
    Question about the task Create a Rectangle class
    Java Syntax, Level 5, Lesson 9
    Under discussion
    Cannot get the point of this task// I kind of pass the task, but I have completely no idea what I have done // Did I miss any element from the task? /* if I type: public Rectangle(int left, int width){ // case A this.left = left; this.width = width; } does it presents to the system the same as: pu
    • 24.11.2020
    • 697views
    • 2comments
    0
  • Maryem Vickers
    Level 7
    HT...
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Under discussion
    Hey, what is the NullPointerException Error here?! I need some help!Hi coders, Can I have some help?! If you run this, you find this error; java.lang.NullPointerException at com.codegym.task.task07.task0708.Solution.main(Solution.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethod
    • 13.11.2020
    • 406views
    • 2comments
    0
  • Andrei
    Level 41
    Question about the task Minesweeper (Part 6/16)
    Games, Level 0, Lesson 0
    Resolved
    I don't understand how gameField[y][x] = new GameObject(x, y, isMine); works. Can someone please explain?Hello, In the program there is this line gameField[y][x] = new GameObject(x, y, isMine); but I don't quite understand what exactly is does. Does it add at position y the indices x which is the new game object? Do the x and y from gameobject transfer to the gamefield array? If so, how is that po
    • 24.11.2020
    • 697views
    • 4comments
    0
  • Dave Shapiro
    Level 31
    Co. Kerry
    Question about the task Cats
    Java Core, Level 4, Lesson 4
    Under discussion
    Glitch in task i think?Output I'm getting: I'm boss, an alley cat I'm a nice kitten named Missy I'm a nice kitten named Smudgey I'm pirate, an alley cat My method (I'll post it since it won't pass with this!): BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); String catIn = null; w
    • 16.11.2020
    • 510views
    • 5comments
    0
  • Cristian
    Level 13
    Ploiesti
    Question about the task R or L
    Java Syntax, Level 7, Lesson 9
    Under discussion
    Cannot find symbol symbol: method remove(int) location: variable s of type java.lang.String.Hi, guys! I make a mistake. It's something about method remove, I think. cannot find symbol symbol: method remove(int) location: variable s of type java.lang.String. Please clarify me. Thank you in advance! package com.codegym.task.task07.task0716; import java.util.ArrayList; /* R or L */ pub
    • 23.11.2020
    • 1827views
    • 4comments
    0
  • 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
    • 22.11.2020
    • 697views
    • 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 ????
    • 05.09.2019
    • 1393views
    • 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()
    • 14.08.2019
    • 1077views
    • 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?
    • 19.11.2020
    • 608views
    • 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...
    • 23.11.2020
    • 490views
    • 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!
    • 18.11.2020
    • 630views
    • 3comments
    0
  • Rishabh Joshi
    Level 9
    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
    • 21.11.2020
    • 442views
    • 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." ??
    • 30.01.2019
    • 1944views
    • 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
    • 22.11.2020
    • 614views
    • 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.
    • 21.11.2020
    • 593views
    • 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;
    • 21.11.2020
    • 358views
    • 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?
    • 19.10.2020
    • 454views
    • 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 {
    • 04.11.2019
    • 1056views
    • 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
    • 28.10.2019
    • 1918views
    • 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.
    • 21.11.2020
    • 583views
    • 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?
    • 29.10.2018
    • 2174views
    • 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?
    • 30.11.2018
    • 1869views
    • 4comments
    2
  • Шарох
    Level 12
    Question about the task ConsoleReader class
    Java Syntax, Level 6, Lesson 8
    Resolved
    Hi Coders! Where I missed return statement?
    • 21.11.2020
    • 540views
    • 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
    • 18.11.2020
    • 463views
    • 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
    • 28.02.2019
    • 1854views
    • 3comments
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Replacing numbers
    Java Core, Level 9, Lesson 11
    Archived
    Need helpPls guys
    • 29.06.2019
    • 1050views
    • 2comments
    0
  • Rishabh Joshi
    Level 9
    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
    • 20.11.2020
    • 526views
    • 1comment
    0
  • 1
  • ...
  • 111
  • 112
  • 113
  • 114
  • 115
  • ...
  • 372
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 © 2025 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2025 CodeGym