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
Justin Smith
Level 41
Greenfield, USA
Question about the task
Refactoring (part 9)
Java Multithreading
,
Level 5
,
Lesson 16
Resolved
I deleted a method and need to get it back to pass validation
Note: At the time of writing, CodeGym is attaching the wrong task code (for task 2909, which has something to do with cars). I don't know why this is. Other questions on this help page are also showing code for task 2909 but the comments don't seem to reflect that, so I suspect it's a temporary glit
24.01.2022
871
views
3
comments
0
saurabh
Level 17
Bangalore
Question about the task
Display right away
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
how to do it in intellij..
I have set up the intellij... it has 3 subfolders under CodeGym Tasks...
07.10.2018
2286
views
2
comments
0
Anon#10923148
Level 9
Question about the task
Quadrants
Java Syntax
,
Level 3
,
Lesson 8
Resolved
what is this for?
is there any way to explain what kind of problem this solves?
23.01.2022
448
views
3
comments
0
Brentachii
Level 13
United States of America
Question about the task
Calculator
Java Syntax
,
Level 11
,
Lesson 4
Resolved
why won't the percentage take my answer when it works?
I've tried these several different ways that displayed properly but it won't take it and says it's wrong. any help would be appreciated, thanks.
24.01.2022
812
views
7
comments
0
Mary Khan
Level 23
Russia
Question about the task
Is anyone there?
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
Why verification of my code is failed?
Why did my code verification fail?
23.01.2022
496
views
2
comments
0
school
Level 1
Ramsgate
Question about the task
Minesweeper (Part 3/16)
Games
,
Level 0
,
Lesson 0
Under discussion
memes
mems
04.02.2021
454
views
0
comments
0
Anon#10923148
Level 9
Question about the task
Favorite board games
Java Syntax
,
Level 8
,
Lesson 2
New
BoardGame class
So it seems like in this task we are filling the collection array with 5 different strings. Why do we need code to the BoardGame class?
24.01.2022
452
views
0
comments
0
Gellert Varga
Level 23
Szekesfehervar
Resolved
Enum StandardOpenOption and StandardCopyOption
1.) Enum StandardOpenOption: What is the difference between CREATE and CREATE_NEW? 2.) import static java.nio.file.StandardCopyOption.REPLACE_EXISTING; Will it import only one static variable? (Till now, I've only ever seen the whole class imported in all cases.) Is it obligatory to use "static
21.01.2022
398
views
4
comments
0
y-meyer2
Level 28
Germany
Question about the task
Synchronized methods
Java Core
,
Level 7
,
Lesson 10
Under discussion
Why don´t you need to use volatile on "param" or "sb" ?
If you use this class with several threads then the param and sb should also be marked as volatile or am i wrong?? private double param = Math.random(); private StringBuilder sb = new StringBuilder();
23.01.2022
337
views
1
comment
0
Ajani
Level 16
Jacksonville
Question about the task
Five winners
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Just makin sure your aware the sort code needs to able to sort more than just the 20 it asks for.
Behold code that one hundred percent solves what it's asking for but doesn't sort arrays of a size different than 20.
23.01.2022
447
views
1
comment
0
LuisRC
Level 39
Gijón
Question about the task
The largest number
Java Syntax
,
Level 13
,
Lesson 2
Under discussion
Failed task
Hi there, Why my solution has failed to pass the validation?
21.01.2022
497
views
6
comments
0
fullTimeAdventurer
Level 27
Chemnitz
Question about the task
Minesweeper (Part 6/16)
Games
,
Level 0
,
Lesson 0
Resolved
It looks like you counted the number of adjacent mines for a cell that is a mine — don't do that.
Hallo liebes CodeGym Team, ich versuche das Feld ohne Miene durch folgenden Schritt zu bestimmen. // Feld ohne Miene bestimmen if (!gameField[y][x].isMine) Danach die Nachbarfelder auf Mienen prüfen und den Wert countMineNeighbors erhöhen Habt Ihr einen Hinweis für mich? Ich kom
22.01.2022
503
views
2
comments
0
Tina y
Level 6
Toronto
Question about the task
Minesweeper (Part 1/16)
Games
,
Level 0
,
Lesson 0
Under discussion
My code passed but.....
This is what I used: package com.codegym.games.minesweeper; import com.codegym.engine.cell.*; public class MinesweeperGame extends Game { } The code verified, however, upon running there was no grid, also "engine" in import and Game in class are highlighted red... What am I missing?
02.10.2020
715
views
2
comments
0
Andrei
Level 41
Question about the task
How many potential friends does a person have?
Java Collections
,
Level 6
,
Lesson 8
Under discussion
I honestly don't understand how I should interpret the 2 dimensional array.
So, it says below "Along the main diagonal, all elements are true because everybody knows himself or herself." - this I assume is the last element from each generateRelationship array element. How am I supposed to interpret the following paragraph? " The intersection of rows and columns indicates w
22.07.2021
444
views
2
comments
0
John
Level 27
Washington DC
Question about the task
Ensuring important operations aren't interrupted
Java Multithreading
,
Level 5
,
Lesson 11
Under discussion
I don't understand why the order has to be this way? Please explain.
I don't understand why the order has to be this way? Please explain.
19.02.2020
1267
views
12
comments
3
Rho366
Level 20
Guatemala City
Question about the task
Prices 2
Java Core
,
Level 8
,
Lesson 11
Under discussion
I'm out of ideas
The code works on my pc but it always fails the validaton. Any idea where could be the mistake?
12.01.2022
494
views
4
comments
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
No goofing off
Java Multithreading
,
Level 5
,
Lesson 7
Resolved
Doesn't work
Don't know how else to put it. This is what I came up with. Nothing prints out at all. I have a suspicion that the problem is that the start() method has been overridden, and since it's not actually calling start() but my custom start(threadName) method, it isn't actually turning it into a thread. I
19.01.2022
366
views
2
comments
0
Isma
Level 41
Madrid
Question about the task
Producer–consumer
Java Multithreading
,
Level 7
,
Lesson 9
Under discussion
Why synchronized get and put methods?
I can't understand why do we synchronize get and put methods if ProducersTask and ConsumerTask run methods's already have a synchronized block: Why do we synchronize those: public synchronized int get() public synchronized void put(int value) If we put them in synchronized blocks as in: whil
02.03.2021
457
views
1
comment
1
LuisRC
Level 39
Gijón
Question about the task
Feel like a university dean
Java Syntax
,
Level 11
,
Lesson 6
Under discussion
Use of ::
Hi there, What are these "::" symbols being used for? I found them in universityGroup.students.forEach(System.out::println); where sturdents comes from public class UniversityGroup { public List students; thanks
19.01.2022
363
views
3
comments
0
LuisRC
Level 39
Gijón
Question about the task
StringHelper class
Java Syntax
,
Level 11
,
Lesson 4
Under discussion
Are conditions well explained?
Hi there, I don't know, perhaps is because my english is a bit rusty but to me the way this task is worded leads to confusion. These are the conditions of the taks: ************************************************************************* StringHelper class In the StringHelper class, implement two s
18.01.2022
415
views
1
comment
0
Daniel
Level 41
Rybnik
Question about the task
Socket server and client
Java Collections
,
Level 10
,
Lesson 8
Under discussion
Why the order of creation makes any differenece ?
Could someone explain it to me ?
18.08.2021
873
views
1
comment
0
Wojciech Dąbrowski
Level 1
Warsaw
Question about the task
Build a tree (part 4)
Java Collections
,
Level 1
,
Lesson 15
Resolved
Last requirement not pass
My program work fine. Where is the problem?
23.12.2020
835
views
1
comment
2
Justin Smith
Level 41
Greenfield, USA
Question about the task
MVC (part 8)
Java Multithreading
,
Level 4
,
Lesson 14
Resolved
The private modifier on the getAllUsers method is causing a problem
We have to create a private getAllUsers method in the MainModel class (Step 6). But then we have to also declare this method in the Model interface (Step 8). How can that be? The interface methods cannot be private, and a method implemented from an interface cannot have a different access modifier.
16.01.2022
515
views
3
comments
0
dean
Level 8
Deutschland
Question about the task
The Three "Muscateers"
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
Why there are 2 classes in this code?
Hey a questions about this challenge: Why there are 2 classes in this challenge? class Solution & class Cat .. I thought there can/should be only 1 class per file or? package com.codegym.task.task05.task0504; /* The Three "Muscateers" */ public class Solution { public static void mai
23.04.2019
1753
views
11
comments
1
Elektra
Level 2
United States of America
Question about the task
Working with dates
Java Syntax
,
Level 8
,
Lesson 11
Resolved
What's wrong?
The code is working. It runs and generates the required answer. According to the example they provided they want the first day of the year to be counted, right? I tried a million different dates and my answer is correct every time. The answer is correct, the logic is correct and the math is correct.
15.01.2022
754
views
2
comments
0
Luyi
Level 31
Kosice
Question about the task
Knowledge is power!
Java Multithreading
,
Level 4
,
Lesson 9
Resolved
No able to pass condition regarding sort
Hi, I am not able to pass 3. condition any tips?
05.11.2019
1265
views
4
comments
0
Bill Wu
Level 29
Wellington
Question about the task
Knowledge is power!
Java Multithreading
,
Level 4
,
Lesson 9
Resolved
Not verified
I tested with different cases, and my code seems working fine. My sort logic is: name in alphabetical ascending order, if same, then date in descending order, if same, then profit (last-open) in descending order. I can't figure out where is the problem.
17.04.2019
2132
views
8
comments
0
Gellert Varga
Level 23
Szekesfehervar
Question about the task
Iterating through a file tree
Java Collections
,
Level 1
,
Lesson 2
Archived
?
?
13.01.2022
373
views
6
comments
0
Wyatt Wilhelmi
Level 20
United States of America
Question about the task
Positive number
Java Syntax
,
Level 3
,
Lesson 10
Resolved
I cannot find the problem with my code
I am a novice programmer so I could be making a big mistake and I just do not see it but this code works for all input scenarios that I have tried and yet the verification still marks it as wrong, any hints would be greatly appreciated.
12.01.2022
880
views
4
comments
0
Gytis Laukaitis
Level 18
Marijampole
Question about the task
Snake (Part 8/20)
Games
,
Level 0
,
Lesson 1
Resolved
Need a guidance
Seemed to fulfill all the requirements ,but still not passing. Any eagle eyes ?
02.09.2020
804
views
5
comments
1
Show more
1
...
49
50
51
52
53
...
372
Please enable JavaScript to continue using this application.