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
Sandeep
Level 6
Greensboro
Question about the task
Chess board
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
Able to print chessboard in both odd and even cases
Able to print chessboard in both odd and even cases, but its throwing The program needs to display the elements of the array on the screen error
23.07.2024
26
views
5
comments
0
Evgeniia Shabaeva
Level 25
Budapest
Question about the task
Request parser
Java Core
,
Level 5
,
Lesson 12
Under discussion
The program displays what it needs but not validated. What am I doing wrong?
It's probably time to post a question about this task. I wrote two variants of this code. The first one creates two lists, one with keys and one with values. You can see that version in comments. The second variant uses a HashMap instead (which, obviously, has keys and values). That is the main co
23.07.2024
20
views
2
comments
0
Evgeniia Shabaeva
Level 25
Budapest
Question about the task
File in a static block
Java Core
,
Level 5
,
Lesson 12
Resolved
How to make it really read from a real file
I've solved this task, or at least it has been validated by CodeGym as correct. I still have a question, though. The code is supposed to read lines from a real file, the path to which we need to assign as a value to the public static String field called FILE_NAME (of the file called Statics). How
18.07.2024
35
views
9
comments
0
Evgeniia Shabaeva
Level 25
Budapest
Question about the task
Binary to hexadecimal converter
Java Syntax
,
Level 10
,
Lesson 2
Resolved
One of the methods in this code is still not accepted by the validator. What am I doing wrong?
I kind of put aside this task some time ago and moved on. But today I decided to catch up with some unresolved tasks and got back to this one. The code seems to work fine in general, but there is still something wrong with the toBinary(String value) method, even though it produces and outputs the ex
19.07.2024
32
views
3
comments
0
GOVARDHANA GOWDA
Level 2
Durg
Question about the task
Kind words for the teacher
Java Syntax
,
Level 1
,
Lesson 4
Under discussion
finding enter option
I write a code but how can I find a enter button
19.07.2024
12
views
1
comment
0
Evgeniia Shabaeva
Level 25
Budapest
Question about the task
Binary to hexadecimal converter
Java Syntax
,
Level 10
,
Lesson 2
Resolved
I wonder if I could've made it shorter
I've just written the longest code in my short professional life:) It produces the expected output but I'm wondering if I could make it any simpler. The second issue is that after verification the website says, "Be sure that the toHex(String) method returns an empty string if it receives an empty s
18.04.2024
113
views
9
comments
0
Evgeniia Shabaeva
Level 25
Budapest
Question about the task
Face control
Java Syntax
,
Level 16
,
Lesson 2
Resolved
Why not this way?
I've read the correct solution and see that we are expected to display the data from the file our program reads in the form of characters, not strings. I just don't understand why it cannot be done in the string form, as the requirement is technically to "display everything except periods, commas, a
31.05.2024
50
views
4
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
779
views
10
comments
20
Mm m
Level 1
Question about the task
From student to skilled slave
Java Core
,
Level 1
,
Lesson 11
Under discussion
digoprime number
WAP to input a four digit number and check whether it is a digorime number or not ( a number is said to be digoPrime when its only contain Prime digit)
16.07.2024
11
views
0
comments
0
Bob
Level 10
United States of America
Question about the task
Two iPhones
Java Syntax
,
Level 10
,
Lesson 4
Under discussion
What am I missing?
When I run the program, it says true. if I change one of the parameters for one of the Iphones, I get false, yet I am not meeting the second criteria?
14.07.2024
32
views
5
comments
0
Naman Gamer
Level 1
Bangalore
Under discussion
css
vss
12.07.2024
12
views
0
comments
0
Evgeniia Shabaeva
Level 25
Budapest
Question about the task
Reading a file
Java Core
,
Level 3
,
Lesson 11
Resolved
Why close the BufferedReader if I'm not using it?
I wrote this code without using the BufferedReader (as I actually wasn't told to do so). But, according to the validator, I still have to close it.... So, should I use it instead of the Scanner or the InputStream? I'm slightly puzzled;)
02.07.2024
71
views
7
comments
0
X SS
Level 16
Question about the task
Binary converter
Java Syntax
,
Level 10
,
Lesson 2
Under discussion
Codegym's answer
How come we can assign String binaryNumber an integer?
03.07.2024
28
views
2
comments
0
Pratusha Mandal
Level 1
Under discussion
how to code
how can I code in this app by clicking what?
01.07.2024
22
views
1
comment
0
X SS
Level 16
Question about the task
Octal converter
Java Syntax
,
Level 10
,
Lesson 2
Under discussion
End of file while parsing
error:reached end of file while parsing. How can i solve this?
02.07.2024
23
views
1
comment
0
Anonymous #11492773
Level 27
Germany
Question about the task
Shall we play?
Java Core
,
Level 6
,
Lesson 13
Resolved
task is not compiled on the server
Hey guys. i try to validate my solution but for some reason it keeps telling me task is not compiled on the server. any tips on what i am doing wrong is appreciated.
25.06.2024
32
views
2
comments
0
Benjamin Joseph Lentine
Level 8
Songwon
Question about the task
Price of apples
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
How does += get the right answer?
So, I get what it does in functionality, but I can't seem to understand how it gets the right answer here. So here is how I'm understanding this code: applePrice = 0. apple.addprice increases applePrice to 50. apple2.addPrice increases it by 100 to 150. It seems to me like the math should already
23.06.2024
61
views
4
comments
1
Anonymous #11475584
Level 11
Hayward
Question about the task
Snake (Part 19/20)
Games
,
Level 0
,
Lesson 1
Under discussion
help
why is this part of my code causing problems and saying illegal start of expression for public void move (Apple apple) ? im really lost (im referring to the commented part in the Snake class inside the setDirection method)
23.06.2024
24
views
1
comment
0
Ahmed
Level 23
Amsterdam
Question about the task
Array of string lists
Java Syntax
,
Level 10
,
Lesson 11
Resolved
It should work?
Anyone can help here? I think this code should work? Or i'm missing something?
21.05.2019
2564
views
4
comments
12
lobotomic
Level 4
Prague
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
"The task does not compile on the server"
Hi guys, I tried some List approach for this task and when validating I get an error "The task does not compile on the server". Is there some issue in Intelijj settings or the validator just does not except such solution and is not ready for that? So with if/else solution I gonna be ok to proceed to
15.06.2024
46
views
2
comments
0
X SS
Level 16
Question about the task
Triangular array
Java Syntax
,
Level 6
,
Lesson 6
Under discussion
IndexOutOfBounds but why
What's difference between my solution and codegym's. Mine gives error?
20.06.2024
38
views
1
comment
0
Evgeniia Shabaeva
Level 25
Budapest
Question about the task
It's all relative
Java Syntax
,
Level 16
,
Lesson 5
Resolved
Why not like this?
I've got a problem similar to the one already posted here. The validator does not believe I'm using the relativize() method of the Path class. I'm wondering why. I also have another question, not related to the validation process. The tasks "hints" that if I can't find the relative path between pat
10.06.2024
49
views
3
comments
0
Solanki Dhruv
Level 18
Surat
Question about the task
Debug everything under the sun
Java Core
,
Level 6
,
Lesson 13
Resolved
don't understand where is the problem??
?
16.12.2018
2548
views
17
comments
0
Anonymous #11423390
Level 5
Mountlake Terrace
Question about the task
There's never too much of a good thing
Java Syntax
,
Level 4
,
Lesson 5
Under discussion
I don't understand the last line of the answer
The last line "while (number >0 && number < 4); confuses me. Why it's not "while (number > 0 && number < 5);"? Can someone help to explain? Thank you!
30.11.2023
210
views
1
comment
0
Nicole Gottschall
Level 23
Germany
Question about the task
Chess board
Java Syntax
,
Level 6
,
Lesson 5
Resolved
Why doesn't my solution pass the verification even though it works as it should?
I ran the program and it outputs the same as the example in the task condition. However, it doesn't pass the verification. More precisely it is wrong for number 3. and 4. Am I missing something else? Looking forward to your help!
26.01.2022
327
views
2
comments
0
Dustin Lerch
Level 9
United States of America
Question about the task
Cutting down the middle
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
What am I doing wrong
I tried so many different things, like replacing the all the public static chars with the '-'s; Ive tried the chars [1] = new char [] {'m', '-',.......} for both elements 1 &2; I cant figure out how to loop the new elements into it...i'm in a rough patch with this one.....
14.12.2022
266
views
2
comments
0
Andrea
Level 20
Question about the task
Whales and cows
Java Core
,
Level 2
,
Lesson 2
Resolved
Why is this not correct?
I specifically met the 5th requirement: I overridden the getName method to say "I am not a cow, I am whale" and that what the output says: public static class Whale extends Cow { public String getName() { return "I'm not a cow. I'm a whale";} } Why is the validator not accepting this?
22.08.2019
1092
views
6
comments
1
Nic
Level 14
London
Question about the task
Whales and cows
Java Core
,
Level 2
,
Lesson 2
Resolved
Unable to satisfy the fifth requirement, but the solution displays fine
Could you please help me see where I've gone wrong? Thanks.
16.07.2019
992
views
3
comments
0
Brentachii
Level 13
United States of America
Question about the task
Price of apples
Java Syntax
,
Level 3
,
Lesson 4
Resolved
it appears to work so why is it wrong?
Hi there, I added the sout on line 11 so that when I run it I can see the results of the increases by the passed-in value I would appreciate it if anyone could tell me why is this wrong? thanks
22.11.2021
677
views
6
comments
1
Jesufemi Adejare
Level 20
Question about the task
Stack trace revisited
Java Syntax
,
Level 15
,
Lesson 2
Under discussion
Stack Trace. what am I missing?
what am i missing here. array length -1 is the top element in the stack. the method that called the top stack element should be arraylength -2 , so why is this not validating ? in the code gym solution they used [2] for everything. That doesnt make much sense to me. if there are like 5 method tha
04.06.2024
47
views
5
comments
0
Show more
1
2
3
...
368
Please enable JavaScript to continue using this application.