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
Anthony Chalk
Level 30
London
Question about the task
Archiver (part 16)
Java Multithreading
,
Level 7
,
Lesson 15
Resolved
Please help
Not sure if the problem is the way I've worded my condition, or the way I'm copying the data Relevant code is lines 116-146
15.04.2021
651
views
7
comments
0
sourav bamotra
Level 20
jammu
Question about the task
Big Ben
Java Core
,
Level 6
,
Lesson 7
Under discussion
lil help will be appreciated :)
guys i figured out the solution. but i am still confused that what actually is going on in the main method. we first created the Clock object. But for what purpose Thread.sleep(4000) and Thread.sleep(1000) is? as per my understanding we are running the thread for 4 seconds and than stopping it usin
26.09.2020
406
views
1
comment
0
David Close
Level 17
London
Question about the task
The end
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
why wont this print
im sure its something stupid, but ive stared at it for a long time
06.11.2020
466
views
2
comments
0
The Chief
Level 18
Question about the task
The end
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
My program won't compile
The compiler says there's an error on line 22. I've tried multiple variations of that line but none of them would work. Also, does the rest of my code look okay?
07.12.2020
505
views
4
comments
0
Daniel Whyte
Level 17
Question about the task
Ascending numbers
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
Strange for loop
for (int x : array) { System.out.println(x); I don't understand how those for loop is working. It would normally be something more like (x =0; x <=10 x++) {
01.02.2021
513
views
3
comments
0
Anthony Chalk
Level 30
London
Question about the task
Archiver (part 15)
Java Multithreading
,
Level 7
,
Lesson 15
Under discussion
Please help
My extractAll method is on lines 81-105. I mostly copy-pasted the code for this method; several articles gave (more or less) the same code. I'm getting the mentor recommendation: CodeGym security exception. You are performing a forbidden or potentially dangerous operation.
13.04.2021
727
views
6
comments
0
Andrei
Level 41
Question about the task
Knowledge is power!
Java Multithreading
,
Level 4
,
Lesson 9
Resolved
Why can't I access the Stock objects o1 and o2 properties such as name?
I am trying to compare the 2 objects from line 49 but I can't get to their members. ex name; I see that class Stock extends hashmap and that the constructor takes as argument some variables which in turn are put in a map. Is that object a map? Am I supposed to compare the values of o1 and o2? and
13.04.2021
546
views
5
comments
0
Jurij Thmsn
Level 29
Flensburg
Question about the task
Finding data inside a file
Java Core
,
Level 8
,
Lesson 11
Resolved
"Be sure that you account for the entire id, not just part of it."
I tried this code with an without displaying the id in the output, but the validation fails at point 3 with the recommendation "Be sure that you account for the entire id, not just part of it.". The output seems to be right ... Any hints? Thanks in advance! public class Solution { public sta
13.04.2021
573
views
3
comments
0
Josephine
Level 26
Normal
Question about the task
Snake (part 15)
Java Multithreading
,
Level 2
,
Lesson 18
Under discussion
I got some readymade code. when i landed in part 15.Some of my written code also changed.Does everyone get that?Someone please help for the error
cannot find symbol KeyboardObserver keyboardObserver = new KeyboardObserver() .which is the package i need to included for observer class? Code i got public void run() { // Create a KeyboardObserver object and start it. KeyboardObserver keyboardObserver = new KeyboardObser
12.04.2021
476
views
2
comments
0
Kent Hervey
Level 19
Under discussion
need requirements re-written and even then, valid solutions don't pass
I made it past...but the problem named GCD, 1420
12.04.2021
389
views
1
comment
0
Zach
Level 22
Fort Collins
Question about the task
Consecutive threads
Java Core
,
Level 6
,
Lesson 13
Under discussion
My output seems good but not passing tests
package com.codegym.task.task16.task1622; /* Consecutive threads */ public class Solution { public volatile static int COUNT = 4; public static void main(String[] args) throws InterruptedException { for (int i = 0; i < COUNT; i++) { SleepingThread s1 = new Sleepi
12.04.2021
517
views
2
comments
0
Rica
Level 3
Manchester
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
passing "a" variable?
I see that the second method is passing variable "a". Where odes that variable come from. Do I need to establish variable a first? It seems that variable a is attributed to the amount of 7000 when I run this. Where is it getting this number from? Line 10? Any help with this would be appreciated. I
11.04.2021
723
views
6
comments
0
sergio
Level 8
Bogota
Resolved
Is it possible that the game quest can’t be done in Intellij idea
I have deleted and downloaded the project, every day from the last week and still I get the statement “import com.codegym.engine.cell.*;” red, every time I open the project, by the way I’m on mac.
17.12.2020
478
views
1
comment
0
sergio
Level 8
Bogota
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
intellij idea says that there is an error EditorConfigTokenType.SEPARATOR expected, got '.' in lines 32 and 34 but I don’t see it!
intellij idea says that there is an error EditorConfigTokenType.SEPARATOR expected, got '.' in lines 32 and 34 but I don’t see it!
18.02.2021
731
views
1
comment
0
sergio
Level 8
Bogota
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
This tasks keeps showing me this message: EditorConfigTokenType.SEPARATOR expected, got '
This tasks keeps showing me this message: EditorConfigTokenType.SEPARATOR expected, got '.' on lines 33 and 35, is it an issue with Intelijj Idea?
22.02.2021
616
views
1
comment
0
Jordi Claes
Level 17
Question about the task
Different methods for different types
Java Core
,
Level 5
,
Lesson 12
Under discussion
i am getting correct output for every type, and handled the exception of a String containing a '.'
Does anyone see a possible solution?
12.04.2021
708
views
1
comment
0
Isma
Level 41
Madrid
Question about the task
Caching
Java Multithreading
,
Level 9
,
Lesson 9
Under discussion
New behaviour?
Hey! I've solved this task by following the instructions but I can't figure out how this return computable.compute(arg); calls the Square compute method when arg is an int and calls Copyright compute method if a Copyrigth.Period object is passed as arg.
11.04.2021
584
views
1
comment
0
Liliane Top
Level 24
Amsterdam
Question about the task
Combining files
Java Core
,
Level 8
,
Lesson 11
Resolved
What is wrong?
I'm wondering if the way I'm reading file1 and adding it to the buffer is incorrect? My idea is to add the contents of file 1 to a buffer. Read and write the content of file2 to file1 Write the buffer which contains the content of file1 back to file 1. Use append = true so the content will be added
07.01.2021
676
views
10
comments
0
Shruti
Level 3
pune
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
only last case op is wrong..y so?
In the last case.. 5,5,10 the minimum is showing 10. is my logic wrong?
25.04.2019
1199
views
2
comments
0
201811510309-hjg
Level 7
Putian
Under discussion
怎么坚持?
学不下去了怎么办??
10.04.2021
562
views
3
comments
0
Oliver Heintz
Level 18
Mustang
Question about the task
ABCs
Java Core
,
Level 8
,
Lesson 11
Resolved
It gives me the right answer, but I'm failing still
I started with using Character.isLetter() and it was giving me the right answer and I was failing, and I thought the problem was that it was counting non-English letters (like maybe those weird Russian or Hebrew characters or something). So I did what everyone else is doing and changed it to check
08.04.2021
931
views
4
comments
0
Baurzhan Konurbayev
Level 40
Question about the task
Determining locking order
Java Multithreading
,
Level 7
,
Lesson 6
Under discussion
the first test case is not passing
Hi CodeGym, Stuck with test failure on the first condition. I was trying to implement a logic where I have 3 threads. Thread ONE locks o1. Then thread TWO just calls the method someMethodWithSynchronizedBlocks and locks on o1 (if the order is correct). Thread THREE will be able to lock o2 and mu
10.04.2021
620
views
0
comments
0
Szymon
Level 41
Warsaw
Question about the task
Hippodrome (part 14)
Java Multithreading
,
Level 1
,
Lesson 16
Under discussion
help pls
...
09.04.2021
522
views
2
comments
0
Jürg Meyer
Level 18
most beautiful town
Resolved
PLUGIN OUTDATED
The IntelliJ IDEA reports PLUGIN OUTDATED!!! If I choose Yes, this message comes up: The plugin must be updated to the latest version to continue working. The IntelliJ IDEA version I have is 2021.1 (Community Edition) The CodeGymIdeaPlugin was downloadet at 2021-04-08. So where can I get the lates
08.04.2021
741
views
3
comments
0
John
Level 17
Mansfield
Question about the task
Task about algorithms
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Help please
please i need help anybody? :(
08.04.2021
555
views
1
comment
0
John
Level 17
Mansfield
Question about the task
Task about algorithms
Java Syntax
,
Level 8
,
Lesson 11
Resolved
What's wrong?
my code outputs the correct condition
08.04.2021
730
views
10
comments
0
Andrei
Level 41
Question about the task
Black box
Java Multithreading
,
Level 4
,
Lesson 4
Resolved
What's wrong with my solution? It outputs the desired content..
Help ples
08.04.2021
627
views
2
comments
0
Abhijeet
Level 2
Mumbai
Question about the task
Square of a number
Java Syntax
,
Level 1
,
Lesson 8
Archived
How to call the method can anyone help in Square of 5 program
How to call the method, can anyone help in Square of 5 program
14.03.2019
2221
views
10
comments
1
Roman Grygorczuk
Level 19
Cracow
Question about the task
Rounding numbers
Java Core
,
Level 8
,
Lesson 11
Under discussion
Not sure if I can go ahead with this solution
Hey guys, Could you please take a look on lines 28-33? Do you think it's a proper solution and I can expend it accordingly(if else)? Or it's a false one and I should you different logic? Which one then? Thanks in advance, Roman
08.04.2021
420
views
1
comment
0
Zach
Level 22
Fort Collins
Question about the task
A list and some threads
Java Core
,
Level 6
,
Lesson 3
Under discussion
4th task is not passing for some reason?
public class Solution { public static volatile List list = new ArrayList<>(5); public static void main(String[] args) { //write your code here Thread spThread1 = new SpecialThread(); Thread spThread2 = new SpecialThread(); Thread spThread3 = new Specia
28.03.2021
614
views
3
comments
0
Show more
1
...
75
76
77
78
79
...
371
Please enable JavaScript to continue using this application.