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
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
581
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
637
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
785
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
899
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
3762
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
1497
views
2
comments
0
Andrei
Level 41
Question about the task
Build a tree (part 5)
Java Collections
,
Level 1
,
Lesson 15
New
What wrong with my version of the remove method?
The remove method starts at line 100: @Override public boolean remove(Object o) { if (o.getClass() != String.class) throw new UnsupportedOperationException(); //After using the remove method to remove the last added node from the tree, the size method should return N-1.
6/17/21
710
views
0
comments
0
Jurij Thmsn
Level 29
Flensburg
Question about the task
Deep cloning of a map
Java Multithreading
,
Level 1
,
Lesson 8
Under discussion
Why use euals() and hashCode() ?
I passed this exercise without implementing the equals() and hashCode() methods. I simply overrode the clone() method of the Solution class in which I cloned the "users" map of the original object to the cloned object's "users" field. In the "right solution" the equals() and hashCode() methods are
6/16/21
685
views
2
comments
0
SirJava88
Level 5
Canadensis
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Resolved
I can't understand what I'm doing wrong here. The code is outputting correctly with the right range.
package com.codegym.task.task04.task0416; /* Crossing the road blindly */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); double minsInHour =
6/4/21
966
views
4
comments
0
Zach
Level 22
Fort Collins
Question about the task
Big Ben
Java Core
,
Level 6
,
Lesson 7
Under discussion
Can't get the first task to pass?
How do I make sure that it only runs for about one second?
6/16/21
588
views
1
comment
0
Caden J
Level 2
Atlanta
Question about the task
Where does a Person come from?
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
I dont understand what this whole "Person" thing is
ggfsar
2/23/20
1339
views
4
comments
0
Raj Mishra
Level 2
India
Question about the task
Neo
Java Core
,
Level 3
,
Lesson 11
Under discussion
I dont understand the cause of failure
My program is returning as expected and I am also following the same procedure. But still 2 cases are failing, dont know why
6/16/21
668
views
1
comment
0
Maxim Raitin
Level 20
Tomsk
Question about the task
The early bird gets the worm
Java Core
,
Level 6
,
Lesson 13
Resolved
I don't understand output
How JVM(JDK) split words?? Or is it just random splitting (because all threads are random)?
6/16/21
742
views
1
comment
0
Alvin B
Level 8
Newark
Question about the task
Min and max in arrays
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
What is wrong?
What is wrong here? Everything seems to work according to requirements. Please help. Thanks in advance.
9/29/20
688
views
3
comments
0
Jonathan
Level 12
Esslingen
Question about the task
Min and max in arrays
Java Syntax
,
Level 7
,
Lesson 12
Resolved
Its running perfect ???
public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int[] array = new int[20]; int maximum = 0; int minimum = 500000000; for(int i=0;i<20;i+
10/16/20
938
views
4
comments
0
Jurij Thmsn
Level 29
Flensburg
Question about the task
Adding a file to an archive
Java Collections
,
Level 1
,
Lesson 6
Resolved
Getting frustrated...
I googled different ways how to unzip a file etc, but the information i find is so different and I really don't know how to make this work. On my computer the program seems to work, I end up getting a zip file which contains a.txt , b.txt and a new/ folder with result.mp3 . I am so frustrated, b
5/12/21
877
views
11
comments
0
Sansho
Level 19
Bordeaux
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Under discussion
I can't understand why only the 2 firsts requ. are greens
The only thing I can understand is when I "-d " a person and then ask for its infos, it "crashes" cuz of Birthday is null (and even there, I tried to make my program to ignore it but...it doesn't) . So if someone can help me, it will be soooo great!
6/15/21
529
views
2
comments
0
hosniaro
Level 27
Heiloo
Question about the task
Build a tree (part 1)
Java Collections
,
Level 1
,
Lesson 15
Under discussion
How is this example solved?
What do you type in a search engine?
6/14/21
752
views
1
comment
0
Hemel
Level 7
London
Question about the task
Describing numbers
Java Syntax
,
Level 4
,
Lesson 7
Archived
I'm not sure why off numbers are not being shown.
I'm using the same syntax as the previous task where we identified even & odd numbers but it's not identifying the odd numbers. Is there an issue with the order? Thanks!
6/15/21
737
views
6
comments
0
Asia
Level 19
Bydgoszcz
Under discussion
what's wrong?
It's just like their solution, and compiles in Intelij, but not here. Why is that? I'm getting NullPointerException
6/15/21
700
views
1
comment
0
Andrei
Level 41
Question about the task
Search for hidden files
Java Collections
,
Level 1
,
Lesson 4
Resolved
How does the visitFIleFailed method work?
We have the visitFileFailed method and the body is below. Considering that it only add the argument to the List and then returns skip subtree, where does the check for failure take place? I don't understand. Shouldn't there be an if clause somewhere? ex. if file could not be accessed then add to fi
6/15/21
817
views
4
comments
0
Karolis Garšva
Level 16
Gravesend
Question about the task
Creating cats
Java Syntax
,
Level 5
,
Lesson 9
Resolved
whats wrong?
it says that this constructor already exists or something like that...
6/14/21
753
views
4
comments
0
Yomi Addey
Level 8
Baltimore
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Resolved
Weird error
This was part of the error: " java.lang.NullPointerException at com.codegym.task.task07.task0708.Solution.main(Solution.java:20) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)" I have no clue what
6/14/21
549
views
2
comments
0
Maxim Raitin
Level 20
Tomsk
Question about the task
Shall we play?
Java Core
,
Level 6
,
Lesson 13
Under discussion
It works in IDE
Hello, Why it doesn't accepted in CodeGym?
6/15/21
550
views
1
comment
0
Zach
Level 22
Fort Collins
Question about the task
Adapter
Java Core
,
Level 9
,
Lesson 3
Under discussion
Not passing sixth validation.
FileOutputStream's write() method only takes bytes and int's as arguments so how are you supposed to use Strings without converting it? Thanks.
6/14/21
498
views
1
comment
0
Yomi Addey
Level 8
Baltimore
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Resolved
New issue: String cannot be converted
"com/codegym/task/task06/task0621/Solution.java:23: error: incompatible types: java.lang.String cannot be converted to com.codegym.task.task06.task0621.Solution.Cat Cat cat4 = new Cat(catName4, catName2, null);" I got rid of the "missing return statement issue" (I think), but now I see wha
6/14/21
658
views
2
comments
0
Mina Nabil
Level 17
Sydney
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Hi, whats wrong with my code ?
Hi, whats wrong with my code ? It doesn't pass verification ?
3/3/21
1083
views
2
comments
0
John
Level 17
Mansfield
Question about the task
OOP: Books
Java Core
,
Level 5
,
Lesson 2
Under discussion
this
I just finished the task, a little tip. Use this operator :)
6/11/21
470
views
0
comments
1
David Haines
Level 13
La Crosse
Question about the task
Buggy initializeIdAndName
Java Core
,
Level 3
,
Lesson 2
Under discussion
Thank you all for the comments below.
Just wanted to say thank you to all who commented on this lesson. I have to admit that I was very confused about what this wanted. I ended up downloading the correct solution and comparing against my version while factoring in the comments below. Because of all this, I was able to 'reverse engine
6/13/21
581
views
0
comments
1
ImDevin
Level 15
Old Town
Under discussion
logic behind this method - 1420
Those who used this way of solving the task, could you explain the logic/flow of this? I understand this is recursion, but switching the x & y and diving by the remainder, etc. I just can't follow it. Much appreciate it.
6/11/21
1042
views
5
comments
0
Show more
1
...
70
71
72
73
74
...
374
Please enable JavaScript to continue using this application.