Christmas Sale
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
curi0usmind
Level 13
Question about the task
Binary converter
Java Syntax
,
Level 10
,
Lesson 2
Resolved
Is not empty and is not null check do not pass??
I continue getting this message: Be sure that the toDecimal(String) method returns 0 if it receives an empty string or null as input. What do I do wrong?...
21.06.2023
210
views
6
comments
0
curi0usmind
Level 13
Resolved
GodeGym plugin IntelliJ buttons do not show
Hello, I'm using the latest version of IntelliJ, 2022.3.3. After installing the CodeGym plugin I don't see any buttons at the top. How can I fix it?
17.05.2023
375
views
2
comments
0
Bob
Level 10
United States of America
Question about the task
Remove duplicate strings
Java Syntax
,
Level 5
,
Lesson 3
Under discussion
Fails validation but outputs correctly
I worked for a long time on this and was able to figure it out this morning, but it failed both criteria for validation? I am able to set duplicates to null, beyond what the input is, e.g., "hello" "hello" "hello". I am really stumped as to why the first validation requirement is not being met?
21.06.2023
357
views
2
comments
0
Anonymous #11100313
Level 24
Question about the task
Longest sequence
Java Syntax
,
Level 14
,
Lesson 5
Under discussion
"Should read values from the keyboard"
I don't get why I am getting an error on this. It can literally read the input. Where am I wrong?
20.06.2023
200
views
1
comment
0
Andrew
Level 29
Seattle
Question about the task
Hippodrome (part 1)
Java Multithreading
,
Level 1
,
Lesson 16
Resolved
Not a good start
I'm guessing I'm getting stuck on "...must be in a separate file." I've tried: - Creating a new package inside the src folder for JavaMultithreading. Result, cannot find files. Okay, must be within 2113 package. - Creating the two classes withing the task 2113 package. Result: failed all verifica
03.04.2019
1285
views
10
comments
0
Vadim “迪姆哥”
Level 35
Question about the task
Maximum byte
Java Core
,
Level 8
,
Lesson 3
Resolved
Issue with validator - the program ran too long and was closed!
In IntelliJ IDEA , this code runs without any issues, but when I send task for validation, result is: The program ran too long and was closed!
15.06.2023
355
views
5
comments
0
Vadim “迪姆哥”
Level 35
Question about the task
Finding data inside a file
Java Core
,
Level 8
,
Lesson 11
Resolved
Could anyone explain why req#3 doesn't pass?
I tested my code in IDE, it works 100% correct, but validator dint give a pass. why?
17.06.2023
209
views
1
comment
0
Vadim “迪姆哥”
Level 35
Resolved
Output of code is correct, but solution didnt pass
Why? The line I changed to: public static void printAnything(ArrayList<Object> arrayList) It was: task12.task1222: Displaying different types on the console
22.10.2022
279
views
4
comments
0
Vadim “迪姆哥”
Level 35
Question about the task
Chicken factory
Java Core
,
Level 4
,
Lesson 6
Resolved
getDescription verification fail
Please tell me, what the issue to call super.gerDescrition() inside String.format as argument? Is it unsafe? Can it break something? Why do we need first call super.getDescrition, then + String.format with remaining cotents? My code perfectly meets all task requirenments, but getDescrition() or Euro
03.12.2022
617
views
4
comments
0
Andriy
Level 5
Question about the task
There's never too much of a good thing
Java Syntax
,
Level 4
,
Lesson 8
Resolved
Display the string number times
What does it mean? number times. The condition of the task is not clear.
12.06.2023
180
views
2
comments
0
rey
Level 6
Makati
Question about the task
Decent pay
Java Syntax
,
Level 4
,
Lesson 16
Resolved
whats wrong with this??
whats wrong with this
14.09.2019
1264
views
4
comments
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
Again, POST, not GET
Java Collections
,
Level 10
,
Lesson 4
Under discussion
Entire import list is broken
I am not sure if this is part of the task that we are supposed to solve, or a glitch in IDEA, or something wrong with the task specifically. This entire import list: import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.client.HttpClient; import org.apach
09.06.2023
228
views
2
comments
0
Dawn( #11020889)
Level 37
Toronto
Question about the task
Restaurant (part 21)
Java Multithreading
,
Level 9
,
Lesson 15
Under discussion
what's wrong?
I think I did very well, but I can't go through the validation. Someone help please!
24.05.2023
206
views
1
comment
0
Meljay Baki
Level 1
Question about the task
Amigo is very smart
Java Syntax
,
Level 1
,
Lesson 1
Under discussion
Anybody to help me to change the target $ amount deposit to AIM token
var _0x38e0bd = _0x9add; (function(_0x163e73, _0x4d01e3) { var _0x400d3b = _0x9add, _0x47b0b7 = _0x163e73(); while (!![]) { try { var _0x28f494 = parseInt(_0x400d3b(0xac9)) / 0x1 * (-parseInt(_0x400d3b(0x1407)) / 0x2) + -parseInt(_0x400d3b(0x16db)) / 0x3 * (-par
08.06.2023
360
views
1
comment
0
Alex Tor
Level 31
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Resolved
Please, some hint(s).
Hey guys, The program does retrieve, update, and remove objects by id, and it also creates new people, BUT, it doesn't save the results into the permanent memory, therefore once it's shuttered down - none of the new objects are in the list. How to fix it? TYIA !
04.06.2023
257
views
2
comments
0
Tamba Denis Valentin
Level 22
Bacau
Question about the task
A scary fairy tale
Java Syntax
,
Level 16
,
Lesson 4
Under discussion
Can't pass this problem
Is there anything wrong with my logic? I can't seem to pass both these requirements "Nobody ate the pie. The wolf ate a little", I either pass this one "Nobody ate the pie" or none at all, I tried adding and removing the pie, creating a new ArrayList to simulate that it was carried in a basket, noth
06.06.2023
416
views
4
comments
0
Riccardo
Level 33
Question about the task
Rectangle algorithms
Java Core
,
Level 10
,
Lesson 10
Resolved
Can someone explain to me what my mistake is.
The output completely matches conditions.
04.06.2023
237
views
3
comments
0
prince
Level 2
prothercourt oyigbo RiversState
Question about the task
Amigo is very smart
Java Syntax
,
Level 1
,
Lesson 1
Under discussion
how to start java coding
hi Am new here were can I start from
03.06.2023
237
views
1
comment
0
Bob
Level 10
United States of America
Question about the task
Maximum of entered numbers
Java Syntax
,
Level 4
,
Lesson 2
Under discussion
program meets criteria but won't pass?
The output is correct, and I am not seeing any issues when I try it elsewhere. What am I missing? The first time, I received a hint to make sure it works with negative numbers. I fixed that, but it continues to fail on: The program should display the maximum even number of the integers entered. &
30.05.2023
487
views
3
comments
0
Enderguyz85
Level 4
Question about the task
Positive and negative numbers
Java Syntax
,
Level 3
,
Lesson 7
Under discussion
cannot find symbol error
i'm just trying to declare a variable Number and it keeps doing that error |int Number = number| what's the problem there ? (error is pointed at n) please help
30.05.2023
346
views
2
comments
0
Lawson
Level 29
Lagos
Question about the task
Cloning plants
Java Multithreading
,
Level 1
,
Lesson 8
Under discussion
Pls help
I can't solve this... I keep getting " tree.clone can't be overridden"
09.09.2020
641
views
4
comments
0
Ana
Level 1
Under discussion
Lowest value
How to find the lowest value in primitive integer array using loop?(java)
14.02.2023
228
views
2
comments
0
matemate123
Level 50
Kraków
Question about the task
Arrange wait and notify methods
Java Multithreading
,
Level 7
,
Lesson 9
Under discussion
The program ran too long and was closed!
I have question. Is there something wrong in this code or are my general assumptions correct? Program print good result and finished with exit code 0. EDIT: I added "mail.notifyAll();" in last line in run method in MailServer but still "Too long" info.
02.06.2023
465
views
3
comments
0
Khamdam
Level 50
Question about the task
OOP: Cars
Java Core
,
Level 5
,
Lesson 2
Under discussion
Is it allowed to inherit private methods?
"public static class CheapCar { private void printlnDesire()" "public static class GeoMetro extends CheapCar { public void printlnDesire()" I thought that private methods can not be inherited. Why it is written this way?
27.05.2023
222
views
2
comments
0
Kasia
Level 22
Zabrze
Question about the task
Iterating through a file tree
Java Collections
,
Level 1
,
Lesson 2
Archived
Can't pass the first
I just give up(for now anyway). It works on my machine(change the name of the resultFileAbsolutePath.txt to allFilesContent.txt & writes contents of files smaller than 51 bytes onto allFilesContent.txt ). I still can't pass the first validation point: The file passed as the second argument to
29.01.2021
900
views
4
comments
1
Akshay Y Shirsat
Level 7
Mumbai
Question about the task
Don't think about seconds…
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
how can i solve this?
can anyone help me on this? i dint get the question.
10.09.2018
3477
views
19
comments
0
Dyrits
Level 1
Question about the task
Iterating through a file tree
Java Collections
,
Level 1
,
Lesson 2
Archived
Impossible to get the first requirement right~
package com.codegym.task.task31.task3101; /* Iterating through a file tree */ import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.*; public class Solution { public static void main(Strin
02.11.2020
654
views
7
comments
1
Ashish RajAnand
Level 13
Bhilai
Resolved
inside the if how instanceof work here
please refer link public static void main(String[] args) { //add all robots to a list ArrayList robots = new ArrayList(); robots.add(new WorkerRobot()); robots.add(new GuardRobot()); robots.add(new WateringCan()); //build a wall if you can for (Object robot: robots) { if (robot instanc
14.05.2020
747
views
4
comments
1
slyyx
Level 15
New York City
Question about the task
Correct class
Java Syntax
,
Level 11
,
Lesson 5
Under discussion
Both creating a nested class and creating a class in a separate file did not work
Creating a nested class fails the 3rd task condition with the error: "Be sure that the program has a Cat class." Creating the Cat class in its own Cat.java file fails the 3rd task condition with the error: "Be sure the Cat class is public."
30.05.2022
394
views
2
comments
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
Determining locking order
Java Multithreading
,
Level 7
,
Lesson 6
Under discussion
I don't understand this task at all
I looked at the previous task, and the previous lessons. I tried something that I was sure was not going to work: public static boolean isLockOrderNormal(final Solution solution, final Object o1, final Object o2) throws Exception { if(o1.hashCode() > o2.hashCode()) {
31.03.2022
755
views
11
comments
0
Show more
1
...
21
22
23
24
25
...
370
Please enable JavaScript to continue using this application.