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
All quests
All levels
Any status
Questions about tasks
Hot
Ilia Kalugin
Level 25
Novara
Question about the task
Minesweeper (Part 5/16)
Games
,
Level 0
,
Lesson 0
Resolved
Verification of the penultimate item fails
Be sure that a mine is created with a probability of 10%. Whats wrong in my code?
24.09.2020
634
views
4
comments
0
Tiko hakobyan
Level 20
Yerevan
Question about the task
One for all, all for one
Java Core
,
Level 6
,
Lesson 10
Resolved
am i missing something? first requirement wont pass.
04.07.2020
612
views
4
comments
2
Baljinder Singh
Level 20
Toronto
Question about the task
No interrupt, no dice?
Java Core
,
Level 6
,
Lesson 10
Under discussion
Give me a hint, how to interrupt without using interrupt()
29.10.2018
1787
views
6
comments
0
matemate123
Level 50
Kraków
Question about the task
Reading a file
Java Core
,
Level 3
,
Lesson 11
Resolved
And now I pass 4 condition but 3 is now on red.
This topic with streams is so unclear, vague. I sit on this task but how I could do?
28.12.2022
527
views
2
comments
0
Gummy C
Level 11
United States of America
Question about the task
Remove duplicate strings
Java Syntax
,
Level 5
,
Lesson 3
Under discussion
I know I am asking a lot
Hi all, I know that I am asking a lot. But, I was able to get the code working, however, I do not really understand how it is working. So, my thought process went something like this. 1. We make an array with 6 elements. 2. We take the user's input and store it in each index. 3. We create a loop
29.12.2022
448
views
2
comments
0
yashwanth j v
Level 1
Jakarta
Under discussion
java code
construction of decoder in digital electronics
29.12.2022
292
views
0
comments
0
Jurij Thmsn
Level 29
Flensburg
Question about the task
Arkanoid (part 8)
Java Multithreading
,
Level 3
,
Lesson 13
Resolved
why Math.max(...)?
I already solved the task. I get how and why we calculate the distance between two points - but I don't understand one given part of the code: why we check if the distance is less than the bigger radius of the two objects? Shouldn't we check if the distance is less than the both radiuses added tog
19.10.2021
548
views
1
comment
1
Gummy C
Level 11
United States of America
Question about the task
Even and odd cells of an array
Java Syntax
,
Level 5
,
Lesson 0
Under discussion
What is wrong with my code?
I ran the code and it shows the correct solution. I am not sure what is wrong with it
28.12.2022
305
views
6
comments
0
EDDIE SANCALA JR
Level 6
Caraga DAVAO ORIENTAL
Question about the task
Even and odd cells of an array
Java Syntax
,
Level 5
,
Lesson 0
New
Solution
package en.codegym.task.pro.task05.task0502; /* Even and odd cells of an array */ public class Solution { public static final String ODD = "Odd"; public static final String EVEN = "Even"; public static String[] strings = new String[5]; public static void main(String[] args) {
27.12.2022
204
views
0
comments
0
matemate123
Level 50
Kraków
Question about the task
Reading a file
Java Core
,
Level 3
,
Lesson 11
Under discussion
The BufferedReader must also be closed.
But I closed it. I was reading other people problem with this task , and I don't understand whats going on with this closing stream. Please some hint.
27.12.2022
310
views
1
comment
0
Gummy C
Level 11
United States of America
Under discussion
What is wrong with my code. It is printing the frame but I am getting an extra B on the side.
int a=0; while(a<10){ int b=0; if(a ==0 || a==9){ while(b<20){ b++; System.out.print("B"); } }else{ System.out.println("B B"); } a++; }
27.12.2022
251
views
0
comments
0
slyyx
Level 15
New York City
Question about the task
Snake (Part 6/20)
Games
,
Level 0
,
Lesson 1
Resolved
Error says there are no arguments in the Snake constructor?
Getting the following error: com/codegym/games/snake/part06/Snake.java:12: error: constructor GameObject in class com.codegym.games.snake.part06.GameObject cannot be applied to given types; public Snake(int x, int y){ ^ required: int,int found: no arguments
19.07.2020
950
views
1
comment
0
Dustin Lerch
Level 9
United States of America
Question about the task
Minesweeper (Part 3/16)
Games
,
Level 0
,
Lesson 0
New
What is this ??? I just want the game to launch. (LINUX)
Can anyone provide some advice ? I didnt do anything with task 3 yet because I dont want to continue until i can figure out how to launch this game via linux OS /home/dustinlerch/.jdks/corretto-1.8.0_352/bin/java -javaagent:/home/dustinlerch/idea-IC-221.5080.210/lib/idea_rt.jar=44107:/home/dustinle
24.12.2022
320
views
0
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Big Ben
Java Core
,
Level 6
,
Lesson 7
Under discussion
How to implement 24 hour format?
need help
27.02.2019
1857
views
5
comments
0
Jaime Padilla
Level 41
Chandler
Question about the task
Long words
Java Core
,
Level 9
,
Lesson 11
Resolved
What's wrong here?
What's wrong here? I've tried many different solutions and for some reason it won't pass. Why?
20.12.2022
350
views
1
comment
0
Dustin Lerch
Level 9
United States of America
Question about the task
Correct order
Java Syntax
,
Level 7
,
Lesson 2
Under discussion
why isnt my code accepted
i changed the original array? it printed only two lines? what do you want from me lol?
20.12.2022
356
views
1
comment
0
hendra gunawan
Level 9
tebing tinggi
Question about the task
Chess board
Java Syntax
,
Level 6
,
Lesson 5
Resolved
please help ....I'm stuck in the second and the third point....
how to initialized with the appropriate sized and outlined with the task condition.....
20.12.2022
384
views
0
comments
0
Liliane Top
Level 17
Amsterdam
Question about the task
Incorrect lines
Java Core
,
Level 3
,
Lesson 11
Resolved
Why do we need to declare the method with String type?
I do not understand why we need to declare the String type with the method onPress() and parameter Object o. It works perfectly fine without it so why do we have to insert this additional code?
14.03.2020
1060
views
1
comment
1
Sal
Level 5
Under discussion
Where is the problem?
Can anyone help me to spot the problem with my code? because when I run it, it keeps displaying the smallest number from the input, not the second smallest one. I would really appreciate it 🙏
18.12.2022
320
views
1
comment
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
Mastering ClassLoader and Reflection
Java Collections
,
Level 6
,
Lesson 10
Under discussion
Need some help understanding ClassLoader
When I use a statement like: classLoader.loadClass() What String am I putting inside the parentheses? Is it: 1. The full absolute path to the class file? 2. A relative path to the class file (dependent on where the ClassLoader is made)? 3. Just the file name of the class? 4. Just the class name?
16.12.2022
322
views
0
comments
0
Dustin Lerch
Level 9
United States of America
Question about the task
Chess board
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
The array must be filled as outlined in the task conditions.
What does this meaaaaan? I'm so lost on this one.
15.12.2022
341
views
3
comments
0
yz
Level 37
Jakarta
Question about the task
Find the class by its description
Java Collections
,
Level 6
,
Lesson 6
Resolved
anyone did this )?
???
12.04.2020
1118
views
6
comments
2
Hruthish
Level 1
Bangalore
Question about the task
2048 (Part 1/18)
Games
,
Level 0
,
Lesson 2
Under discussion
practice code?
how to practice Code?
15.12.2022
362
views
2
comments
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
Using TreeSet
Java Collections
,
Level 6
,
Lesson 8
Under discussion
Example outputs don't match task conditions
They say that only unique letters should be printed out. And that lower and upper case letters are treated as the same thing. However... In the conditions file, they give two example inputs and outputs. If the input text is "zBk yaz b-kN", then they say the output should be "abkny". However b and k
13.12.2022
287
views
0
comments
0
Asanga Costa
Level 2
Zurich
Under discussion
Starting over?
Dear all, I've progressed to about level 2 but had to stop for a while. Now I have forgotten most of what I had learnt and want to start all over again. Is it possible to do that? Or do I need to create a new login name? Thank you in advance for any feedback. Regards Asanga
12.08.2019
1452
views
2
comments
1
TonySD #10964130
Level 24
Russia
Under discussion
Plugin Outdated
After click on "Select a task", Intellij IDEA alarms that plugin outdated. If i press "update", it's restarting and still alarms
19.09.2022
699
views
2
comments
3
Paul
Level 24
Vienna
Question about the task
Deep cloning of a map
Java Multithreading
,
Level 1
,
Lesson 8
Under discussion
What does actually happen in the clone() method?
I don't think I understand this topic even after doing some reading on it. I will try to describe as good as I can what I think happens in my code. If you can see the mistake, I would be grateful for any hints. As far as I understand after clone() in the main method is called, the solution.clone()
09.12.2022
653
views
3
comments
0
Kristian Kelij
Level 18
New
Completed AP Java Exam Lite, problem with dark matter
Hi guys, I´ve completed AP Java Exam Lite, first 15 levels and now when I want to continue to Java Core I have to spend instead of 1 Dark matter 11. Is it okey ? What I have to do ?
11.12.2022
321
views
0
comments
0
Norbert
Level 41
Kielce
Question about the task
CashMachine (part 9)
Java Collections
,
Level 9
,
Lesson 15
Resolved
Why the InterruptedOperationException is still an error
I remove abstract from the InterruptedOperationException.
11.12.2022
345
views
1
comment
0
Mark Beattie
Level 13
Oshawa
Question about the task
Exceptions. Just exceptions.
Java Syntax
,
Level 9
,
Lesson 8
Under discussion
In IntelliJ IDEA my task verification request comes back with Unknown Error during task verification.
I attempted to run my solution from the browser but was told the following: This task cannot be run on the CodeGym server. Use IntelliJ IDEA. I tried it on IntelliJ, and can run the task. When trying to get it verified, I get the message saying 'Unknown error during task verification" Went back t
24.11.2022
292
views
2
comments
0
Show more
1
...
33
34
35
36
37
...
372
Please enable JavaScript to continue using this application.