Promotion
CodeGym University
Learning
Course
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
Niki Niki
Level 2
banglore
Under discussion
what is the error in this program
import java.io.*; public class main{ public static void main(String[] args) throws IOException { FileReader file =new FileReader("C:\\a.txt"); BufferedReader fileInput = new BufferedReader (file); for( int counter=0;counter<3;counter++) System.out.pr
25.02.2024
41
views
1
comment
0
FelixUjo
Level 35
Gijón
Question about the task
Black box
Java Multithreading
,
Level 4
,
Lesson 4
Under discussion
I don't know what else to try.
I don't know what else to try.
18.02.2024
90
views
6
comments
0
Jack Winning
Level 6
Nottingham
Question about the task
Second smallest number entered
Java Syntax
,
Level 4
,
Lesson 5
Under discussion
I seem to be getting the correct output but not passing all the requirements.
can any shed some light on this?
24.02.2024
47
views
1
comment
0
Jack Winning
Level 6
Nottingham
Under discussion
Why is the while argument !isExit on the correct solution?
I can understand the rest of the solution, but I don't understand why the argument for 'while' is !isExit. if boolean isExit = false, then surely !isExit = true and therefore the while loops stops straight away? Can someone clarify for me please?
22.02.2024
46
views
1
comment
0
Aditya Sinha
Level 17
Bangalore
Question about the task
Going national
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Failing in last condition
I am checking if last word is going to print ,then don't print extra space,still it is failing.Can someone check
23.01.2019
2182
views
11
comments
1
solewap
Level 3
Poland
Question about the task
Triangle
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
Why my ternary bugs out after ":" ?
System.out.println( isTriangle ? TRIANGLE_EXISTS : TRIANGLE_DOES_NOT_EXISTS );
18.02.2024
61
views
2
comments
0
Amantai
Level 46
Shymkent
Question about the task
Getting rid of labels
Java Multithreading
,
Level 7
,
Lesson 2
Resolved
For your information
The solution using the contains() method does not pass the verification of points 3 and 4. The contains() method probably uses break and continue statements.
05.10.2023
140
views
1
comment
0
Andrew
Level 29
Seattle
Question about the task
Getting rid of labels
Java Multithreading
,
Level 7
,
Lesson 2
Resolved
Brain stuck in box
I can't think of how to preserve the while loop logic without a continue. Hint please!
06.06.2019
1639
views
7
comments
0
Rajesh Yadav
Level 17
Delhi
Question about the task
Summation
Java Syntax
,
Level 4
,
Lesson 0
Under discussion
first try yourself if stuck then apply this solution
package en.codegym.task.pro.task04.task0403; import java.util.Scanner; /* Summation */ public class Solution { public static void main(String[] args) { //write your code here Scanner sc = new Scanner(System.in); int sum = 0; boolean flag = true; while(f
29.12.2023
160
views
1
comment
0
Bashka
Level 4
Russia
Question about the task
Sum of numbers not divisible by 3
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Help!)
Where is my wrong?)
18.02.2024
59
views
4
comments
0
Jo88
Level 4
Boston
Question about the task
Square of a number
Java Syntax
,
Level 1
,
Lesson 8
Under discussion
square of number
I do not understand why the system.out.println(sqr(5)); part is so early in the code? why isn't it at the end instead of being in the main method? I am asking be cause the a*a part comes after the print statement..so how is it printing before it gets the answer??? maybe I am looking at this the w
14.01.2020
922
views
4
comments
0
ALice
Level 1
Fremont
Under discussion
alice
alice
19.02.2024
33
views
0
comments
0
Bob
Level 1
Under discussion
bob
bob
19.02.2024
32
views
0
comments
0
Shriyansh Budhori
Level 6
CodeGym University in India
Question about the task
Positive and negative numbers
Java Syntax
,
Level 3
,
Lesson 10
Under discussion
What is wrong?
What is Wrong in this:?
11.02.2024
57
views
1
comment
0
Ryan
Level 5
Srinagar
Question about the task
Quadrants
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
I can't clearly understand what it wants me to do. Can anyone help me?
It asks me to do something i can't clearly understand..... Please explain what it is saying.
03.11.2022
372
views
3
comments
0
raj patil
Level 4
Question about the task
Pets need people
Java Syntax
,
Level 2
,
Lesson 5
Resolved
Level 2 lesson 5
how to do this task. i am not able to understand how to define the owner
31.07.2018
4524
views
18
comments
3
FelixUjo
Level 35
Gijón
Question about the task
Refactoring Rectangle
Java Multithreading
,
Level 4
,
Lesson 4
Resolved
I don't see the problem.
I don't see the problem.
17.02.2024
53
views
1
comment
0
Isma
Level 41
Madrid
Question about the task
Eliminating deadlock using open calls
Java Multithreading
,
Level 7
,
Lesson 6
Under discussion
Solved it but I don't really know what I've done
Someone to explain this task?
02.03.2021
632
views
3
comments
1
Alexandre Desbois
Level 10
Chamarandes-Choignes
Question about the task
HashMap of cats
Java Syntax
,
Level 8
,
Lesson 3
Resolved
NullPointerException
I don't understand why the code doesn't compile due to a NullPointerException. Thanks for your help.
26.12.2021
355
views
3
comments
1
matemate123
Level 50
Kraków
Question about the task
Wildcards
Java Collections
,
Level 5
,
Lesson 8
Under discussion
Someone could tell me about difference?
I added wildcards: Previously code looks: I understand that here occur relationship producer-consumer or something similar. Wildcard ? with super give me sureness that this List have ancestors and I can safely adding to it. Wildcard ? with extends give me reliability that this list is descendan
11.10.2023
263
views
5
comments
0
In Ho Kwon
Level 20
Question about the task
Census
Java Syntax
,
Level 14
,
Lesson 7
Resolved
Don´t compile
Hello, i don´t know why the program does not compile. Help please. Thank you.
12.02.2024
54
views
1
comment
0
Rich Piske
Level 30
United States of America
Question about the task
Introducing tags
Java Core
,
Level 9
,
Lesson 11
Resolved
Why won't code gym accept this?
Can't figure out why this won't accept. It works with every example I've thrown at it. This is why CodeGym is so frustrating some times. I've created numerous working exercises that for some unknown reason, the verifier has a problem with. But this example below does exactly what it's supposed t
12.02.2024
51
views
1
comment
0
Kussty Jitwax
Level 10
Question about the task
Logical operators
Java Syntax
,
Level 9
,
Lesson 7
New
can someone explain this question?
?
06.02.2024
71
views
0
comments
0
proudlyblvc
Level 1
Question about the task
No comments needed
Java Syntax
,
Level 1
,
Lesson 7
Under discussion
Could someone break it down in a more explanatory way?
I failed the test and I still do not understand the solution. If you come across this comment and you could break it down explanatorily, please do. Thank you
26.01.2024
162
views
3
comments
0
Bashka
Level 4
Russia
Question about the task
Comparing strings by reference
Java Syntax
,
Level 3
,
Lesson 9
Under discussion
Hay!
Thanks to everyone, I decided on my own from the 59th time.🤣👍
03.02.2024
64
views
0
comments
0
Bashka
Level 4
Russia
Under discussion
Help!)))
I can't solve this problem, it doesn't work... And so? Everything is green except the penultimate condition. I'm understand nothing... (((
26.01.2024
158
views
2
comments
0
Rebecca Zee
Level 9
New York
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
Can anyone explain the code for the fight method?
I do not understand why we implement this code for this method. I would have attached my solution, but it says that I have already solved it and that posting the complete solution is not allowed. I hope this this is fine to ask because I noticed that there is another task that already implements the
19.06.2023
146
views
1
comment
2
Khamdam
Level 50
Question about the task
Minimum of N numbers
Java Syntax
,
Level 6
,
Lesson 3
Under discussion
Could someone help me? What is wrong in this code?
why this code doesn't work?
14.05.2023
216
views
2
comments
0
Fadi Alsaidi
Level 34
Carrollton, TX
Question about the task
Arkanoid (part 19)
Java Multithreading
,
Level 3
,
Lesson 13
Under discussion
I keep failing the first 2 requirement
Hello, I keep failing the first 2 requirements. I get this mentor comment on the first requirement " The direction of the ball's movement after a collision with a brick (an element in the list of bricks) must be changed in accordance with the rule stipulated in the task conditions." I copied the c
14.12.2020
381
views
5
comments
0
Loswade
Level 2
Under discussion
test
??????
31.01.2024
68
views
0
comments
0
Show more
1
2
3
4
5
6
...
366
Please enable JavaScript to continue using this application.