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
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?
09.12.2019
1310
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.
17.06.2021
545
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
16.06.2021
563
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 =
04.06.2021
816
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?
16.06.2021
466
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
23.02.2020
1208
views
4
comments
0
Raj Mishra
Level 15
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
16.06.2021
554
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)?
16.06.2021
614
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.
29.09.2020
560
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+
16.10.2020
780
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
12.05.2021
734
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!
15.06.2021
430
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?
14.06.2021
635
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!
15.06.2021
631
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
15.06.2021
569
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
15.06.2021
670
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...
14.06.2021
639
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
14.06.2021
422
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?
15.06.2021
439
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.
14.06.2021
381
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
14.06.2021
546
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 ?
03.03.2021
988
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 :)
11.06.2021
372
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
13.06.2021
465
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.
11.06.2021
910
views
5
comments
0
Jack Tec
Level 0
Question about the task
Snake (Part 9/20)
Games
,
Level 0
,
Lesson 1
Under discussion
could anybody help please
where is the bug in my code ?
13.06.2021
730
views
2
comments
0
Xavier
Level 17
Pearland
Question about the task
Food
Java Core
,
Level 4
,
Lesson 4
Under discussion
It passed the verification, but I don't understand how.
After completing the first two requirements, I just started trying different things. I started going through the description rather than the requirements and added food.onSelect(); food.onEat(); in the foodMethods method to see if the third requirement would pass, and the entire exercise passed. Wh
11.06.2021
671
views
5
comments
0
John
Level 17
Mansfield
Question about the task
OOP: Fix inheritance problems
Java Core
,
Level 5
,
Lesson 2
Resolved
Bad operand types
Whats wrong with the return statement of my finger's containBones () method?
12.06.2021
500
views
1
comment
0
Zach
Level 22
Fort Collins
Question about the task
In the blue depths of the stack trace…
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
I printed out each element of the array. What do they all represent?
Why is the answer not 12 for each of the things in the array?
11.06.2021
381
views
1
comment
0
John
Level 17
Mansfield
Question about the task
Food
Java Core
,
Level 4
,
Lesson 4
Under discussion
Confused of what's happening
I just finished the task and review it, I found out that there is a Creation of Selectable interface in the main, how was that even possible? i think you can't create an object of an interface
31.05.2021
482
views
20
comments
0
Show more
1
...
67
68
69
70
71
...
371
Please enable JavaScript to continue using this application.