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
Ask a question
Java 25
All quests
All levels
Any status
Questions about tasks
Hot
Denis
Level 25
Vancouver
Question about the task
Introducing graphs
Java Core
,
Level 10
,
Lesson 10
Under discussion
Didn't understand anything !
Didn't understand anything ! I just put implements Serializable and passed it ? It was the most strange task for last 3-4 lvels :)
5/23/19
2041
views
7
comments
11
Βάιος Αργυρόπουλος
Level 25
Question about the task
Ask a question on Help
Web Core
,
Level 3
,
Lesson 4
Under discussion
Is this a real question ?
Is this a real question ?
1/27/25
172
views
0
comments
0
Sami ZAMMIT
Level 1
France
Question about the task
Moon Lander (Part 1/23)
Games
,
Level 0
,
Lesson 4
Under discussion
i have to download jar to use setScreenSize method?
Hi, I am resolving this task MoonLanderGame.java I use IntelliJ IDE how I can get jar or package to use setScreenSize method? i have to download jar ? please explain thank you
1/24/25
228
views
0
comments
2
hidden #10424566
Level 7
Question about the task
Improving functionality
Java Syntax
,
Level 5
,
Lesson 12
Resolved
HELP!! Passed the test but i don't get the method i used.
I passed the test, but I don't seem to understand what this means and under what topic it is. Please break it down for me to understand i.e. what the question mark and the colon mean etc: int m2 =a < b ? a : b; m2 = m2 < c ? m2 : c; m2 = m2 < d ? m2 : d; m2 = m2 &
2/11/19
2292
views
4
comments
1
007 X
Level 0
Nakhon Pathom
Question about the task
2048 (Part 1/18)
Games
,
Level 0
,
Lesson 2
Under discussion
My game.
hello everyone , I am a student. I got a job to make games with java. But I am not good at this language. Can anyone help me?
3/29/21
752
views
0
comments
2
Ku Yew Siang
Level 30
Sekudai
Question about the task
Restaurant (part 3)
Java Multithreading
,
Level 9
,
Lesson 15
Resolved
tried almosy 40 times.
What is wrong here? It doesnt verify despite my console output is correct
6/23/19
1817
views
6
comments
2
Developing Badger
Level 6
Under discussion
Is anyone else having an issue with syncing the newest Codegym plugin to Intellij?
Once I updated my Codegym plugin to the newest version " 231.1.20 ", it is not syncing properly. The tasks I have already completed on the Codegym site are showing incomplete, and I have even tried to complete them again, it just tells me they have already been completed. Is there anyway to make it
1/4/25
197
views
1
comment
0
Amira Alshaar
Level 50
Question about the task
Objects of inner and nested classes
Java Syntax
,
Level 12
,
Lesson 4
Under discussion
Outer()
Why he write in first object new Outer() .Inner() Why 2 ()?
5/8/24
261
views
1
comment
2
Christy
Level 5
Question about the task
Summation
Java Syntax
,
Level 4
,
Lesson 0
Under discussion
Pls explain the use of the Boolean and the condition in the while loop
Can someone please explain why the boolean in the while loop condition is set to 'true', i.e- !isExit. Why can't we just write while (isExit)? Also I'm finding it hard to understand the use of the boolean (how it's being implemented in the code).. I thought a boolean variable is normally only used
11/3/24
240
views
3
comments
0
ewhwj
Level 1
Under discussion
even if you want mokop!
edge {} app sera (8) email/[1/8) { {. } {. samera _. _. ™ {
10/31/24
237
views
1
comment
1
Evgeniia Shabaeva
Level 42
Budapest
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Under discussion
Don't I return the expected array of numbers?
I have quite a story with this task. First, none of the requirements was met, even though the output was as expected. Then I changed the Math.pow(...) method for my own digitToThePower(long a, long b) to save time and space in memory (as I understood from the help section that might be the problem).
11/14/24
286
views
4
comments
2
Kingpvz
Level 31
Question about the task
Buy 10 loaves of bread
Java Syntax
,
Level 11
,
Lesson 6
Under discussion
My code works but it's still wrong
i mean what
11/14/24
1713
views
1
comment
2
Anita Pal
Level 14
Question about the task
Print three times
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Plzz help me to find error
package com.codegym.task.task02.task0219; /* Print three times */ public class Solution { public static void print3(String s) { for(int i=0;i<3;i++) System.out.println(s); } public static void main(String[] args) { print3("window"); print3("file
7/16/19
1641
views
9
comments
0
Evgeniia Shabaeva
Level 42
Budapest
Question about the task
Snake (part 14)
Java Multithreading
,
Level 2
,
Lesson 18
Resolved
Nearly headless Snake's seeking help:)
I'm currently working on the print() method in the Room class. Initially, I couldn't get the "x"-s for the snake's body and kept getting the 5th requirement wrong (but the head was present). Then I figured out how to get the body's coordinates, but my snake lost its head (and my code fails the 4th r
1/16/25
244
views
2
comments
1
Travis McKinstry
Level 9
United States of America
Question about the task
Interval
Java Syntax
,
Level 3
,
Lesson 7
Resolved
This code is correct, yet it fails. Why?
Why does the following solution not work? if(a < 100 && a > 50) { System.out.println("The number " + a + " is in the interval."); } else { System.out.println("The number " + a + " is not in the interval."); }
11/4/21
842
views
7
comments
2
KaguraYuuki
Level 0
Question about the task
2048 (Part 1/18)
Games
,
Level 0
,
Lesson 2
Under discussion
Inheritance requirement
I have a Game.java file (for the Game Class) and the Game2048.java file. Both have imported the engine classes. I can't seem to pass the requirement for Game2048 class to inherit the Game class. Is the keyword 'extends' wrong?
1/5/20
1965
views
1
comment
2
Jo88
Level 4
Boston
Question about the task
Currency exchange
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
Over thinking ever single exercise
Will the exercises become second nature after more practice? will this website give me an opportunity for more practice? it seems I need help on every problem...only to find out these should be taking 2 minutes with simple short solutions.. I often find myself seeing the solutions to my problems an
6/3/20
986
views
6
comments
4
Evgeniia Shabaeva
Level 42
Budapest
Question about the task
Phone number verification
Java Multithreading
,
Level 2
,
Lesson 13
Resolved
The code verifies the given numbers correctly, but the last requirement is still not met
Well, I'm still following the creepy path of using regexes, as I'm interested in this topic and trying to master it this way:). I've tried to make my code account for all the suggested cases and tested it with all the suggested phone numbers plus some of mine. It finally produces the expected output
1/14/25
215
views
4
comments
0
Evgeniia Shabaeva
Level 42
Budapest
Question about the task
Make a word chain
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
My output is as expected, but not approved by the validator
This code I've written reads the words from a certain file and connects them into a chain in accordance with the given principle. Without the last snippet (the one after the last comment line), it would just output the longest chain possible, composed from the input words. Then the code would meet
1/9/25
274
views
7
comments
2
Evgeniia Shabaeva
Level 42
Budapest
Question about the task
Phone number verification
Java Multithreading
,
Level 2
,
Lesson 13
Resolved
I've got all the suggested phone numbers false:)
I might've got thins too complicated, so I'll publish my staff here. All the numbers I'm testing in the main method are marked as false. Is it the way I'm using regexes wrong, or my whole logic? I'd be grateful for some guidance:)
1/10/25
243
views
6
comments
0
Evgeniia Shabaeva
Level 42
Budapest
Question about the task
Prices 2
Java Core
,
Level 8
,
Lesson 11
Resolved
How to deal with the incoming arguments properly
I've been actually doing this task with pleasure, as it's similar to what I've done before. At this stage, it meets all the requirements except the 2nd one, which is: When you run the program without arguments, the product list must remain unchanged. At the moment the line checking for that in my c
9/16/24
250
views
2
comments
0
Evgeniia Shabaeva
Level 42
Budapest
Question about the task
Counting words
Java Core
,
Level 9
,
Lesson 5
Resolved
Not enough or too many (why?)
I'm counting how many times the word "world" occurs in a certain file. I've tried to ways: 1) if (words[i].equalsIgnoreCase("world")) count++; In this case my program does not find all the instances of "world" in the file. As there are probably words in the file that contain "world" but are not eq
9/17/24
249
views
3
comments
0
Evgeniia Shabaeva
Level 42
Budapest
Question about the task
Duplicate text
Java Core
,
Level 9
,
Lesson 8
Resolved
Why am I not writing to a file?
This code I've written passes all the requirements except the last but one. The validator adds a message, "Be sure that the program writes data to the file". According to my understanding, the program does write data to the file (fileName) in line 26: fos.write(baos.toByteArray()); (where fos is
9/25/24
222
views
2
comments
0
Evgeniia Shabaeva
Level 42
Budapest
Question about the task
Prevent cloning
Java Multithreading
,
Level 1
,
Lesson 8
Resolved
Why are C class objects still not cloned successfully?
I'm wondering why my code still doesn't meet the last requirement and the validator outputs that "C objects should be cloned successfully". I thought they were...
12/2/24
220
views
2
comments
0
Evgeniia Shabaeva
Level 42
Budapest
Question about the task
Inverted words
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
The output is correct, what's missing?
Well, this code of mine produces the expected output when tested. However, it doesn't meet the last requirement, which is actually about getting the pairs right. What am I missing?
1/6/25
219
views
3
comments
0
Salih Diril
Level 20
Istanbul
Question about the task
2 arrays
Java Syntax
,
Level 6
,
Lesson 4
Under discussion
Can't pass validation for 2 Arrays task, pls help
My solution is fine I think but it doesn't pass the verification. Could you tell me why?
1/5/25
215
views
2
comments
0
Sandeep
Level 6
Greensboro
Question about the task
Chess board
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
Able to print chessboard in both odd and even cases
Able to print chessboard in both odd and even cases, but its throwing The program needs to display the elements of the array on the screen error
7/23/24
304
views
6
comments
0
Kingpvz
Level 31
Under discussion
This is a certified <введенная строка> moment.
Good job translators.
12/21/24
240
views
0
comments
0
@amsilla
Level 10
Question about the task
Price of apples
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
My solution does not pass the requirements
The requirements are: ✅ The program should display text on the screen. ❌The Apple class's addPrice method should not display text on the screen. ✅ The Apple class's applePrice variable must be a static int initialized to zero. ❌ The main method should call the addPrice method only twice. ❌ The Apple
12/22/24
215
views
1
comment
0
Henrique
Level 41
São Paulo
Question about the task
Autoboxing features (part 2)
Java Multithreading
,
Level 9
,
Lesson 7
Resolved
no idea help pls
a
8/18/20
850
views
7
comments
0
Show more
1
...
4
5
6
7
8
...
374
Please enable JavaScript to continue using this application.