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
PQK
Level 3
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
27
views
2
comments
2
Rich Piske
Level 29
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
17
views
2
comments
0
FelixUjo
Level 32
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
18
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
465
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
16
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
1210
views
9
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
21
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
1078
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
297
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
22
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
15
views
1
comment
0
FelixUjo
Level 32
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
67
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
21
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
484
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
20
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
2128
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
30
views
2
comments
0
Amantai
Level 43
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
115
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
1588
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
107
views
1
comment
0
Ekaterina
Level 22
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
169
views
6
comments
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
34
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
881
views
4
comments
0
ALice
Level 1
Fremont
Under discussion
alice
alice
19.02.2024
12
views
0
comments
0
Bob
Level 1
Under discussion
bob
bob
19.02.2024
11
views
0
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
515
views
7
comments
7
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
37
views
1
comment
0
Ryan
Level 4
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
343
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
4459
views
18
comments
3
FelixUjo
Level 32
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
18
views
1
comment
0
Show more
1
2
3
...
365
Please enable JavaScript to continue using this application.