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
Ilia Kalugin
Level 25
Novara
Question about the task
Seeing dollars in your future
Java Syntax
,
Level 4
,
Lesson 10
Under discussion
Help
What's right solution if do not use String like "$$$$$$$$$"?
11/16/19
1612
views
3
comments
0
Christopher Abbott
Level 7
Coppull
Question about the task
You can't have too much of a good thing
Java Syntax
,
Level 4
,
Lesson 10
Under discussion
So it is working fine but says it is not printing string n times but is is?
package com.codegym.task.task04.task0432; import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String alpha = reader.readLine(); String iNum = reade
8/27/20
804
views
4
comments
0
Aditya
Level 5
Baleshwar
Question about the task
1 to 10
Java Syntax
,
Level 4
,
Lesson 10
Under discussion
I CodeGym AI is mad.... 🙁
just see my code it won't fulfill conditions as printing 1 to 10 and printing each value on new line
1/4/20
1145
views
3
comments
2
Gellert Varga
Level 23
Szekesfehervar
Under discussion
Sometimes English is my nightmare... - "This method blocks until input data is available"
Here's a sentence about the read() and read(array, index, pieces) methods of the InputStream class from the Oracle site that I can't explain to myself at all: "This method blocks until input data is available, end of file is detected, or an exception is thrown." I have two very seperated questions
1/19/21
748
views
2
comments
0
Liliane Top
Level 24
Amsterdam
Question about the task
Reading and writing static fields to a file
Java Core
,
Level 10
,
Lesson 2
Resolved
What is happening here?
I'm confused about the second object that is created. The loadedObject is the same as the classWithStatic as we read from the file. But what is happening to the new values? It seems that it is completely ignored. Now I tried to write to objects to the file by trying loadedObject.save(outputStream) b
1/16/21
720
views
1
comment
0
Goran
Level 41
Belgrade
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Under discussion
Correct result but not passing
Every time i try to pass it says too long, like I have infinity loop. Does anyone see here any error ?
10/20/20
496
views
0
comments
0
David
Level 6
Paris
Question about the task
Overriding serialization in a thread
Java Core
,
Level 10
,
Lesson 10
Under discussion
Need help
Hello Someone can help me
10/21/20
714
views
0
comments
0
Davedabull
Level 22
New York City
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Under discussion
Am I not returning an array?
What's wrong? Missing the last task condition, very confused.
10/25/20
551
views
0
comments
0
Goran
Level 41
Belgrade
Question about the task
What's in the folder?
Java Collections
,
Level 1
,
Lesson 4
Under discussion
Correct output but I am getting this error : "CodeGym security exception. You are performing a forbidden or potentially dangerous operation."
I tested on my folder all is correct but I get error.
10/31/20
686
views
0
comments
0
Daniel Whyte
Level 17
Question about the task
Dog registration
Java Syntax
,
Level 5
,
Lesson 9
Under discussion
public Dog
Why are the do the methods begin with public Dog rather than public void?
1/18/21
771
views
1
comment
0
slyyx
Level 15
New York City
Question about the task
Countdown at the races
Java Core
,
Level 6
,
Lesson 10
Under discussion
What is the main method supposed to do?
I can tell I'm misunderstanding how the program is supposed to work, since I am only printing out "Interrupted!" instead of actually calling the interrupt() method, but I don't understand what the main method should do and what the purpose is of the main method calling Thread.sleep(3500)
1/19/21
509
views
1
comment
0
Liliane Top
Level 24
Amsterdam
Question about the task
Spaces
Java Core
,
Level 8
,
Lesson 11
Resolved
What is wrong with my code?
No idea why I fail the test. I saw the solution but it doesn't make any sense. 1) they do not close the stream 2) And I don't see what is wrong with my code as the only difference is that they add if(total != 0;
1/3/21
606
views
9
comments
0
Rich
Level 23
San Diego
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Resolved
hint pls
it's saying the -u argument section may be changing list size and -i argument section doesn't print to screen.
1/19/21
697
views
2
comments
0
Chandan Thapa
Level 22
Dubai
Question about the task
Introducing tags
Java Core
,
Level 9
,
Lesson 11
Resolved
Got the correct output but it does not verify.
I have worked on this for hours and this is probably the best i could do .. please help.
1/16/21
810
views
13
comments
0
Jasey
Level 13
Chester
Question about the task
The isomorphs are coming
Java Core
,
Level 2
,
Lesson 12
Under discussion
Appreciate a another set of eyes. Not sure why it is failing.
I often would rather stare at the code until I see the issue, but this one it taking me too long. It is complaining that: The Solution class must have two methods. ( Main and getMinimumAndIndex) - Still an issue - It is complaining: The getMinimumAndIndex() method must return the minimum of the arr
11/10/20
479
views
0
comments
0
AlfredW
Level 23
Denver
Question about the task
Reading and writing to a file: CodeGym
Java Core
,
Level 10
,
Lesson 2
Under discussion
Hmm, Missing something here.
It seems like it is a fairly straight forward task, but there is something I am missing. It keeps telling me that: "Check why the users list is empty after the file has been read." I figure it is some super obvious thing that I am simply not seeing.
11/5/20
522
views
1
comment
0
sourav bamotra
Level 20
jammu
Question about the task
Tracking changes
Java Core
,
Level 9
,
Lesson 11
Under discussion
hi there! I've got the idea what to do but little confuse
if the position of lines of file1 are different as that of the file2, then that line will be considered as removed? for example : //list1.get(0).equals(list2.get(4)) the element in this case will be encountered with what tag ? Same, Removed,Added?
10/24/20
515
views
0
comments
0
Ezra Dean
Level 16
New York City
Question about the task
Chicken factory
Java Core
,
Level 4
,
Lesson 6
Under discussion
pay close attention to the output fomart
"North America" not "NorthAmerica"
10/21/20
591
views
0
comments
0
Dinesh
Level 7
Delhi
Under discussion
what is wrong in this code
public class CloseToTen{ public static void main(String[]args){ displayClosestToTen(8,12); displayClosestToTen(7,14); } public static void displayClosestToTen(int a, int b){ //Write you code here int x = a-10; int y = b-10; x=Math.abs(x); y=Math.abs(y); if (x
1/18/21
444
views
0
comments
0
Blizniak
Level 4
Cieszyn
Under discussion
Pomocy, nie wiem co jest nie tak, pierwsza rzecz ktorej nie potrafie zrozumiec
package pl.codegym.task.task02.task0216; /* Najmniejsza z trzech liczb */ public class Solution { public static int min(int a, int b, int c) { if (a<=b) && (a<=c); return a; else (b<=c) && (b<=a); return b;
1/11/21
546
views
0
comments
0
fiskaren
Level 13
Malmö
Question about the task
Minesweeper (Part 1/16)
Games
,
Level 0
,
Lesson 0
Under discussion
I want to run the application so that the field is visible but I do not know how! I can still complete tasks but I want to see the result and progression of the game as I complete each task. Please Help!
I tried to run it: But then this happens: Thanks for taking your time and looking into this!
12/21/20
670
views
0
comments
0
lijin
Level 20
Beihai
Under discussion
how to do
@Override public void onTurn(int turnDelay){ snake.move(apple); if(apple.isAlive == false){ score += 5; setScore(score); turnDelay -= 10; setTurnTimer(turnDelay); createNewApple(); } if(!snake.isAlive){
10/15/20
565
views
0
comments
0
Carlitos Martinez
Level 4
Villa Mercedes
Under discussion
¿Porque los ejecicios del nivel 3 no se pueden resolver?
Hola, vengo teniendo problemas con los ejercicios del nivel 3, no puedo hacerlos. No hay forma de verificar ni cargar los datos. Espero su respuestas, desde ya muchas grancias.
8/31/20
459
views
0
comments
0
Bodea Tudor Andrei
Level 25
Cluj-Napoca
Under discussion
Can we publish our work on github?
Hi! I was wondering if we can share the GameProjects on github so we can put it in our CV.
9/3/20
630
views
0
comments
0
Liliane Top
Level 24
Amsterdam
Question about the task
Overriding serialization in a thread
Java Core
,
Level 10
,
Lesson 10
Under discussion
Couple of questions for a better understanding.
package com.codegym.task.task20.task2022; import java.io.*; import java.util.Objects; /* Overriding serialization in a thread */ public class Solution implements Serializable, AutoCloseable { //Write the verification code yourself in the main method: //1) create an instance of the Solu
1/18/21
598
views
4
comments
0
Lawson
Level 29
Lagos
Question about the task
Equals and HashCode
Java Multithreading
,
Level 1
,
Lesson 5
Under discussion
Pls help
I can't get past the second and the last requirements
9/9/20
583
views
0
comments
0
Nsisong Eyo
Level 2
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
Got if first hand: Let me break it down
Public class Solution { public static void main( (String) [] args ); //This was the main method other wise know as function declared. print("Java is easy to learn"); //This was the command which created an object print, though it not a variable so can not be output in system.out.println. so a new
9/12/20
690
views
0
comments
0
AlfredW
Level 23
Denver
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Under discussion
Works Perfectly but won't verify
I don't understand why this won't verify.
9/12/20
576
views
1
comment
0
myqms
Level 22
Landshut
Question about the task
Space Invaders (Part 26/34)
Games
,
Level 0
,
Lesson 6
Under discussion
Why does the validation not satisfy? I can't find my error.
"In the SpaceInvadersGame class's removeDeadBullets() method, you need to remove all projectiles from the playerBullets list if the projectile is "dead" OR the sum of the y coordinate and the projectile's height field is less than zero." private void removeDeadBullets() { ListIterator i
9/13/20
553
views
0
comments
0
Russell
Level 2
Galmpton, Brixham
Question about the task
Minesweeper (Part 16/16)
Games
,
Level 0
,
Lesson 0
Under discussion
Not able to publish
hey guys, was really hoping to publish this so that my friends could play it, but intellij says there is an error when publishing. not sure what might cause this. the game is perfectly functional!
9/13/20
455
views
0
comments
0
Show more
1
...
94
95
96
97
98
...
374
Please enable JavaScript to continue using this application.