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
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
364
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
463
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
1072
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
1937
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
593
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
2184
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
1879
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
549
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
472
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
1868
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
1058
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
535
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
514
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
2177
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
602
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
438
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.
19.11.2020
485
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 .
18.11.2020
634
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;
31.08.2018
2579
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); } }
19.11.2020
449
views
1
comment
0
Maryem Vickers
Level 7
HT...
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
Hey again, I tried to initialize, but-- WHY WON'T IT WORK...?!
I tried to initialize... but look...!!!?!?!?!!!!!!!!!!
18.11.2020
396
views
3
comments
0
Robert
Level 1
Lombard
Question about the task
Word search
Java Core
,
Level 10
,
Lesson 10
Resolved
Same problem as everybody else...
I have gone through and tried all the different matrix options that other people have suggested. Heck, I've even tried with an unbalanced matrix and that seems to work when I run it, but I still can't seem to pass the final requirement. Any ideas on what is wrong?
13.11.2020
406
views
2
comments
0
Seferi
Level 22
Question about the task
John Johnson
Java Core
,
Level 9
,
Lesson 11
Resolved
I can't seem to find the right regex for the hypen..
I tried so many of them. A little help is appreciated.. Thanks..
17.11.2020
675
views
11
comments
0
JT
Level 6
Baton Rouge
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
How is this not right?
I'm confused. I get the correct output but it doesn't pass the test. Can anyone help me with this?
18.11.2020
632
views
2
comments
0
chinchillo
Level 6
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Any idea why this won't work?
Can't finde the issue.
17.11.2019
1767
views
5
comments
0
Gil Allen
Level 8
Johnstown
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Order of Declarations?
No one has said WHY it is so important to order the declarations just so. I don't see why it has anything to do with the outcome - does the memory assign memory locations in the order they come in? I tried a couple different orders of declarations and got the same result each time ( which is corre
10.08.2020
693
views
3
comments
0
Yash
Level 15
Sugar Hill
Question about the task
Four mistakes
Java Core
,
Level 3
,
Lesson 2
Under discussion
com.codegym.task.task13.task1305.Solution.Dream is abstract; cannot be instantiated. file com/codegym/task/task13/task1305/Solution.java, line 12, position 165
cannot be instantiated because it is abstract but it's not abstract. public class Solution { public static void main(String[] args) { System.out.println(new Dream().HOBBY.toString()); System.out.println(new Hobby().toString()); } interface Desire { } public
03.11.2019
1464
views
2
comments
0
Noob_Coder
Level 22
Springfield
Question about the task
Make a family
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
no idea how to continue
I don't know how to continue very well,very appreciate if someone can point out what's wrong and how the code works especially how to use Human constructor and to string method to create the required variables.
17.11.2020
780
views
1
comment
0
Premachandran
Level 35
Ernakulam
Question about the task
Archiver (part 1)
Java Multithreading
,
Level 7
,
Lesson 15
Under discussion
Where am I wrong?
I tried different ways but one condition fails.
07.02.2020
1131
views
2
comments
2
Noob_Coder
Level 22
Springfield
Question about the task
Month number
Java Syntax
,
Level 8
,
Lesson 11
Resolved
What's wrong?
dk what's wrong to this simple task...
17.11.2020
539
views
2
comments
0
Show more
1
...
112
113
114
115
116
...
372
Please enable JavaScript to continue using this application.