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
Rich
Level 23
San Diego
Question about the task
OOP: Fix inheritance problems
Java Core
,
Level 5
,
Lesson 2
Under discussion
last requirement
All fingers come up as artificial for some reason. little hint pls...
27.12.2020
331
views
1
comment
0
Anitamalina
Level 18
København
Question about the task
Going national
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
My code works, but I can't pass
I don't understand why this isn't working?
27.12.2020
455
views
1
comment
0
Liliane Top
Level 24
Amsterdam
Question about the task
The early bird gets the worm
Java Core
,
Level 6
,
Lesson 13
Resolved
What is wrong with my code?
Why is it not stop running? I do not understand . I s read a line from the console and add it to the list. I increment the readStringCount It should stop running as readStringcount is no longer smaller than count However it just keeps running why?
26.12.2020
1143
views
27
comments
0
Anitamalina
Level 18
København
Question about the task
Make a family
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
NullPointerException in line 67
Hi, I don't understand why I get a null pointer exception in line 67, and what's wrong with my code? Can someone help me, thank you :-)
28.12.2020
592
views
1
comment
0
slyyx
Level 15
New York City
Question about the task
Snake (Part 18/20)
Games
,
Level 0
,
Lesson 1
Under discussion
I can't tell if I'm misunderstanding the directions
I can't tell if I'm misunderstanding the directions or am just going about the problem the right way
12.12.2020
590
views
4
comments
2
Liliane Top
Level 24
Amsterdam
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Resolved
This is a real puzzle
I do not know why I fail the test. The output is correct just not very clean code but it does work. So how to go from here?
27.12.2020
479
views
9
comments
0
Marvin Ellis
Level 7
Peoria
Question about the task
String array in reverse order
Java Syntax
,
Level 7
,
Lesson 4
Resolved
Array Out of Bound Index
What is causing this excpetion
22.10.2020
689
views
2
comments
0
Marvin Ellis
Level 7
Peoria
Question about the task
To the top of the list
Java Syntax
,
Level 7
,
Lesson 6
Resolved
The program should add lines to the beginning of the list.
Should I change the for loop to start from10 and go to 0? I am not sure why it stating the last two are wrong?
22.10.2020
758
views
1
comment
0
Rich
Level 23
San Diego
Question about the task
The simplest code: part 2
Java Core
,
Level 5
,
Lesson 6
Under discussion
little hint
it refuses to pass with an empty constructor. just need a hint
27.12.2020
447
views
1
comment
0
Tina
Level 17
Saint Petersburg
Question about the task
The simplest code: part 2
Java Core
,
Level 5
,
Lesson 6
Under discussion
Why it does not pass the test.
Why it does not pass the test.
10.06.2019
1765
views
7
comments
0
Abhishek Rangari
Level 22
Nagpur
Question about the task
OOP: Method overloading
Java Core
,
Level 5
,
Lesson 4
Under discussion
Can anyone help me in this quest?
Not sure what is going wrong ..
03.12.2018
1826
views
2
comments
0
The Chief
Level 18
Question about the task
Census
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Why doesn't this task need a HashMap copy?
Why don't the middle two methods require a copy of the HashMap such as: HashMap copy = new HashMap(map); like similar tasks on this lesson do?
24.12.2020
391
views
5
comments
0
anupam jha
Level 7
Under discussion
static
why do we need static class ?? whats the reason...
26.12.2020
416
views
1
comment
0
Laura
Level 7
Lübeck
Question about the task
Cat and statics
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
Code mistake
Although I compared my code to others, I have a problem with the static variable says the compiler Idk I can't find my mistake. Can anyone help me? Thank u.
04.10.2020
538
views
2
comments
1
George
Level 15
Question about the task
Minesweeper (Part 6/16)
Games
,
Level 0
,
Lesson 0
Resolved
Counting mines for a cell that is a mine?
This is failing requirement 3 saying that I'm counting mines for a cell that is mine. I believe I skip those with continue command. Any ideas? It's also failing the 4th requirement. Says that countMineNeighbors() isn't using getNeighbors(GameObject) which I am using but obviously I'm missing someth
17.09.2020
773
views
2
comments
2
hidden #10444738
Level 16
Question about the task
Exception when working with numbers
Java Syntax
,
Level 9
,
Lesson 6
Under discussion
printStackTrace?
Wouldn't printStackTrace be better, it shows also the line number and the error. Just by using catch Execption errror
28.07.2019
1762
views
2
comments
0
Jen P
Level 26
Question about the task
Reading from a stream
Java Collections
,
Level 2
,
Lesson 4
Under discussion
"Under no circumstances should null be returned" error forever, even passed local unit test.
Hi Guys, I , again sadly, met the same "Under no circumstances should null be returned." error in this problem. I have no idea on why this error constantly throws out. Any advice ?! Thank you! public class Solution { public static void main(String[] args) throws IOException { StringWri
24.08.2019
1214
views
7
comments
0
Liliane Top
Level 24
Amsterdam
Question about the task
Shall we play?
Java Core
,
Level 6
,
Lesson 13
Resolved
Why do I fail the test?
The output seems correct but I fail the test with 2 errors 1) The run method does not display the required text. 2) If a player wins, his or her run method should display [getName() + ":won!"]. For example: [Jones:won!]. but my output is: Gates:Start Game Smith:Start Game Gates:Gather resources Gat
24.12.2020
605
views
4
comments
0
null
Level 26
Orlando
Question about the task
In the blue depths of the stack trace…
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
Can anyone explain why i use: stackTraceElement elements.length will return its length but not elements.length() as a method
..
20.02.2020
888
views
3
comments
0
Lorraine Brown
Level 2
Oakland
Question about the task
No comments needed
Java Syntax
,
Level 0
,
Lesson 8
Under discussion
I do not not understand the answer in hint.
I downloaded intellij IDEA. I ran it and see the answer. Can you explain it in email to me mrsbrown08837@gmail.com? I went to https://www.w3schools.com/java/java_operators.asp to verify how the operators should work.
30.09.2020
639
views
1
comment
0
Cristian
Level 13
Ploiesti
Question about the task
Only for the rich
Java Syntax
,
Level 8
,
Lesson 8
Resolved
What is wrong with my code?
Hi, guys! Something is wrong with my code! Please, help me! Thank you in advance! package com.codegym.task.task08.task0818; import java.util.HashMap; import java.util.Map; /* Only for the rich */ public class Solution { public static HashMap createMap() { //write your code here
14.12.2020
500
views
6
comments
0
Vinay
Level 11
Question about the task
Duplicating words
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Please help!
I can't figure out where am going wrong.
24.12.2020
552
views
2
comments
0
Marco Festi
Level 8
Parma
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Resolved
Code doesn't work for negative numbers?
I've tested it and it works, don't know where the problem is. I tested line 20 also with maximum = number; because at first I thought that the first number was to be considered for the maximum, but after reading the comments I understood it doesn't have to. Thanks
24.12.2020
1150
views
3
comments
0
Chandan Thapa
Level 22
Dubai
Question about the task
Transactionality
Java Core
,
Level 7
,
Lesson 10
Resolved
Check your code. It looks like you have an infinite loop.
I cannot figure out the bug in this one for the infinite loop. Is my logic to pass this task correct? Please help :)
23.12.2020
438
views
4
comments
0
Jhoal
Level 22
Berlín
Question about the task
What's today's date?
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
What is the util.Locale for?
Hey guys, I've trying to figure out what is the import java.util.Locale for? I've found some information on internet but i still do not understand. It is so technical and I get lost. Any for dummies explanation for me? :)
22.12.2020
374
views
1
comment
0
Anitamalina
Level 18
København
Question about the task
Set of cats
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
remove cat1 in set cats
Hi, 1) I don't understand why cat1 in line 19 can't be resolved to a variable (the message I get from my IDE). 2) Is there another way to remove a specific cat from the set, without using a field of name? Why can't I just use the object reference? 3) I also tried in line 20: iterator.remove(cat1)
21.12.2020
614
views
4
comments
0
Philip Butler
Level 32
United Kingdom
Question about the task
Log parser (part 7)
Java Collections
,
Level 7
,
Lesson 15
Resolved
Verification weirdness!
Hi all, Merry Xmas and Happy Coding! So I thought I cracked this one. All my local tests work as expected. However, when I come to verify the code it fails on tests, 3, 4 and 11. Tests 3 and 4 cover get ip for event and get ip for status. Test 11 is get date for event. So my first thought is I'
17.12.2019
1158
views
2
comments
3
Dave Andrea
Level 41
Question about the task
Iterating through a file tree
Java Collections
,
Level 1
,
Lesson 2
Archived
I can't get the first condition
Everything works fine in IntelliJ. I put in a directory and file on my own computer to test it. Everything works. But for some reason, the tests don't like how I renamed the file. But it accepts the renamed file and writes to it properly. I'm ready to pull my hair out on this one. Any thoughts?
23.07.2020
564
views
1
comment
0
Prahlad Singh
Level 6
Mumbai
Question about the task
Roy G. Biv…
Java Syntax
,
Level 3
,
Lesson 6
Resolved
Can anyone help me
public class Solution { public static void main(String[] args) { //write your code here Red red = new Red(); red.Red(); Orange orange = new Orange(); orange.Orange(); Yellow yellow = new Yellow(); yellow.Yellow();
12.09.2018
2642
views
14
comments
2
Liliane Top
Level 24
Amsterdam
Question about the task
Writing to a file from the console
Java Core
,
Level 3
,
Lesson 11
Resolved
How to read the contents of the file that contains all that is written to it?
BufferedWriter writer = new BufferedWriter(new FileWriter(destinyFile)); String content = ""; while (!content.equals("exit")) { content = reader.readLine();//read input from the console writer.write(content + "\n");//write the input to the destinyFile
20.12.2020
479
views
6
comments
0
Show more
1
...
105
106
107
108
109
...
371
Please enable JavaScript to continue using this application.