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
Maryem Vickers
Level 7
HT...
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
Hey, what is the NullPointerException Error here?! I need some help!
Hi coders, Can I have some help?! If you run this, you find this error; java.lang.NullPointerException at com.codegym.task.task07.task0708.Solution.main(Solution.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethod
13.11.2020
385
views
2
comments
0
Andrei
Level 41
Question about the task
Minesweeper (Part 6/16)
Games
,
Level 0
,
Lesson 0
Resolved
I don't understand how gameField[y][x] = new GameObject(x, y, isMine); works. Can someone please explain?
Hello, In the program there is this line gameField[y][x] = new GameObject(x, y, isMine); but I don't quite understand what exactly is does. Does it add at position y the indices x which is the new game object? Do the x and y from gameobject transfer to the gamefield array? If so, how is that po
24.11.2020
668
views
4
comments
0
Dave Shapiro
Level 31
Co. Kerry
Question about the task
Cats
Java Core
,
Level 4
,
Lesson 4
Under discussion
Glitch in task i think?
Output I'm getting: I'm boss, an alley cat I'm a nice kitten named Missy I'm a nice kitten named Smudgey I'm pirate, an alley cat My method (I'll post it since it won't pass with this!): BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); String catIn = null; w
16.11.2020
479
views
5
comments
0
Cristian
Level 13
Ploiesti
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Cannot find symbol symbol: method remove(int) location: variable s of type java.lang.String.
Hi, guys! I make a mistake. It's something about method remove, I think. cannot find symbol symbol: method remove(int) location: variable s of type java.lang.String. Please clarify me. Thank you in advance! package com.codegym.task.task07.task0716; import java.util.ArrayList; /* R or L */ pub
23.11.2020
1778
views
4
comments
0
Roman Grygorczuk
Level 19
Cracow
Question about the task
Software update
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Cannot pass last requirements
Hi all, Cannot pass the last condition. I read through another examples in the forum but I cannot understand what is wrong. Any hints? Thanks, Roman
22.11.2020
674
views
9
comments
0
Bogdan Codreanu
Level 23
Question about the task
Find all the files
Java Collections
,
Level 1
,
Lesson 2
Resolved
can someone help please ?
???
05.09.2019
1353
views
2
comments
0
Jay
Level 17
Washington
Question about the task
Robot wars
Java Core
,
Level 3
,
Lesson 11
Under discussion
Compilation error: Need Help
I continue to receive the following error message, and I can't figure out why: com/codegym/task/task13/task1328/Solution.java:27: error: cannot find symbol robotFirst.getName(), robotSecond.getName(), attacked, defended)); ^ symbol: method getName()
14.08.2019
1039
views
2
comments
0
Andrei
Level 41
Question about the task
Identical words in a list
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
The algorithm works on paper but running it gives different result.
Please advise, what am I doing wrong?
19.11.2020
583
views
6
comments
0
Maksim Lukjanskis
Level 17
Riga
Question about the task
StringHelper class
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
Someone can help me?
I read a couple of differents hints, from others questions, but still can't understand...
23.11.2020
460
views
2
comments
0
Vo
Level 41
Sofia
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Resolved
It seems that everything is fine, but I guess I am missing something.
I get great timing and decent memory usage in IntelliJ Idea. The results also seem to be correct. Do I miss something? Is there are corner case I am missing out? Thanks!
18.11.2020
606
views
3
comments
0
Rishabh Joshi
Level 9
Indore
Under discussion
Why does it not work?
public class Solution { public static int min(int a, int b, int c, int d) { //write your code here int m2 = min(min(int a, int b), min(int c, int d)); return m2; } public static int min(int a, int b) { //write your code here int m1 = a < b ? a
21.11.2020
419
views
4
comments
0
Mihaela
Level 16
Iasi
Question about the task
Positive number
Java Syntax
,
Level 4
,
Lesson 7
Resolved
Help!
"Note that 0 is not a positive or negative number." ??
30.01.2019
1908
views
4
comments
0
Roman Grygorczuk
Level 19
Cracow
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Resolved
Cannot pass third step
Hi all, The program doesn't want to pass third step. I works and gave me the correct output. Any hint how to test it out? Thanks, Roman
22.11.2020
594
views
2
comments
0
Шарох
Level 12
Question about the task
Static cats
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
Hi Coders !
What should I do ? I don't know arrays.
21.11.2020
571
views
4
comments
0
Sylwia
Level 16
Deutschland
Resolved
String array to 2D char array
Hello, I don't really understand how the 2D array works here. Why can't we take a normal array? Can someone explain this? Is there any other way to convert String array to char array? Thank you! String[] arr = { "apple", "banana" }; char[][] cs= new char[arr.length][]; for (int i = 0;
21.11.2020
336
views
0
comments
0
Michael
Level 10
Dresden
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
The code solves the tasks with a quite easy solution, yet it does not meet the validator's expectations.
Does anyone have an idea why the code does not validate?
19.10.2020
427
views
3
comments
0
Cristian
Level 16
Bucharest
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
I have one missing requirement. Help me, please! Thank you!
package com.codegym.task.task07.task0713; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import java.util.List; /* Playing Javarella */ public class Solution { public static void main(String[] args) throws Exception {
04.11.2019
1014
views
4
comments
0
Jason
Level 26
Rancho Cucamonga
Question about the task
Reading and writing to a file: Human
Java Core
,
Level 10
,
Lesson 2
Under discussion
Is it just me or is this another time CodeGym didn't teach us a damn thing about the skills we will need to do the tasks at hand. Great Start to Section 20...
Does anyone have any links or documentation that is actually useful for completing these tasks. I tried combing the questions section and didn't find anything and then I tried to just read and write some code I found in the same places hoping to get some understanding but that did not work out at al
28.10.2019
1806
views
13
comments
6
Nicholas Burkill
Level 3
Toronto
Question about the task
Escaping characters
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
help?
not sure why this isn't working. seems identical to what is supposed to be printed.
21.11.2020
561
views
2
comments
0
Nemanja Vasiljevic
Level 11
Beograd
Question about the task
Feline carnage
Java Syntax
,
Level 5
,
Lesson 5
Resolved
Three fights error?
Why am I getting an error, that I need to conduct three fights, when I obviously do?
29.10.2018
2138
views
4
comments
4
tony
Level 20
Nis
Question about the task
Feline carnage
Java Syntax
,
Level 5
,
Lesson 5
Resolved
Don't understand
I don't understand this, I have 3 fights in my code, but still, there is an error saying "You need to conduct three fights." Any idea why this happens?
30.11.2018
1824
views
4
comments
2
Шарох
Level 12
Question about the task
ConsoleReader class
Java Syntax
,
Level 6
,
Lesson 8
Resolved
Hi Coders!
Where I missed return statement?
21.11.2020
517
views
5
comments
0
Seferi
Level 22
Question about the task
Replacing numbers
Java Core
,
Level 9
,
Lesson 11
Archived
Its working for me but for some reason doesnt validate
Help is appreciated
18.11.2020
439
views
2
comments
0
Andrew
Level 29
Seattle
Question about the task
Replacing numbers
Java Core
,
Level 9
,
Lesson 11
Archived
How did you do it?
I got the answer but I'm really curious how others went about the solution. I'm sure there are better/more succinct ways to solve this task. Specifically, how did you handle "12."? My crazy solution involves splitting each line into words. If the first character of a word is a number, then I split
28.02.2019
1806
views
3
comments
0
Denis
Level 22
Kharkiv
Question about the task
Replacing numbers
Java Core
,
Level 9
,
Lesson 11
Archived
Need help
Pls guys
29.06.2019
999
views
2
comments
0
Rishabh Joshi
Level 9
Indore
Under discussion
I got an error in this solution. Is something wrong here?
package com.codegym.task.task02.task0202; /* Where does a Person come from? */ public class Solution { public static void main(String[] args) { //write your code here Person person = new Person();; person.name = "Rishabh"; person.age = 22; person.weigh
20.11.2020
509
views
1
comment
0
Lex Icon
Level 17
Sofia
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Resolved
The code seems correct, but...
Any ideas why it doesn't work?
19.11.2020
483
views
3
comments
0
Jyothi
Level 20
Question about the task
Writing to a file from the console
Java Core
,
Level 3
,
Lesson 11
Resolved
Not passing write exit to file
Not passing write exit to file
13.01.2019
2117
views
10
comments
0
Michael
Level 10
Dresden
Question about the task
Words in reverse
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Again also in this task, the code produces the correct result but does not validate
Does anyone see, why the second and third condition do not validate? Thanks for your suggestions!
26.09.2020
570
views
4
comments
0
Cam
Level 15
Bogota
Question about the task
Functionality is not enough!
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
I can't verify the last task
after cracking my head open I finally managed a way out of the while loop, yet I'm still unable to "not lose the last number" and I don't understand why... please help
19.11.2020
406
views
2
comments
0
Show more
1
...
110
111
112
113
114
...
371
Please enable JavaScript to continue using this application.