Course
Tasks
Games
Help
Subscriptions
Success stories
Chat
Forum
Articles
Users
Activity
Help with tasks
Reviews
About us
Start
Start learning
Start learning now
All questions
Ask a question
All quests
All quests
All levels
All levels
Level 0
Level 1
Level 2
Level 3
Level 4
Level 5
Level 6
Level 7
Level 8
Level 9
Level 10
Any status
Any status
New
Discussed
Resolved
Archived
Duplicates
Questions about tasks
Hot
Hot
Popular
New
Old
Maxim Raitin
Level 8
Tomsk
Question about the task
Greater than 10? You're not a good fit for us
,
Level 8
,
Lesson 8
New
It works in IDE
last requir doesn't met. Why? It works correct in IDE
27 February 2021
1
view
0
comments
0
remote87
Level 15
Sofia
Question about the task
Request parser
,
Level 5
,
Lesson 12
New
I'm loosing my mind here...
Hello everyone! For the last couple of days, I have been trying to solve this task... I know I'm really close, but I can't figure this out: Why is this code not capturing name as a next token?! Any hint?
27 February 2021
12
views
0
comments
0
TaoLu
Level 5
泾县
Under discussion
build failed
CodeGymTasks\8.Games\src\com\codegym\games\minesweeper\MinesweeperGame.java:8:8 java: 无法访问javafx.application.Application 找不到javafx.application.Application的类文件 manual op: javac -cp lib/* -encoding "UTF-8" -d ../out/production/8. Games src/com/codegym/games/minesweeper/*.java src\com\codegym\games\
21 February 2021
28
views
2
comments
1
chan kenneth
Level 7
Hong Kong
Question about the task
Shortest or longest
,
Level 7
,
Lesson 6
Under discussion
cannot verify
I think i have got the answer but i cannot verify it. can somebody helps ? Thank you
27 February 2021
9
views
1
comment
0
Andrei
Level 20
Question about the task
Deserialization
,
Level 10
,
Lesson 10
Under discussion
Please break down this code
Three of the requirements are: The getOriginalObject method must return the A object received from the ObjectInputStream. The getOriginalObject method must return null if an A object is not received during deserialization attempts. The getOriginalObject method must return null if an exception is th
26 February 2021
28
views
6
comments
0
Aleksandar Neshkovski
Level 7
Skopje
Question about the task
Expressing ourselves more concisely
,
Level 7
,
Lesson 6
Under discussion
The program run too long and was closed!
With this task, I constantly get this message (The program run too long and was closed). My solution is 90 the same as one of the previous tasks (Longest string), since the conditions are almost the same, only flipped around. I have experienced this kind of thing before, a few days ago, but back the
26 February 2021
14
views
2
comments
0
Andrei
Level 20
Question about the task
Overriding serialization
,
Level 10
,
Lesson 7
Resolved
What is the point of creating a new thread in the readObject method and starting that thread if that is done already when we create a new object?
package com.codegym.task.task20.task2015; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; /* Overriding serialization */ public class Solution implements Serializable, Runnable { private transient Thread runner;
26 February 2021
21
views
3
comments
0
Сергей
Level 3
Question about the task
Escaping characters
,
Level 3
,
Lesson 6
Under discussion
what's wrong?
package com.codegym.task.task03.task0316;
26 February 2021
11
views
1
comment
0
szhxk
Level 0
Under discussion
if i want to start programming where do i start?
if i want to start programming where do i start?
25 February 2021
14
views
2
comments
0
Gellert Varga
Level 14
Szekesfehervar
Resolved
obj.hashCode() vs System.identityHashCode(obj))
What is the difference? I thoght the reference of the object will returned by both of them , but it seems not. public class Solution { public static void main(String[] args) { String s = "abcd"; String s1 = new String("abcd"); String s2 = new String("abcd"); S
24 February 2021
32
views
4
comments
0
Drzazgen
Level 7
Warsaw
Question about the task
Min and max in arrays
,
Level 7
,
Lesson 12
Under discussion
Why I can't find max and min?
On output i got min and max but sill is one requirements not meet.
26 February 2021
13
views
3
comments
0
Patrick
Level 13
Arlington
Under discussion
Can I stop the popups that appear after completing achievements? It's kind of annoying
After completing achievements I get a bunch of popups with your new points, an option to share on social media, etc. Can I prevent that?
23 October 2019
443
views
9
comments
1
Shilpa nori
Level 23
Rochester
Question about the task
Inverted words
,
Level 2
,
Lesson 9
Under discussion
Doesn't validate
I don't know what's wrong with my solution, it works for different inputs. Your help is much appreciated. thanks
26 February 2021
17
views
1
comment
0
Zach
Level 14
Fort Collins
Question about the task
HashMap of Objects
,
Level 8
,
Lesson 3
Under discussion
Don't see the problem but last task will not pass
package com.codegym.task.task08.task0806; import java.util.HashMap; import java.util.Map; /* HashMap of Objects */ public class Solution { public static void main(String[] args) throws Exception { HashMap map = new HashMap(); map.put("Sim", new Integer(5)); map.put(
25 February 2021
16
views
3
comments
0
Zach
Level 14
Fort Collins
Question about the task
Cat code won't compile
,
Level 7
,
Lesson 12
Under discussion
Number format exception error
I changed all the int variables to Strings and got it to work but that doesn't pass some of the tests. Also tried to add another readLine or change the name to no avail. Not understanding what I am supposed to do. Thanks. package com.codegym.task.task07.task0726; import java.io.BufferedReader;
25 February 2021
15
views
1
comment
0
Mina Nabil
Level 14
Sydney
Question about the task
Functionality is not enough!
,
Level 10
,
Lesson 11
Resolved
Hi, whats wrong with my code ? thanks.
Hi, whats wrong with my code ? thanks.
25 February 2021
31
views
3
comments
0
MoJo
Level 22
Cairns
Question about the task
Number algorithms
,
Level 10
,
Lesson 10
Resolved
I'm not sure if i understood the task correctly
So i thought it works for me but it doesn't let me pass. Looking at various internet sides etc. it seems that some people do not think 3-9 are so called Armstrong numbers: https://pages.mtu.edu/~shene/COURSES/cs201/NOTES/chap04/arms.html My output: 4 [1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 407]
24 February 2021
30
views
5
comments
0
Anthony Chalk
Level 26
London
Question about the task
Let's recall inheritance
,
Level 4
,
Lesson 9
Resolved
PLease help
I tried pretty much copy-pasting the A class code into the C Class (changing it to B). No idea how to do this.
25 February 2021
14
views
2
comments
0
Michał
Level 6
Under discussion
Error while signing in using a secret key. Check CodeGymPlugin.properties.
I entered the wrong key when trying to connect InteliiJ and CodeGym. Now I can't correct it. I have uninstalled / installed the plugin again. What can I do? what is a secret key in general? Password? Thank you for your help.
14 September 2020
139
views
5
comments
0
Leon Sandvoß
Level 17
Frankfurt am Main
Under discussion
Change the Task language
Hello, I'm aware that it is possible to change the interface language, but that doesn't change the language in the tasks. Is it possible to change the language in the tasks?
7 April 2020
136
views
1
comment
1
Josephine
Level 20
Normal
Question about the task
Moon Lander (Part 20/23)
,
Level 0
,
Lesson 4
Under discussion
How to refer to the rocket's x feild?.Someone please help..
How to refer to the rocket's x feild? you need to set the downFire object's x field to the rocket's x field + (width / 2),
24 February 2021
14
views
2
comments
0
Daniel Whyte
Level 9
Question about the task
Changing functionality
,
Level 7
,
Lesson 12
Under discussion
Result
Why can't it find String result? I don't think it's out of any scope.
24 February 2021
15
views
2
comments
0
Tamas Horcsak
Level 15
Leeds
Question about the task
Sorting even numbers from a file
,
Level 3
,
Lesson 11
Under discussion
could you guys check why my code doesn`t work please
public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); InputStream is = null; byte[] buffer = new byte[100]; int c; ArrayList array = new ArrayList(); try {
24 February 2021
37
views
3
comments
0
Andrei
Level 20
Question about the task
Reading and writing to a file: CodeGym
,
Level 10
,
Lesson 2
Resolved
Second requirement is not validating. Should I compare the object that is being loaded to the ones already existing in the list?
Should I compare the object that is being loaded to the ones already existing in the list? If they are the same should I replace the object in the list?
24 February 2021
25
views
4
comments
0
Mina Nabil
Level 14
Sydney
Question about the task
Method in a try-catch
,
Level 9
,
Lesson 11
Resolved
Whats wrong with my code
Hi, whats wrong with my code ? It works fine but when I try to verify it, it says it takes too long ?
24 February 2021
32
views
6
comments
0
Zach
Level 14
Fort Collins
Question about the task
We don't need repeats
,
Level 8
,
Lesson 8
Under discussion
Why an concurrent error even though I'm using an Iterator
I don't know why I am getting this error with an iterator. If I didn't have to use the other method I could probably solve this. Thanks for your help. package com.codegym.task.task08.task0817; import java.util.HashMap; import java.util.Map; import java.util.Iterator; /* We don't need repeats
24 February 2021
8
views
1
comment
0
Anthony Chalk
Level 26
London
Question about the task
Refactoring, anonymous classes
,
Level 4
,
Lesson 9
Under discussion
Completely lost
I have 12 errors in my code and I just have no idea how to do this one
24 February 2021
25
views
4
comments
0
Anatoly
Level 15
Question about the task
Reading a file
,
Level 3
,
Lesson 11
Under discussion
Who can explain?
I did the solution with the help of the new feature "download correct solution". Who can explain how it works and what it doing? I tried to run that code in Idea, but there is nothing coming out to console,despite it passing validator - i am stil not fully understand what it doing. Even debuging did
22 February 2021
30
views
3
comments
0
Vincenzo Seggio
Level 24
Question about the task
Phone number verification
,
Level 2
,
Lesson 13
Resolved
How does it work?
Hi people, i try to check the 3. Verification criteria of the task: 3) the number may contain 0-2 non-consecutive '-' characters with public class Test { public static void main(String[] args) { String s = "+3805012f3-45-67"; //s = "A"; String regex = "[-]{0,2}";
24 February 2021
18
views
2
comments
0
Tangerin
Level 27
Chongqing
Question about the task
Clocks
,
Level 6
,
Lesson 7
Under discussion
Infinite loop? Can't figure it out
CodeGym gives me this warning but in IDEA everything worked just fine. The program quits itself as soon as "Double Check" shows up. Also please remove the "Thread.stop()", that's not part of my code. Thanks!
16 July 2019
436
views
4
comments
0
Show more
1
2
3
...
311