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
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?
11/15/19
1163
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
5/5/20
805
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
9/27/18
3020
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
7/11/20
664
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); } }
11/5/18
1998
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 =
1/8/21
582
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
9/3/18
2001
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); } }
7/14/20
716
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...
1/10/21
770
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)); } }
9/13/18
2335
views
5
comments
0
Sawankumar
Level 1
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...??
8/2/18
2747
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
9/15/18
3798
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 :)
1/10/21
720
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
1/9/21
647
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.
1/9/21
589
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.
1/9/21
611
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
1/9/21
589
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
1/9/21
713
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()));
10/11/18
3018
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
1/9/21
560
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?
1/9/21
520
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?
1/9/21
801
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.
9/10/20
637
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
1/8/21
1007
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
1/8/21
844
views
4
comments
0
Nandeesh S Bagewadi
Level 2
Bangalore
Question about the task
Part of a calculator
Java Syntax
,
Level 2
,
Lesson 2
Resolved
Answer plz
Answer plz
8/20/18
3017
views
12
comments
1
LennyMan
Level 25
Lucca
Question about the task
Counting words
Java Core
,
Level 9
,
Lesson 5
Resolved
The output its correct but dont pass the validation
The output its correct but dont pass the validation This is my .txt file where i tested it: ____________________________________________________________________ world Text in file world aaaa bbb world world ciao.world ______________________________________________________________________ The ou
1/8/21
597
views
2
comments
0
Kent Hervey
Level 19
Question about the task
Sorting even numbers from a file
Java Core
,
Level 3
,
Lesson 11
Under discussion
Is Java 8 Streams allowed?
Just starting. Although a challenge for me, I want to consider using Java 8 feature such as streams. I wonder if that is allowed??
1/7/21
439
views
1
comment
0
Jake Jacobs
Level 2
Almaty
Under discussion
Where I get wrong?
package readability; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String word = sc.nextLine(); String[] nums = word.split(" "); //System.out.println(nums.length); // tot
6/4/20
603
views
1
comment
0
Mahmud Foysal
Level 1
Dhaka
Under discussion
Language Settings
Can I change my language settings again? If yes, then how? please explain
6/5/20
674
views
0
comments
0
Show more
1
...
100
101
102
103
104
...
374
Please enable JavaScript to continue using this application.