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
Java 25
All quests
All levels
Any status
Questions about tasks
Hot
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 ?
8/23/19
1707
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?
6/22/21
606
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?
5/26/21
634
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.
5/24/21
925
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
6/22/21
710
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
11/30/19
2094
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?
4/16/21
941
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
6/19/21
658
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;
2/29/20
1252
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
4/15/20
1367
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?
6/21/21
514
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
6/21/21
1619
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.
4/15/19
2355
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.
6/7/21
1022
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
6/20/21
802
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.
5/23/21
601
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
8/21/20
1047
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.
6/19/21
631
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
6/18/21
469
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
6/19/21
729
views
4
comments
0
Lorenzo Cammerinesi
Level 7
London
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Help
Someone can help what's the problem here?
10/19/20
1179
views
2
comments
0
Maksim Silkov
Level 5
Moscow
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
don't work
What's wrong? The answer correct..
5/16/21
585
views
2
comments
1
algO
Level 18
Athens
Question about the task
Order of loading variables
Java Core
,
Level 5
,
Lesson 12
Under discussion
How to use debugger?
Are there were any instructions from privious lessons and I didn't see them? I don't know how to use debugger. Help
8/30/20
623
views
3
comments
0
John
Level 17
Mansfield
Question about the task
Different methods for different types
Java Core
,
Level 5
,
Lesson 12
Resolved
can i get some help?
why do i still get an error saying cannot convert double to string?
6/18/21
639
views
6
comments
0
Yomi Addey
Level 8
Baltimore
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
2nd condition not passing
It removes all the "r" words yet it still doesn't pass. I added the "else if" part in hopes it would fix it, but that doesn't do anything either. Please help! Thanks!
6/18/21
568
views
4
comments
0
Yomi Addey
Level 8
Baltimore
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
"Java heap space" error?
Why do I get a "java heap space" error, and how do I fix it?
6/15/21
613
views
1
comment
0
ayhem bouabid
Level 25
Tunis
Question about the task
Replacing numbers
Java Core
,
Level 9
,
Lesson 11
Under discussion
I am not sure what is the wrong with my code. Can someone help me debug it?
These are explanatory comments on the modifyLine method : public static String modifyLine(String line){ // the word variable stores each word in the line : the string produced until we meed a non-alphanumerical character StringBuilder word = new StringBuilder(); // the res
6/17/21
768
views
1
comment
0
Gellert Varga
Level 23
Szekesfehervar
Question about the task
Ironing
Java Core
,
Level 7
,
Lesson 10
Resolved
What does a Class-level lock mean?
1) What is the point of class-level lock of the Iron class? This class does not contain any methods. Then what does it lock in fact?? 2) Why is the (Person.class) lock not correct solution? The output appeared in the correct order (as if there were only 1 piece of iron). 3) When I wrote this: sync
5/14/21
883
views
11
comments
2
Tayyab Mubeen
Level 16
Lahore
Question about the task
We're all friends here, even the exceptions
Java Syntax
,
Level 9
,
Lesson 8
Resolved
i tried my best but still not able to done this...!!!
i didn;t understand how can i do this...need help
10/21/18
3735
views
17
comments
0
MecoS
Level 16
Question about the task
Stack trace revisited
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
Help, maybe i didn't understand question
Maybe is necessary a break point?
12/9/19
1483
views
2
comments
0
Show more
1
...
69
70
71
72
73
...
374
Please enable JavaScript to continue using this application.