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
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
1787
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
442
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
1867
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
587
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
599
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
2111
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...??
02.08.2018
2586
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
3628
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
587
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
506
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
477
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
498
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
467
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
562
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
2683
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
448
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
406
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
657
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
528
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
798
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
680
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
20.08.2018
2802
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
08.01.2021
488
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??
07.01.2021
329
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
04.06.2020
470
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
05.06.2020
567
views
0
comments
0
Isaque Silva
Level 3
São Paulo
Under discussion
What is bug ?
Hi I click in the "Verify" after resolution a at task don't working.
07.06.2020
481
views
0
comments
0
Edddieg
Level 15
Providence
Under discussion
please help
Write code that calculates how many seconds have passed since 3:00 PM when the clock says it's 3:30 PM. Display the result. Requirements: • The program should output text. • The displayed text should be a positive integer. • The displayed number must be a multiple of 60. • The displayed number must
07.06.2020
609
views
0
comments
0
Surya
Level 33
Newark
Question about the task
Introducing tags
Java Core
,
Level 9
,
Lesson 11
Under discussion
Could some one help me with this.
Works perfectly in my local machine. But fails validation here. Not sure why.
07.06.2020
538
views
0
comments
0
Jonas
Level 41
Vilnius
Question about the task
Again, POST, not GET
Java Collections
,
Level 10
,
Lesson 4
Under discussion
Please help
How to get connection's outputStream and why it says that I don't use setEntity method? (line 36)
08.06.2020
540
views
0
comments
0
Show more
1
...
97
98
99
100
101
...
371
Please enable JavaScript to continue using this application.