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
Jimbo
Level 20
Shenzhen
Under discussion
How to change the lesson language to others?
How to change the lesson language to others?
18.06.2020
626
views
0
comments
0
Angus McDonald
Level 5
Sydney
Question about the task
Snake (Part 20/20)
Games
,
Level 0
,
Lesson 1
Under discussion
Can I re-publish my game?
I've made some edits that helped it function better and would love to publish them.
18.06.2020
404
views
0
comments
0
Rafal Pawlowski
Level 15
Swaythling
Question about the task
Set of cats
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Why lambda does not work for this task?
Hello. I have solved this task but tried to complete it using lambda: cats.removeIf(cat -> cats.size() > 2); Unfortunately last condition was not met. Any idea why?
19.06.2020
368
views
0
comments
0
Bartek Józefiak
Level 34
Wrocław
Question about the task
CashMachine (part 14)
Java Collections
,
Level 9
,
Lesson 15
Under discussion
Someone know what is wrong here? I cant see my mistake :C
Only last condition not valid
21.06.2020
403
views
0
comments
0
Vo
Level 41
Sofia
Question about the task
Adding a file to an archive
Java Collections
,
Level 1
,
Lesson 6
Resolved
Things are getting out of control
I had several working solutions and none of them was accepted. My solution right now looks almost as the one in the answer. The only difference I see, is that I am using map while CG is using their own object. So, what is wrong here? Is my solution wrong or it just does not follow the standards of C
11.01.2021
337
views
0
comments
0
Deborah Wenrich
Level 7
Pembroke Pines
Question about the task
Time conversion
Java Syntax
,
Level 3
,
Lesson 5
Under discussion
Can someone check my code?
I have been going around in circles. I'm sure the problem is simple to somebody. Would someone check my code?
15.11.2019
931
views
4
comments
0
J_DJ
Level 4
Saint Louis
Question about the task
Time conversion
Java Syntax
,
Level 3
,
Lesson 5
Under discussion
I typed the return statment but why does it not see the return? it says illegal start type
05.05.2020
592
views
4
comments
0
Usman Jutt
Level 4
Pir Mahal
Question about the task
Time conversion
Java Syntax
,
Level 3
,
Lesson 5
Resolved
help me plz
i tried
27.09.2018
2733
views
6
comments
0
amj
Level 7
Imphal
Question about the task
Time conversion
Java Syntax
,
Level 3
,
Lesson 5
Under discussion
I could not find any solution. The condition tells me to display the result in main method. I did it but the condition tells me wrong.
please help me to solve this problem
11.07.2020
480
views
4
comments
0
Nikash Sahu
Level 3
Bangalore
Question about the task
Printing strings
Java Syntax
,
Level 3
,
Lesson 5
Under discussion
can any1 find out where i have made mistake??
public class Solution { public static void main(String[] args) { writeToConsole("Hello, World!"); } public static void writeToConsole(String s) { //write your code here String s1 ="printing:" +s; System.out.print(s1); } }
05.11.2018
1610
views
4
comments
0
Andrei
Level 41
Question about the task
CRUD 2
Java Core
,
Level 7
,
Lesson 10
Resolved
Difference between 2 block of code
Hello, I don't understand what is the difference between this block of code: case "-i": synchronized (allPeople) { for (int i = 0; i < args.length-1; i++) { person = allPeople.get(i); String newFormatBirthdate =
08.01.2021
342
views
4
comments
0
Aryan Yadav
Level 4
bikaner
Question about the task
Fill a pool with water
Java Syntax
,
Level 3
,
Lesson 5
Under discussion
help
how to solve his problem
03.09.2018
1709
views
4
comments
0
Barsha
Level 4
Eluru
Question about the task
Product of 10 numbers
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
Failing the last task condition: The number does not match the task conditions
public class Solution { public static void main(String[] args) { //write your code here int z=0; for(int i=0;i<=10;i++) { z++; z*=i; } System.out.println(z); } }
14.07.2020
498
views
4
comments
0
Liliane Top
Level 24
Amsterdam
Question about the task
Tracking changes
Java Core
,
Level 9
,
Lesson 11
Resolved
Why is this wrong?
The feedback I get from. my mentor doesn't make sense...
10.01.2021
449
views
8
comments
0
Manimegalai
Level 3
Kanchipuram
Question about the task
Task with percentages
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
Whats wrong in my code???
public class Solution { public static double addTenPercent(int i) { double ii=i+0.9; return ii; } public static void main(String[] args) { System.out.println(addTenPercent(9)); } }
13.09.2018
1820
views
5
comments
0
Sawankumar
Level 4
Question about the task
Task with percentages
Java Syntax
,
Level 3
,
Lesson 3
Resolved
please help me to resolve this problem..
I have run this program in run tab.. same o/p is generated from my program.. till error it is displaying Why...??
02.08.2018
2416
views
7
comments
0
Shahanshah Alam
Level 9
Mohali
Question about the task
Setting the number of cats
Java Syntax
,
Level 4
,
Lesson 2
Resolved
help please
i dont understand how resolve last condition
15.09.2018
3443
views
6
comments
0
remote87
Level 18
Sofia
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Resolved
Why is this not passing the last condition???
I tried so many times with different inputs, every time it's right, but I can't pass the last condition. Any advice? I tried a different approach :)
10.01.2021
482
views
2
comments
0
Liliane Top
Level 24
Amsterdam
Question about the task
Counting words
Java Core
,
Level 9
,
Lesson 5
Resolved
What is the difference in reader.readLine() and reader.read()
It seems that when you use readLine() you do not get the same as with read(). How is this possible? For example BufferedReader reader2 = new BufferedReader(new FileReader(fileName)); String line = reader2.readLine(); or BufferedReader reader2 = new BufferedReader(new FileReader(fileName)); StringB
09.01.2021
388
views
10
comments
0
Oliver Heintz
Level 18
Mustang
Question about the task
OOP: Books
Java Core
,
Level 5
,
Lesson 2
Under discussion
Output is correct, failing 4 requirements still
I struggled to get to this point, and it felt so good to have done it without needing help, but now, when it looks like everything is being done correctly, I can't figure it out.
09.01.2021
417
views
5
comments
0
Liliane Top
Level 24
Amsterdam
Question about the task
Counting words
Java Core
,
Level 9
,
Lesson 5
Resolved
What is wrong with my code?
it reads words separated by punctuation marks. Hence the regex \\p{Punct} should do the trick. But I fail the test.
09.01.2021
399
views
6
comments
0
Cristian
Level 13
Ploiesti
Question about the task
Vowels and consonants
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
I can not finish this task. Please, help me! Thank you so much!
package com.codegym.task.task09.task0923; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /* Vowels and consonants */ public class Solution { //public static char[] vowels = new char[]{'a', 'e', 'i', 'o', 'u'}; public
09.01.2021
402
views
1
comment
0
Liliane Top
Level 24
Amsterdam
Question about the task
Even characters
Java Core
,
Level 9
,
Lesson 5
Resolved
I do not understand how the FileReader and Filewriter return an int but how to read back the characters?
I'm trying to read text from a file, copy it to another file and read it back. All I get is strange looking characters. I do not understand how the FileReader and Writer work. Can someone explain this to me please? In the books it says that FileReader and FileWriter reads and write characters but w
09.01.2021
449
views
6
comments
0
Sindhura
Level 15
Delhi
Question about the task
Visitors
Java Core
,
Level 2
,
Lesson 12
Under discussion
using instanceof and it was correct for all except lion and Tiger.Please help
package com.codegym.task.task12.task1225; /* Visitors */ public class Solution { public static void main(String[] args) { System.out.println(getObjectType(new Cat())); System.out.println(getObjectType(new Tiger())); System.out.println(getObjectType(new Lion()));
11.10.2018
2417
views
12
comments
0
LennyMan
Level 25
Lucca
Resolved
The main method's first parameter is
In the last few task i seen often this requirement: The main method's first parameter is ..... I seen in some solution that corrispond at args[0], that should be the same array args that we can find in the main signature. Someone can please explain me how works with that and why i should use it
09.01.2021
381
views
2
comments
0
Dmitri
Level 22
Seversk
Question about the task
Transactionality
Java Core
,
Level 7
,
Lesson 10
Resolved
The code is quite obvious and works ok.
The code is quite obvious and works ok. Why it does not pass?
09.01.2021
315
views
2
comments
0
Liliane Top
Level 24
Amsterdam
Question about the task
Adapting multiple interfaces
Java Core
,
Level 9
,
Lesson 3
Resolved
What is wrong?
I might not understand the requirements correctly but I understand that the phone number must be returned in the following format: // For example: +1(099)123-45-67 What am I missing?
09.01.2021
486
views
2
comments
0
June Sung Park
Level 41
Yangp'yong
Question about the task
Again, POST, not GET
Java Collections
,
Level 10
,
Lesson 4
Under discussion
Can't pass the third condition
Please help.
10.09.2020
466
views
1
comment
2
crispr_cast9
Level 9
Saint Petersburg
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
Hello,everyone. Can somebody help me?
🦝 com/codegym/task/task03/task0318/Solution.java:40: error: cannot find symbol public static String getString()throws MyException{ ^ symbol: class MyException location: class com.codegym.task.task03.task0318.Solution.InString
08.01.2021
579
views
5
comments
0
Gellert Varga
Level 23
Szekesfehervar
Resolved
Question about inherited private variable
public static class DomesticAnimal { private int weight; private int age; public int getWeight() { return this.weight; } } public static class Chicken extends DomesticAnimal { public int wings; public void
08.01.2021
498
views
4
comments
0
Show more
1
...
91
92
93
94
95
...
366
Please enable JavaScript to continue using this application.