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
All quests
All levels
Any status
Questions about tasks
Hot
Mera Content
Level 2
Anand
Under discussion
java book
hi guys can any one tell me which book will be the best for learning Java please .
28.06.2021
391
views
2
comments
0
Nobody
Level 37
Seattle
Question about the task
shutdownNow!
Java Multithreading
,
Level 8
,
Lesson 8
Under discussion
I do not have any clue for this task
Can someone help me out
07.06.2019
1751
views
2
comments
2
John
Level 17
Mansfield
Question about the task
Horse racing
Java Core
,
Level 6
,
Lesson 5
Under discussion
what's wrong here?
I think my output is correct
26.06.2021
733
views
3
comments
0
Usman
Level 8
Glasgow
Question about the task
Number of days in the year
Java Syntax
,
Level 4
,
Lesson 4
Resolved
I get the right answer but still fail
See code below. I've tried running it with a variety of years, both leap and non leap; ones that are divisable with 400, 100 and 4. I get the right answer but the last requirement is never met. Thanks in advance.
24.06.2021
993
views
4
comments
0
John
Level 17
Mansfield
Question about the task
Request parser
Java Core
,
Level 5
,
Lesson 12
Under discussion
Should i use Regex or URL?
which one is appropriate to use for this task? Regex or URL class?
23.06.2021
870
views
10
comments
0
brus5
Level 41
Dąbrowa Górnicza
Question about the task
Restaurant (part 18)
Java Multithreading
,
Level 9
,
Lesson 15
Resolved
What am I missing? I got stuck.
recommendation from your mentor A TestOrder object must be created in the createTestOrder method. Any help would be appreciated.
03.09.2020
807
views
11
comments
0
Andrei
Level 41
Question about the task
RMI (part 2)
Java Collections
,
Level 2
,
Lesson 10
Resolved
Why do I have port 0 in the exportObject() method when the port that needs to be used is 2099?
I have the server thread below, and for identification I am using port 2099. When I am adding the objects to the stub, why do I have to add port 0 as the second argument in the UnicastRemoteObject.exportObject() method? public static Thread SERVER_THREAD = new Thread(new Runnable() { @O
23.06.2021
545
views
2
comments
0
Hưởng Nguyễn Công
Level 27
Hanoi
Question about the task
Generics for creating a proxy object
Java Collections
,
Level 2
,
Lesson 8
Resolved
I cann't resolve this task, i have tried so hard, :((
I have tried so many times with so many diffirent ways, but this task still cann't verified. please help, :(.
03.12.2019
1266
views
2
comments
1
Rica
Level 3
Manchester
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Satisfy all but the last requirement..what am I missing?
Any help is appreciated! How do I go about "using min a method"? Shall I just include int c and d in the first method and let the second method determine a and b?
16.04.2021
928
views
8
comments
0
Dax
Level 4
Singapore
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
Why is s = the main method
According to the code, the main method is declared. But String s is not = to the main method. Why is it when its declared, in the next line, all you have to do is println(s). Shouldnt the variable s be declared as those 3 lines and then you do a println(s) ?
21.01.2021
647
views
3
comments
0
Dan Lai
Level 1
Singapore
Question about the task
2048 (Part 3/18)
Games
,
Level 0
,
Lesson 2
Under discussion
Whats wrong with my code ?
Please explain to me whats wrong with my program ?
23.08.2019
1588
views
4
comments
0
Libby
Level 20
Question about the task
Adapting multiple interfaces
Java Core
,
Level 9
,
Lesson 3
Resolved
Any hints please?
Any hints please?
22.06.2021
498
views
5
comments
2
Libby
Level 20
Question about the task
CRUD 2
Java Core
,
Level 7
,
Lesson 10
Resolved
Fifth condition not met
Can anyone help please?
26.05.2021
541
views
2
comments
2
Libby
Level 20
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Resolved
Can anyone help please?
3:Be sure that the id (index) of the added person is displayed on the screen. 5:Be sure that the size of the allPeople list does not change when a person's data is deleted. 6:Be sure that the -i argument displays the person's data.
24.05.2021
801
views
3
comments
2
Andrei
Level 41
Question about the task
Data integrity
Java Collections
,
Level 2
,
Lesson 6
Under discussion
Can somebody please explain why we need the block of code below?
Why can't we just make a comparison between hashValue.toString() and argument md5 of the method? Why do we have to transform the contents of hashValue into HexString. Also, what is the use of the arguments in line 2 of the first code block? for (byte b : hashValue) { String x = Integ
22.06.2021
614
views
4
comments
0
Ellen
Level 29
Antwerpen
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Why do I get an OutOfMemory error?
I get the following exception when trying to run my program: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:3210) at java.util.Arrays.copyOf(Arrays.java:3181) at java.util.ArrayList.grow(ArrayList.java:265) at java.util.ArrayList.ens
30.11.2019
1976
views
2
comments
0
Rica
Level 3
Manchester
Question about the task
Minimum of two numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
How does the established int A and B get attributed to the prewritten code with the numbers in the second method?
16.04.2021
828
views
4
comments
0
sachin
Level 2
Singapore
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
why we need the abs method
i was doing the hit and trial and what i though is why we really need to abs method when we need to get the correct number closest to 10 even if both numbers are -ve. Example: if we take 2 number -8, -13 then abs method will be changing them to +ve number and when we are going to compare the +ve n
19.06.2021
551
views
2
comments
0
Dinesh
Level 7
Delhi
Question about the task
Even to the moon!
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Why I am unable to get the proper output ? May kindly explain
package com.codegym.task.task01.task0136; /* Even to the moon! */ public class Solution { public static void main(String[] args) { System.out.println(getWeight(888)); } public static double getWeight(int earthWeight) { // write your code here double mweight;
29.02.2020
1123
views
3
comments
0
Derrick Shema
Level 14
Bethany
Question about the task
Even to the moon!
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Am stuck on this one! I don't know what is it that I missing.
package com.codegym.task.task01.task0136; /* Even to the moon! */ public class Solution { public static void main(String[] args) { System.out.println(getWeight(888)); } public static double getWeight(int earthWeight) { getWeight=earthWeight*17.0; return doub
15.04.2020
1234
views
3
comments
0
The Chief
Level 18
Question about the task
Chicken factory
Java Core
,
Level 4
,
Lesson 6
Under discussion
I can't get the getDescription() requirement.
I'm stuck on the second to last requirement. Can someone please help me with this?
21.06.2021
420
views
1
comment
0
Andrei
Level 41
Question about the task
Caesar cipher
Java Collections
,
Level 2
,
Lesson 4
Under discussion
Running the program keeps throwing this error. Anyone know why?
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.base/java.util.Arrays.copyOf(Arrays.java:3536) at java.base/java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:227) at java.base/java.lang.AbstractStringBuilder.appendNull(AbstractStringB
21.06.2021
1483
views
17
comments
0
// Java Poser
Level 18
Cincinnati
Question about the task
Debug, debug, and again debug
Java Core
,
Level 5
,
Lesson 12
Resolved
I am completely helpless with these new debugging tasks.
Does CodeGym explain debugging in later lessons? If so, do you know which level? thank you. Any input is greatly appreciated.
15.04.2019
2241
views
28
comments
1
Thani
Level 2
Kampala
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
Methods
The methods also are misty, wanna know how to call them with ease , "do they need some kind of creatvity or there is a one route of calling them?", when and also execute "print" them out and also how they are linked to the classes.
07.06.2021
912
views
4
comments
0
harshshah
Level 9
Gandhinagar
Question about the task
Census
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Not able to identify whats going wrong with my code.
Help
20.06.2021
707
views
3
comments
0
Saurabh Nair
Level 2
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Resolved
Requirement Error on "The hackSalary method should increase the input parameter by 1000 and output text to the screen according to the specified template".
Hi, I am not sure what is wrong in my solution below. I tried downloading the Codegym solution for this and it is exactly the same. Request compatriots help. Thanks.
23.05.2021
508
views
2
comments
0
Yuvavimal
Level 12
coimbatore
Question about the task
Time for 10,000 insertions
Java Syntax
,
Level 8
,
Lesson 6
Resolved
help me?
why last requirement is not passed they providing output is -14 -6
21.08.2020
958
views
5
comments
0
John
Level 17
Mansfield
Question about the task
Debug, debug, and again debug
Java Core
,
Level 5
,
Lesson 12
Under discussion
HELP!!!
I can't understand a thing about debugger even after reading some articles and watching tutorials on youtube.
19.06.2021
547
views
4
comments
0
The Chief
Level 18
Question about the task
Robot wars
Java Core
,
Level 3
,
Lesson 11
Under discussion
Why does the hitCount have to be >= 4 in the last 'else if' statement?
In the attack and defend methods in the AbstractRobot class, I had the hitCount set to equal to 4 in the last 'else if' statements like these: else if (hitCount == 4) { hitCount = 0; attackedBodyPart = BodyPart.CHEST; } else if (hitCount == 4) { hit
18.06.2021
373
views
1
comment
1
John
Level 17
Mansfield
Question about the task
Order of loading variables
Java Core
,
Level 5
,
Lesson 12
Resolved
Displaying Correct output but failing 3rd condition
What's wrong? it prints correct output
19.06.2021
593
views
4
comments
0
Show more
1
...
66
67
68
69
70
...
372
Please enable JavaScript to continue using this application.