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
Ted404
Level 11
Dubai
Question about the task
HashMap of cats
Java Syntax
,
Level 8
,
Lesson 3
Under discussion
Please help with explanation of everything
Can anyone please explain what exactly is happening here? I feel like I totally don't understand what is happening here. I've passed the previous levels with good understanding. However, HashMaps and in general collections seem really confusing to me. I would also appreciate any additional links for
03.04.2020
988
views
3
comments
3
sourav bamotra
Level 20
jammu
Question about the task
Seasons on Terra
Java Syntax
,
Level 4
,
Lesson 4
Resolved
help me out with displaying stuff.
whats actually going wrong with the output stuff. i tried my code in IDE an there as well it is not throwing any output except blank screen.
12.06.2020
376
views
4
comments
0
Erin Garner
Level 5
Greenville
Question about the task
Escaping characters
Java Syntax
,
Level 3
,
Lesson 6
Resolved
Why is this not working?
Can someone please help me. I don't know what is wrong in this code and I have double checked it multiple times.
12.07.2020
516
views
2
comments
0
Tata
Level 16
Hisar, Haryana
Question about the task
Escaping characters
Java Syntax
,
Level 3
,
Lesson 6
Resolved
Everything looks fine. please correct me to get right output.
String s1 = "This is a Windows path: ";
11.05.2020
746
views
5
comments
0
Djordje
Level 19
Question about the task
Duplicating words
Java Syntax
,
Level 7
,
Lesson 9
Resolved
I am confused. Only first condition is satisfied. It even fails to Read 10 lines from the keyboard and add them to the list.
package com.codegym.task.task07.task0717; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.ListIterator; /* Duplicating words */ public class Solution { public static void main(String[] args) throws Exception { BufferedRea
15.11.2018
1580
views
2
comments
1
Daniela
Level 8
Barcelona
Question about the task
Cat code won't compile
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
Output its ok but task is failing
Can someone help me? Cannot find what is wrong with this
12.07.2020
443
views
3
comments
0
David
Level 26
Bucharest
Question about the task
Software update
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Whart am I doing wrong?
help, please!
28.03.2020
931
views
9
comments
0
Seferi
Level 22
Question about the task
In decreasing order
Java Syntax
,
Level 7
,
Lesson 12
Resolved
Please help!
Can't figure this one out... Where am I doing wrong?
01.07.2020
613
views
5
comments
0
Goran
Level 41
Belgrade
Question about the task
Prices 2
Java Core
,
Level 8
,
Lesson 11
Resolved
Need new look on this problem
I tested on my files and it is working but not passing third and forth condition. Can someone see mistake ? if (args.length > 0 && (args[0].equals("-u") || args[0].equals("-d"))) { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); St
13.06.2020
653
views
6
comments
0
Dinesh
Level 7
Delhi
Question about the task
Minimum of two numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
whats wrong with my if else condition?
package com.codegym.task.task02.task0214; /* Minimum of two numbers */ public class Solution { public static int min(int a, int b) { //write your code here int minimum; if (a < b) { minimum=a; else minimum=b; }return
29.02.2020
1199
views
11
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Bug in equals/hashCode
Java Multithreading
,
Level 1
,
Lesson 5
Under discussion
What is wrong in my code?
I tested my code: Set s = new HashSet<>(); Date d = new Date(); Solution a = new Solution(); Solution sol = new Solution(3, "ala", 2.2, d, a); System.out.println(s.add(sol)); System.out.println(s.add(sol)); output is: true false
05.05.2019
1426
views
3
comments
0
Ramilya
Level 20
SPb
Question about the task
Functionality is not enough!
Java Syntax
,
Level 10
,
Lesson 11
Resolved
Mistake in last condition
Please help. What's wrong in my code? Output is correct.
11.03.2019
1325
views
2
comments
2
ANUJA ARJUNAN
Level 5
Munnar
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Resolved
How to print the output?
System.out.println("Java Java Java Java is is is is easy easy easy easy"); System.out.println("to to to to learn! learn! learn! learn!"); System.out.println("Java Java Java Java opens opens opens opens"); System.out.println("many many many many opportunities! opportunities!
05.01.2019
3728
views
11
comments
0
HaeWon Chung
Level 17
Boston
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Resolved
correct result but cannot pass
Could you please let me know what's wrong with my code?
11.07.2020
371
views
2
comments
0
Clayton
Level 13
Bedminster
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Resolved
Help
Not sure why the program is only giving the shortest string. Any ideas?
08.04.2019
1971
views
10
comments
2
Michal
Level 26
Lodz
Question about the task
Inner
Java Multithreading
,
Level 3
,
Lesson 4
Under discussion
Why this fails? In InteliJ work fine
03.06.2020
360
views
2
comments
0
Voris
Level 10
Tashkent
Question about the task
ConsoleReader class
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
why buffered reader can't be static ?
package com.codegym.task.task06.task0610; import java.io.BufferedReader; import java.io.InputStreamReader; /* ConsoleReader class */ public class ConsoleReader { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static String readString() throw
18.04.2019
2405
views
7
comments
0
Infamous 711
Level 4
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
help!!!!!!
I am keep getting problem. please help
03.07.2020
643
views
3
comments
0
Tony Roy
Level 41
Victorville
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Resolved
Results look right, excluding 0 still won't pass. ???
Based on web, giving right Armstrong numbers. Following advice on this page, zero is excluded. Don't know what's wrong!! Addendum: With some modifications to the code below I have tried: 1. excluding 0, numbers < N 2. excluding 0, numbers <= N 3. including 0, numbers < N 4. including 0
06.04.2020
1161
views
5
comments
0
Ian Rafferty
Level 13
Question about the task
Census
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
failing last requirement but seems to work
Using the System.out (which I've hidden to verify) it looks like this works. Not sure why it won't pass. any help please guys.
10.07.2020
408
views
2
comments
0
Angus McDonald
Level 5
Sydney
Question about the task
Snake (part 10)
Java Multithreading
,
Level 2
,
Lesson 18
Under discussion
Initializing snake and room
I know I need to initialise the snake and game variables in the main method... fairly sure. With the snake I'm not sure how to pass the x and y variables it needs to be initialised. I've tried using the getSnake() method. Tried passing my own arbitrary x and y ints. With the game.. I gather I'm no
10.07.2020
488
views
1
comment
0
Tata
Level 16
Hisar, Haryana
Question about the task
Task about algorithms
Java Syntax
,
Level 9
,
Lesson 11
Resolved
I can't understend pls help me??
i am stuck with this.
09.07.2020
379
views
5
comments
0
Kostadin
Level 6
Hounslow
Question about the task
Jen or Jen?
Java Syntax
,
Level 4
,
Lesson 6
Resolved
i tried in compiler and it is worked proper, where is my mistake
i tried in compiler and it is worked proper, where is my mistake
02.07.2020
582
views
2
comments
0
Jhoal
Level 22
Berlín
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Problem with the last requirement
hi guys, what am I doing wrong? I don't understand why the requirements 4 are not achieve with my code?
02.07.2020
456
views
2
comments
0
Ewerton
Level 30
Belo Horizonte
Question about the task
Archiver (part 1)
Java Multithreading
,
Level 7
,
Lesson 15
Under discussion
"The server is unable to properly test your solution. Be sure you have all the classes you need. Be sure that your solution doesn't have any infinite loops."
Caused by: java.lang.ClassNotFoundException: com.codegym.task.task31.task3110.big01.Solution at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 3 more
14.07.2019
1018
views
2
comments
0
Brandon Horvatic
Level 27
Johannesburg
Question about the task
Snake (part 16)
Java Multithreading
,
Level 2
,
Lesson 18
Under discussion
Can someone please help..
I have tried everything and nothing seems to pass validation. Does anyone see what is wrong?
21.10.2019
1093
views
6
comments
0
pratyush prakash
Level 2
patna
Question about the task
Where does a Person come from?
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
everytime it is wrong
please help me everytime it is saying something or the other missing please can u send me like a full correct program so I can analise it please I m not able to figure it from many days
05.07.2020
391
views
3
comments
0
Michael Martin
Level 19
Arlington
Question about the task
Counting words
Java Core
,
Level 9
,
Lesson 5
Resolved
Not sure what is separating the word "world" in the file
Trying to use all punctuation as the delimiter. Anybody get this working?
18.12.2018
1958
views
4
comments
0
Sanjeevkumar
Level 22
Mumbai
Question about the task
To the top of the list
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
How in the world it occurs?
i solved the problem but i wont understand the part how the all elements stored in the beginning of list changed for displaying those in reverse order from begin to end. please explain if you know! thanks in advance!
09.06.2020
866
views
3
comments
0
catalinene
Level 29
Greven
Question about the task
Equals and HashCode
Java Multithreading
,
Level 1
,
Lesson 5
Under discussion
Equals method returns true and has a criteria defined
But the condition 4: The equals method must return true if the first and last fields are equal to the passed object and the current one (don't forget that they might be null)., fails. public boolean equals(Object o) { if (o == this) { return true; } if (!(o insta
16.03.2020
946
views
2
comments
0
Show more
1
...
162
163
164
165
166
...
366
Please enable JavaScript to continue using this application.