CodeGym
Promotion
CodeGym University
Java FullStack
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
  • Bob
    Level 9
    Newark
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 4
    Resolved
    Not sure what I did wrong.I get the right answer yet it keeps failing me.
    • 3/24/21
    • 826views
    • 2comments
    0
  • Bob
    Level 9
    Newark
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    I get the right answer but its saying im wrongI dont understand what I did wrong. Please help.
    • 3/24/21
    • 684views
    • 1comment
    0
  • Baurzhan Konurbayev
    Level 40
    Question about the task CashMachine (part 4)
    Java Collections, Level 9, Lesson 15
    Resolved
    Seems fine, but still failsHi, Please, help. What could I miss here? Thanks
    • 3/24/21
    • 647views
    • 1comment
    0
  • remote87
    Level 18
    Sofia
    Question about the task CRUD
    Java Core, Level 7, Lesson 10
    Resolved
    Why, why, why?!Why does not my code passes the tests?! What am I doing wrong?! I've been on this task for about 6 or 7 hours straight... Please, any advice!
    • 3/23/21
    • 569views
    • 5comments
    0
  • Josephine
    Level 1
    Normal
    Question about the task Between tabs
    Java Multithreading, Level 2, Lesson 5
    Resolved
    Some exceptions are throwing.Getting the right output in intellij.What is the erroor here?com.codegym.task.task22.task2203.Solution$StringTooShortException at com.codegym.task.task22.task2203.Solution.getPartOfString(Solution.java:18) at com.codegym.task.task22.task2203.Solution.main(Solution.java:37) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.Nativ
    • 3/15/21
    • 566views
    • 1comment
    0
  • DmdKanth
    Level 19
    Dayton
    Question about the task Set of cats
    Java Syntax, Level 8, Lesson 11
    Under discussion
    mine's failing in three ways but it's working just fine. Any ideas?Inside the Solution class, there must be a public static Cat class with a default constructor. <==Fails The Solution class's printCats() method must display all the cats in the set. Each cat on a new line. <==Fails The main() method must remove one cat from the set of cats. <==Fails
    • 3/22/21
    • 557views
    • 2comments
    0
  • Solanki Dhruv
    Level 18
    Surat
    Question about the task Synchronized president
    Java Core, Level 7, Lesson 4
    Resolved
    Where is the problem??
    • 12/16/18
    • 2335views
    • 8comments
    0
  • lizhi
    Level 20
    Resolved
    Why is my recursion useless? Help!!private void openTile(int x, int y) { GameObject cell = gameField[y][x]; if (cell.isOpen == true) { return; } cell.isOpen = true; setCellColor(x, y, Color.GREEN); if (cell.isMine) { setCellValue(x, y, MINE); setCellColor(x, y, Color.RED); }
    • 3/19/21
    • 833views
    • 9comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Rounding numbers
    Java Core, Level 8, Lesson 11
    Under discussion
    What is wrong in my code?input: 3.45 6.76 4.1 7.888 9.6 1.001 output: 3 7 4 8 10 1
    • 3/19/19
    • 1517views
    • 1comment
    1
  • Niladri pradhan
    Level 33
    Mumbai
    Question about the task Strain your brain!
    Java Multithreading, Level 3, Lesson 8
    Resolved
    I passed the test but doesn't understand how? Why changing the access modifier of getname method changed the output we get Please explain..
    • 9/13/19
    • 1866views
    • 7comments
    3
  • Abdelrahman
    Level 5
    Amman
    Question about the task Creating cats
    Java Syntax, Level 5, Lesson 9
    Resolved
    helpcould someone explain to me why all these tasks are not checking. I have done everything that they have asked
    • 3/19/21
    • 634views
    • 1comment
    0
  • Daniel Whyte
    Level 17
    Question about the task Minimum and Maximum
    Java Core, Level 1, Lesson 11
    Under discussion
    Negative Mine fails for modifying the array but also for only returning positive numbers. Why does my bubble sort only seem to return positive numbers?
    • 3/20/21
    • 542views
    • 2comments
    0
  • Senned
    Level 41
    Azov
    Question about the task Aggregator (part 16)
    Java Collections, Level 8, Lesson 15
    Resolved
    What's wrong with my IndeedStrategy class?It works, but not validated.
    • 1/12/20
    • 1316views
    • 3comments
    3
  • Raed Saleh
    Level 25
    Amman
    Question about the task Word search
    Java Core, Level 10, Lesson 10
    Resolved
    why this task wont verify, any help pleasewhy this task wont verify, any help please.
    • 3/17/21
    • 692views
    • 5comments
    0
  • Andrei
    Level 41
    Question about the task Word search
    Java Core, Level 10, Lesson 10
    Under discussion
    Why is it displaying all of the elements when I have instructed it to skip duplicates?In line 41 I have added : if (wordsFound.contains(word)) continue; Even if I move this line after 38 it still prints the same result. I don't understand why. When I run the program, this is the result: same - (1, 1) - (3, 4) same - (1, 1) - (2, 4) same - (1, 1) - (4, 1) same - (1, 1) - (2, 0) hom
    • 3/15/21
    • 869views
    • 13comments
    0
  • Raed Saleh
    Level 25
    Amman
    Question about the task Word search
    Java Core, Level 10, Lesson 10
    Resolved
    why this task wont verify, any help pleasewhy this task wont verify, any help please
    • 3/18/21
    • 742views
    • 3comments
    0
  • Edward Rickers
    Level 15
    Washington
    Question about the task Do we have a pair?
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Why does this say not a statement? public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int first = Integer.parseInt(reader.readLine()); int second = Integer.parseInt(reader.readLine()); //th
    • 3/19/21
    • 917views
    • 1comment
    0
  • Sinisa
    Level 11
    Banja Luka
    Question about the task The code won't compile…
    Java Syntax, Level 9, Lesson 11
    Resolved
    Intellij time out when verifyingHello, I can't verify this task on Intellij. This is the first time this error appearing. Any idea?
    • 3/17/21
    • 869views
    • 2comments
    0
  • Mina Nabil
    Level 17
    Sydney
    Question about the task The early bird gets the worm
    Java Core, Level 6, Lesson 13
    Under discussion
    Hi, whats wrong with my code?Hi, whats wrong with my code, it works fine but it is not getting verified. When I run it, the output is fine however the program does not terminate, could someone help ?
    • 3/17/21
    • 585views
    • 5comments
    0
  • Mina Nabil
    Level 17
    Sydney
    Question about the task Arranging calls to join()
    Java Core, Level 6, Lesson 5
    Under discussion
    A questionSorry, this question is not related to the task, I just do not know where to put it. Regarding this simple code, why after throwing an exception, it keeps printing "Tick" ? public class Main { public static void main(String[] args) throws InterruptedException { Clock clock = n
    • 3/17/21
    • 952views
    • 3comments
    0
  • Aleksandr
    Level 22
    Moscow
    Question about the task Word search
    Java Core, Level 10, Lesson 10
    Under discussion
    Help me pleaseHello, I tried many of variants, but no one did pass the verification. I have "more mathes" than needed, but why they don`t needed? I did try do this task with 8 directions, but lost structer and return to 4 directions(beacuse we go from left top corner string by string to rigth bottom corner). My
    • 3/15/21
    • 1019views
    • 4comments
    0
  • Roman Grygorczuk
    Level 19
    Cracow
    Question about the task Most frequent bytes
    Java Core, Level 8, Lesson 3
    Resolved
    Cannot find what is wrongHey guys, Could you please take a look what can be wrong here. I get correct output but still cannot pass the test. Thanks, Roman
    • 3/14/21
    • 1062views
    • 7comments
    0
  • Baurzhan Konurbayev
    Level 40
    Question about the task Log parser (part 1)
    Java Collections, Level 7, Lesson 15
    Under discussion
    Still getting tests failuresHi, Previously I though there might be an issue due to date equality comparison methodology (using equals method). Here, I am using strings to compare for equality, but still have tests failures. Any hints? Thanks
    • 3/16/21
    • 590views
    • 2comments
    0
  • Dave Shapiro
    Level 31
    Co. Kerry
    Resolved
    Colours not appearing as coded in published game on website.I just published the snake game. https://codegym.cc/projects/apps/36280 For some reason, Monty the snake isn't changing colour anymore when he eats the mushroom, or flashing when the invincibility is about to wear off, now that it's published. :( It works perfectly when I run it from Intellij. W
    • 3/16/21
    • 822views
    • 5comments
    0
  • Daniel Whyte
    Level 17
    Question about the task Task about algorithms
    Java Syntax, Level 10, Lesson 11
    Under discussion
    Bubble sortI used a bubble sort from online but it seemed to be quite a few characters out. Why is this?
    • 3/16/21
    • 763views
    • 3comments
    0
  • Andrei
    Level 41
    Question about the task Word search
    Java Core, Level 10, Lesson 10
    Resolved
    The syntax for a 2d array is : array_name[row_index][column_index] = value; Why, for this exercise, the desired output requests inverted syntax? array_name[column_index][row_index] it's so confusing!home - (5, 3) - (2, 0) - column 5, row 3 and column 2, row 0 Am I missing something? public static void main(String[] args) { int[][] wordSearch = new int[][]{ {'f', 'd', 'e', 'r', 'l', 'k'}, {'u', 's', 'a', 'm', 'e', 'o'}, {'l', 'n', 'g
    • 3/16/21
    • 747views
    • 6comments
    0
  • Baurzhan Konurbayev
    Level 40
    Question about the task Log parser (part 1)
    Java Collections, Level 7, Lesson 15
    Resolved
    Test failedHi, Could you please give some hints where test fail at? Thank you
    • 3/14/21
    • 657views
    • 2comments
    0
  • Mina Nabil
    Level 17
    Sydney
    Question about the task Singleton
    Java Core, Level 4, Lesson 8
    Resolved
    A quick questionHi, I solved it but could someone please explain more this part of the code, I mean when we assign a static variable to a new Object, like how does it work ? private static Singleton instance = new Singleton();
    • 3/15/21
    • 1177views
    • 2comments
    0
  • George
    Level 6
    Chiajna
    Question about the task Positive and negative numbers
    Java Syntax, Level 4, Lesson 4
    Under discussion
    taskswhat's wrong here? the output seems to be correct.
    • 7/26/20
    • 830views
    • 3comments
    0
  • Mr Coder
    Level 12
    Heywood
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Under discussion
    Code works with removing duplicate values but tests are passing. Can anyone help please. package com.codegym.task.task08.task0817; import java.util.HashMap; import java.util.Map; import java.util.Iterator; /* We don't need repeats */ public class Solution { public static HashMap createMap() { //write your code here HashMap map = new HashMap();
    • 3/15/21
    • 1155views
    • 4comments
    0
  • 1
  • ...
  • 82
  • 83
  • 84
  • 85
  • 86
  • ...
  • 375
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