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
Kiran Kumar Alisam
Level 7
Erie
Under discussion
duplicates
public class Solution { public static void main(String[] args) throws Exception { // Read strings from the console and declare an ArrayList here ArrayList list = new ArrayList(); BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); for(int i=0;
20.03.2024
9
views
1
comment
0
PQK
Level 4
United States of America
Question about the task
Maximum of entered numbers
Java Syntax
,
Level 4
,
Lesson 2
Resolved
Confusion About The Min Value Of Integers
In the official code given by codegym, the max variable is assigned with the min value for an integer. But I don't understand why ? int max = Integer.MIN_VALUE; //max variable being intialized as the min value of integer while (console.hasNextInt()) { int x = console.ne
16.03.2024
42
views
3
comments
2
Java coffee
Level 2
Under discussion
Help with this code
Can someone help with this and constructively criticize.. I have also included the program I wrote which is very basic but I'm trying to solidify my knowledge on if else statements and loops. I want to write a program that: - takes the user's input - Both integers must be greater than 0. - accepts
18.03.2024
25
views
3
comments
0
Mike S
Level 28
Saint Louis
Question about the task
Racer (Part 3/28)
Games
,
Level 0
,
Lesson 5
Under discussion
1,000 Exceptions, but Code Displays Fine
I felt like I had all of the steps worked out and the code made sense to me. But when I ran and verified... it blew up in my face. A lot of exceptions and red font on the console, not a single green check, and not even a coherent-looking grid. Any hints to help me advance on this one?
04.01.2023
531
views
7
comments
9
Java coffee
Level 2
Question about the task
Last digit of a number
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
Why did only 2/3 pass for the modulo task?
I wrote the following below but I got 2/3 checks passed and I'm not sure why I didn't get 3/3 checks passed. Does anyone have any insight as to why? int last digit; lastDigit = number % 10;
05.03.2024
29
views
3
comments
0
Ailana
Level 2
San Carlos
Question about the task
One cat isn't enough
Java Syntax
,
Level 2
,
Lesson 3
Under discussion
Help plz as fast as u can
it says that I didn't make 2 variables but everything else is correct.this is my code public class Solution { public static void main(String[] args) { Cat kitty = new Cat();
11.08.2020
339
views
3
comments
0
Jesú
Level 14
Madrid
Resolved
How to refresh tasks in the IntelliJ CodeGym plugin?
No new tasks appear, despite new tasks being available from advancing through the course.
07.03.2024
29
views
1
comment
0
Jesú
Level 14
Madrid
Question about the task
Changing shoes on the move
Java Syntax
,
Level 5
,
Lesson 7
Resolved
IntelliJ opens an unrelated .java when I run code.
This is annoying, and I don't know how to fix it. I am trying to run code. I even have my cursor placed in this program. However, when I decide to run the code, an unsolicited .java files comes up. Like, I didn't even ask that program to appear. How can I stop this?
07.03.2024
34
views
2
comments
0
Rich Piske
Level 30
United States of America
Question about the task
Make a word chain
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
I was really happy with my solution. HOW is it wrong?
This has been probably the most frustrating chapter yet with validation. I've tested numerous data sets with my algorithm. It tries starting with all words in the list and returns the longest result. It's worked with everything I've thrown at it, even the ones you guys have suggested. I think th
06.03.2024
31
views
4
comments
2
Rich Piske
Level 30
United States of America
Question about the task
Find a substring
Java Multithreading
,
Level 2
,
Lesson 5
Under discussion
I get the exact result that we need. Why does it fail validation?
If someone wants to explain to me how my version doesn't get the exact same version CodeGym's solution generates, I would love to hear it! Thank you!
02.03.2024
34
views
2
comments
0
PQK
Level 4
United States of America
Question about the task
Conscription
Java Syntax
,
Level 3
,
Lesson 0
Resolved
Is this code acceptable ?
I wrote this code for this question and it achieved the desired output stated in the question. But when I verify it, the code was wrong as the last requirement was not met even though the input age (22) is within the specified range. My code also shows that nothing will be displayed if the input age
03.03.2024
50
views
3
comments
2
FelixUjo
Level 33
Gijón
Resolved
The methods are in the order indicated by the task. I don't know what the error is.
The methods are in the order indicated by the task. I don't know what the error is.
02.03.2024
26
views
4
comments
0
Yomi Addey
Level 8
Baltimore
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
I'm having trouble passing tasks 3,4,and 7
Not sure if it's the way I organized my code or...? But, any help will be greatly appreciated!
19.02.2021
474
views
2
comments
0
Amalsaji
Level 2
Koovapady
Question about the task
We solemnly publish and declare these variables...
Java Syntax
,
Level 1
,
Lesson 3
Under discussion
no next level
please make this app functionable.it is not allowing to next level.
29.02.2024
26
views
0
comments
0
Niladri pradhan
Level 33
Mumbai
Question about the task
Archiver (part 8)
Java Multithreading
,
Level 7
,
Lesson 15
Resolved
last condition
The error shows "If any exception other than a NoSuchZipFileException occurs, then display "An error occurred. Please check the entered data." .please help
05.12.2019
1223
views
8
comments
0
Jack Winning
Level 6
Nottingham
Question about the task
Reverse
Java Syntax
,
Level 6
,
Lesson 3
Under discussion
Help on if statement
I've tried a few ways now, but it seems whatever I put inside the if statement, doesn't get recognised when I try to run it. it either says symbol not found or 'n may not have been initialized '. Any advice please?
27.02.2024
33
views
3
comments
0
Joseph Haynes
Level 2
United States of America
Question about the task
Initializing cats
Java Syntax
,
Level 5
,
Lesson 7
Resolved
Why do I keep failing the 1st requirement?
Why do I keep failing the 1st requirement?
22.01.2020
1093
views
9
comments
1
Justin Smith
Level 41
Greenfield, USA
Question about the task
Archiver (part 13)
Java Multithreading
,
Level 7
,
Lesson 15
Under discussion
Can you move the copyData line outside of the while loop?
I already completed the task, but after that I was looking at the code and I thought it seems really inefficient to be writing the entire ZipInputStream to a dummy copy on every iteration of the while loop. If it's a large archive this could really bog down the process. I was wondering if it would w
24.04.2022
306
views
1
comment
0
Bashka
Level 4
Russia
Question about the task
Maximum of entered numbers
Java Syntax
,
Level 4
,
Lesson 5
Under discussion
I need help!)))
I can't solve this problem....)
26.02.2024
31
views
1
comment
0
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
25
views
1
comment
0
FelixUjo
Level 33
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
73
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
28
views
1
comment
0
Andrei
Level 41
Question about the task
CountDownLatch
Java Multithreading
,
Level 7
,
Lesson 9
Resolved
How is this supposed to make sense?
await() - "Causes the current thread to wait until the latch has counted down to zero, unless the thread is interrupted. If the current count is zero then this method returns immediately. If the current count is greater than zero then the current thread becomes disabled for thread scheduling purpose
10.05.2021
492
views
10
comments
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
29
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
2139
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
36
views
2
comments
0
Amantai
Level 45
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
118
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
1601
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
127
views
1
comment
0
Ekaterina
Level 24
Tbilisi
Question about the task
QR-code reader
Java Syntax
,
Level 8
,
Lesson 2
Under discussion
Can't pass last requirement
Received: "The task failed to pass testing: Be sure that the program compares arrays using the deepEquals method of the Arrays class." But I am using Arrays.deepEquals in the 30th line of code. Please help me understand what I'm doing wrong.
25.01.2024
173
views
6
comments
0
Show more
1
2
3
...
365
Please enable JavaScript to continue using this application.