Promotion
CodeGym University
Learning
Course
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
Andrei
Level 41
Question about the task
Thread.currentThread always returns the current thread
Java Core
,
Level 6
,
Lesson 13
Resolved
Why is one of the answers main when we are starting a new thread?
Name = Thread-0 Name = main Name = Thread-0 Name = main Name = main This is a version of the results I am getting when I run the program. I don't understand why it displays Name = main. After all, we are starting a new ThreadNamePrinter object named tnp which creates and starts a new thread ob
16.12.2020
402
views
3
comments
0
Bartosz
Level 25
Bialystok
Question about the task
Transactionality
Java Core
,
Level 7
,
Lesson 10
Under discussion
Problem with task
I cannot see the problem here, it should work just fine
23.04.2020
837
views
2
comments
1
Maxine Hammett
Level 14
San Diego
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Triangle with the specified sides cannot exist,
I could use your help here. I don't understand why the if statement isn't triggered when all sides are equal.
16.12.2020
317
views
1
comment
0
Drazen Jankovic
Level 11
München
Question about the task
Somehow average
Java Syntax
,
Level 4
,
Lesson 16
Resolved
Can someone please point me to a mistake
The last condition is not met
08.11.2020
601
views
10
comments
0
Ian De Bie
Level 28
Austin
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Resolved
Seriously, I give up on this one, what is wrong with my code here?
the 2 tests it is missing has these recommendations from mentor, that I don't really see where my code is doing this wrong. Be sure that the person is really added to the allPeople list. Be sure that the size of the allPeople list does not change when a person's data is updated.
16.10.2020
422
views
3
comments
1
Jakhongir Ruziev
Level 23
Tashkent
Question about the task
Shared list
Java Core
,
Level 7
,
Lesson 10
Resolved
I get this: "All of the Solution class's methods, except for the main method, must be synchronized." Even if I did so. What am I missing?
22.04.2020
1137
views
3
comments
2
Cristian
Level 13
Ploiesti
Question about the task
Census
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Something is wrong here
Hi, guys! Something is wrong here. I don't know what is wrong. Please, help me! Thank you in advance! package com.codegym.task.task08.task0815; import java.util.HashMap; import java.util.HashSet; import java.util.*; /* Census */ public class Solution { public static HashMap createMap() {
16.12.2020
386
views
2
comments
0
MoJo
Level 17
Cairns
Question about the task
Threads and bytes
Java Core
,
Level 8
,
Lesson 11
Resolved
I'm missing the "Then each thread must find the most frequently occurring byte in its file and add it to resultMap." part.
Hi there, I'm to lazy to test this on test data. Can some1 glance over this and tell give me a hint. It's almost Christmas after all =P. Sorry for the missing comments in the code, i didn't think i'd have to ask for help on this one.
13.12.2020
429
views
7
comments
0
Marta
Level 19
Gdansk
Question about the task
Minesweeper (Part 13/16)
Games
,
Level 0
,
Lesson 0
Under discussion
I've tried everything....
and don't know what is wrong. I need second pair of eyes :) Please help
03.12.2019
1119
views
3
comments
0
LennyMan
Level 25
Lucca
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Its working correctly but not validate
I dont know what i supposed to change for being validate
15.12.2020
427
views
4
comments
0
Satya Vath
Level 31
Vijayawada
Question about the task
Sorting bytes
Java Core
,
Level 8
,
Lesson 3
Resolved
Please Help
Thanks In Advance
17.04.2019
1233
views
3
comments
0
JESSE AITKEN
Level 8
Tampa
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Why is my code failing?
I'm not sure what is wrong?
15.12.2020
461
views
1
comment
0
Syed Akash Mazhar
Level 3
Wah Cantt
Under discussion
it's showing unavailable on intelliJ Idea. says a premium subscription is required.
Tasks are available on app but on his intelliJ Idea it shows not available and asks a Premium Subscription is required.
15.12.2020
393
views
1
comment
0
Шарох
Level 10
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
What ?
Why it doesn't run? 😑
14.12.2020
450
views
5
comments
0
Bart De Lepeleer
Level 30
Question about the task
Your own FileWriter
Java Core
,
Level 9
,
Lesson 11
Resolved
Solution does not validate - any thoughts?
Seems like all conditions are met, but solution does not validate
13.12.2020
471
views
3
comments
0
Daniel Whyte
Level 17
Question about the task
Square of a number
Java Syntax
,
Level 1
,
Lesson 8
Under discussion
Return after the method
Why is it that you only sometimes need to put return after the method in order for it to go back to the main when at other times it just calls it without this?
13.12.2020
291
views
2
comments
0
Andrei
Level 41
Question about the task
Stopwatch
Java Core
,
Level 6
,
Lesson 7
Resolved
I don't understand. If thread is supposed to sleep for 2 seconds and then stop, why is it actually running in those 2 second? :-/
I think I must not be understanding correctly the way sleep works... public class Solution { public static volatile boolean isStopped = false; public static void main(String[] args) throws InterruptedException { Runner usain = new Runner("Usain", 4); Runner carl = new Run
14.12.2020
420
views
2
comments
0
Vitalina
Level 20
Question about the task
OOP: Books
Java Core
,
Level 5
,
Lesson 2
Resolved
Everything works...I don't know what codegym wants from me..
Everything works...I don't know what codegym wants from me...I'm confused..
13.12.2020
577
views
8
comments
2
MoJo
Level 17
Cairns
Question about the task
Reversing a file
Java Core
,
Level 8
,
Lesson 5
Resolved
Where do the extra lines come from?
I did the task and it's valid, but i tested my code and got this question now: My fileinput was: Start hi, this is a test. how are you? thank you for visiting blank blank blank end. But when i checked outcome in the textfile it was: .dne knalb knalb knalb gnitisiv rof uoy knaht ?uoy era woh
09.12.2020
603
views
8
comments
0
Andrei
Level 41
Question about the task
Arranging calls to join()
Java Core
,
Level 6
,
Lesson 5
Resolved
Where are Cat class and Kitten class getting their (super)name from? Thread class?
Where are Cat class and Kitten class getting their (super)name from? Thread class?
11.12.2020
592
views
5
comments
0
Liliane Top
Level 24
Amsterdam
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Almost a year later and I still do not understand how this works
I do not understand the following: 1) I convert the date into a String and check if it contains a certain month if so I remove the entry. I do not get an error but the code doesn't remove any 2) I tried to use an iterator but somehow I can't get date.getMonth() to work. I do not understand why? 3) T
12.12.2020
599
views
5
comments
0
Cristian
Level 13
Ploiesti
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
Where is my mistake?
Hi, guys! Where is my mistake? Thank you in advance! package com.codegym.task.task08.task0812; import java.io.*; import java.util.ArrayList; /* Longest sequence */ public class Solution { public static void main(String[] args) throws IOException { //write your code here Buf
09.12.2020
605
views
8
comments
0
David Haines
Level 13
La Crosse
Question about the task
Cat code won't compile
Java Syntax
,
Level 7
,
Lesson 12
Resolved
Can someone please explain why this compiled and verified while throwing an error? And how to make it work?
the output showing is what I get when I verify, yet it verified and completed. Why? How do I get rid of the error and get the output I am expecting? Output java.lang.NullPointerException at com.codegym.task.task07.task0726.Solution.main(Solution.java:25) at sun.reflect.NativeMethodAccessorIm
25.07.2020
405
views
2
comments
0
David Haines
Level 13
La Crosse
Question about the task
Snake (Part 19/20)
Games
,
Level 0
,
Lesson 1
Resolved
What am I missing?
Could somebody please tell me what is missing? And how to fix it?
28.11.2020
379
views
2
comments
0
Ahu
Level 5
Slough
Question about the task
This age doesn't work for me…
Java Syntax
,
Level 4
,
Lesson 1
Resolved
Can be a static variable age called in a non-static method?
public static class Person { public int age = 20; public void adjustAge(int age) { this.age = age + 20; System.out.println("The age in adjustAge() is " + age); } } I am just confused, can someone kindly advise me why we should have this.age in
07.12.2020
854
views
3
comments
1
The Chief
Level 18
Question about the task
Shuffled just in time
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
How does line 26 work?
I'm confused as to how that line works. Wouldn't the list.remove delete the first string and then make it impossible to move that string to the end? Shouldn't it be " list.remove(list.add(0)); " instead?
10.12.2020
490
views
4
comments
0
Dyrits
Level 22
Question about the task
Clew
Java Core
,
Level 6
,
Lesson 13
Resolved
Thread 4 in the threads list must implement the Message interface.
What's wrong?
29.08.2020
451
views
1
comment
1
Jurij Thmsn
Level 29
Flensburg
Question about the task
Adding
Java Syntax
,
Level 4
,
Lesson 16
Resolved
for loop?
I solved this task with a while loop. The conditions also allow a for loop, but I can't figure out how to to it with a for loop. Anyone knows? Thanks in advance :)
13.12.2020
493
views
5
comments
0
Vitalina
Level 20
Question about the task
GCD
Java Core
,
Level 4
,
Lesson 8
Resolved
I don't understand what else codegym wants from me...condition 2
Hi! I don't understand what else codegym wants from me... The problem is with condition 2. I would appreciate your help!
12.12.2020
489
views
2
comments
0
Tomasz
Level 15
Warsaw
Under discussion
Tasks are not loaded into IntelliJ
Task are loaded only until level 10, from 11 onwards I cannot find any task in IntelliJ, how to sort it?
12.12.2020
369
views
1
comment
0
Show more
1
...
101
102
103
104
105
...
366
Please enable JavaScript to continue using this application.