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
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
11/22/20
813
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 ?
???
9/5/19
1486
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()
8/14/19
1172
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?
11/19/20
709
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...
11/23/20
614
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!
11/18/20
758
views
3
comments
0
Rishabh Joshi
Level 10
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
11/21/20
535
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." ??
1/30/19
2052
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
11/22/20
710
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.
11/21/20
698
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;
11/21/20
459
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?
10/19/20
551
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 {
11/4/19
1197
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
10/28/19
2077
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.
11/21/20
679
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?
10/29/18
2285
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?
11/30/18
1985
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?
11/21/20
659
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
11/18/20
557
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
2/28/19
2017
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
6/29/19
1178
views
2
comments
0
Rishabh Joshi
Level 10
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
11/20/20
622
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?
11/19/20
595
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
1/13/19
2318
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!
9/26/20
685
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
11/19/20
522
views
2
comments
0
Rajni Agrawal
Level 12
Bangalore
Question about the task
Let's make the code do something useful!
Java Syntax
,
Level 9
,
Lesson 11
Resolved
Validation 3 is not successful.
Working fine in both conditions but validation not going thru.
11/19/20
560
views
4
comments
0
Шарох
Level 12
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Resolved
Hi Coders!
What should I do ? It's hard .
11/18/20
716
views
4
comments
0
Himanshu Pal
Level 3
Delhi
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Resolved
don't know where is mistake
package com.codegym.task.task02.task0204; /* Family relations */ public class Solution { public static void main(String[] args) { Man men = new Man(); Woman woman = new Woman(); man.wife = woman; woman.husband = man;} //man.wife=woman; woman.husband = man;
8/31/18
2727
views
23
comments
0
Albert
Level 6
Hong Kong
Question about the task
Product of 10 numbers
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
Is there anyway that I could further simplify the code? Thanks
public class Solution { public static void main(String[] args) { //write your code here int d = 1; for (int i=1; i<=9; i++){ d= d*(i+1); } System.out.println(d); } }
11/19/20
539
views
1
comment
0
Show more
1
...
114
115
116
117
118
...
374
Please enable JavaScript to continue using this application.