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
Edward Rickers
Level 15
Washington
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
Created two ten arrays but first and third tests still not passing
package com.codegym.task.task07.task0705; import java.io.BufferedReader; import java.io.InputStreamReader; /* One large array and two small ones */ public class Solution { public static void main(String[] args) throws Exception { Integer[] twenty = new Integer[20]; Integer[
4/15/21
627
views
4
comments
0
Anthony Chalk
Level 30
London
Question about the task
Archiver (part 17)
Java Multithreading
,
Level 7
,
Lesson 15
Resolved
Think I know what the problem is - not sure how to solve it
Relevant code is on lines 132-182. I have a feeling that the problem is that the Paths being added to the List on line 148 is the full Path and therefore the condition on line 162 is always false. Not sure how to get a "simple name", especially if it's in a sub-folder, how would I get the correct
4/15/21
846
views
7
comments
0
gh0stl0nely
Level 23
Toronto
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Under discussion
If this is Armstrong number, then I think my algorithm is correct?
Memory taken is 28mb max Time is 0s... My code provides the correct answer (based on the correct armstrong number)
4/15/21
544
views
3
comments
0
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
4/15/21
805
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
9/26/20
526
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
11/6/20
580
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?
12/7/20
640
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++) {
2/1/21
637
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.
4/13/21
880
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
4/13/21
677
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
4/13/21
728
views
3
comments
0
Josephine
Level 1
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
4/12/21
625
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
4/12/21
485
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
4/12/21
635
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
4/11/21
873
views
6
comments
0
sergio
Level 30
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.
12/17/20
590
views
1
comment
0
sergio
Level 30
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!
2/18/21
846
views
1
comment
0
sergio
Level 30
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?
2/22/21
739
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?
4/12/21
845
views
1
comment
0
Isma
Level 1
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.
4/11/21
730
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
1/7/21
829
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?
4/25/19
1340
views
2
comments
0
201811510309-hjg
Level 7
Putian
Under discussion
怎么坚持?
学不下去了怎么办??
4/10/21
643
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
4/8/21
1058
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
4/10/21
789
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
...
4/9/21
630
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
4/8/21
863
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? :(
4/8/21
666
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
4/8/21
876
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
4/8/21
740
views
2
comments
0
Show more
1
...
78
79
80
81
82
...
374
Please enable JavaScript to continue using this application.