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
matemate123
Level 50
Kraków
Question about the task
Archiver (part 16)
Java Multithreading
,
Level 7
,
Lesson 15
New
I'm curious, whether it possible to validate my first methods
My first method which worked (I think so :D) but not gave me green light. public void removeFiles(List pathList) throws Exception { if (!Files.isRegularFile(zipFile)) throw new NoSuchZipFileException(); Path temp = Files.createTempFile(null, null); try (ZipOut
6/25/23
352
views
0
comments
0
larsintech
Level 16
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?...
6/21/23
385
views
6
comments
0
larsintech
Level 16
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?
5/17/23
562
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?
6/21/23
605
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?
6/20/23
345
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
4/3/19
1557
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!
6/15/23
550
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?
6/17/23
369
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
10/22/22
406
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
12/3/22
858
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.
6/12/23
339
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
9/14/19
1458
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
6/9/23
395
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!
5/24/23
326
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
6/8/23
583
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 !
6/4/23
397
views
2
comments
0
Tamba Denis Valentin
Level 1
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
6/6/23
623
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.
6/4/23
364
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
6/3/23
410
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. &
5/30/23
707
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
5/30/23
517
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"
9/9/20
800
views
4
comments
0
Ana
Level 1
Under discussion
Lowest value
How to find the lowest value in primitive integer array using loop?(java)
2/14/23
366
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.
6/2/23
688
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?
5/27/23
348
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
1/29/21
1091
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.
9/10/18
3699
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
11/2/20
872
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
5/14/20
922
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."
5/30/22
507
views
2
comments
0
Show more
1
...
25
26
27
28
29
...
374
Please enable JavaScript to continue using this application.