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
Gytis Laukaitis
Level 18
Marijampole
Question about the task
Maximum in an array
Java Syntax
,
Level 7
,
Lesson 4
Resolved
How to pass test 3 if everything seems fine ?
How to pass this if output seems ok ?
8/17/20
1004
views
4
comments
1
Jake White
Level 4
Kalamazoo
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
Why does it display four of the same string in a row?
Java is easy to learn! Java is easy to learn! Java is easy to learn! Java is easy to learn! Java is object oriented ... ... ... is it because the method is calling the first string as the first argument then printing 4 times then grabbing the next argument printing 4 times then grabbing the last ar
10/27/20
577
views
3
comments
0
AlfredW
Level 23
Denver
Question about the task
John Johnson
Java Core
,
Level 9
,
Lesson 11
Resolved
I got correct result But it won't Verify.
So I have met all of the requirements. But I keep getting this verification notification: Be sure that the PEOPLE field's type argument is . But my PEOPLE is Person, so I don't get what the issue is. Then it also says: Be sure that names are correctly added from the file to the PEOPLE list. The pro
10/27/20
487
views
2
comments
0
Tony Roy
Level 41
Victorville
Question about the task
Bug fix
Java Collections
,
Level 7
,
Lesson 6
Resolved
This "easy" task has me stumped!
Doesn't iterate in expected order. My first thought was some version of LinkedList (as below). This would give the expected output if lines 22, 23 were exchanged. After that, I think I've looked at all the implementations of map. . . Thanks for any help!!!
6/3/20
534
views
1
comment
2
Thomas Rogge
Level 12
Ronse
Question about the task
Sum of the digits of a three-digit number
Java Syntax
,
Level 3
,
Lesson 12
Resolved
need help
Hello, I implemented this solution in Intelij and it seems to work but i doesn't validate, some ideas? Thank you!
10/27/20
632
views
3
comments
0
Noob_Coder
Level 22
Springfield
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Resolved
Code looks pretty good but the result is infinite repeated
Don't know why it prints infnite second array.Code is beautiful
10/26/20
702
views
4
comments
0
Michael Buckley
Level 4
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
I don't fully understand where i am going wrong.
Please can somone help me ?
9/29/20
697
views
5
comments
0
Torben
Level 26
Halle (Saale)
Question about the task
Most frequent bytes
Java Core
,
Level 8
,
Lesson 3
Under discussion
I don't know, can someone help me please
When testing everything works
10/27/20
512
views
2
comments
0
Maxine Hammett
Level 19
San Diego
Question about the task
Player and Dancer
Java Core
,
Level 4
,
Lesson 4
Under discussion
Need explanation on why this code works
I'm really confused over the code ((Player) person).play();. Why do we put Player person in parenthesis? if(person instanceof Player){ ((Player) person).play(); }else if(person instanceof Dancer){ ((Dancer) person).dance(); }
7/31/20
1221
views
6
comments
3
Ryan Woodward
Level 3
Vancouver
Question about the task
Minesweeper (Part 7/16)
Games
,
Level 0
,
Lesson 0
Under discussion
Runs in intellij, can't pass the verification though
Does anyone see the error in my code. When I run this in IntelliJ it compiles and runs as it should. Thanks in advance :)
10/26/20
566
views
1
comment
0
Jhoal
Level 22
Berlín
Question about the task
Who called me?
Java Syntax
,
Level 9
,
Lesson 2
Resolved
why index 2?
can someone explain me why do always we need to reference the index 2 in order to get the solution? Thanks :)
10/27/20
883
views
2
comments
0
Adarsh bangera
Level 3
Question about the task
Escaping characters
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
what is wrong i am not getting what's wrong
🤔
10/26/20
537
views
2
comments
0
Jonas
Level 41
Vilnius
Question about the task
Circular iterator
Java Collections
,
Level 7
,
Lesson 4
Resolved
Please help with the remove method
Don't get it
3/26/20
1379
views
1
comment
2
Andrei
Level 26
Liverpool
Question about the task
Work up a sweat!
Java Multithreading
,
Level 5
,
Lesson 7
Resolved
what about buffer?
I have passed task, but I did nothing in run method, which has comment "// Process the buffer here". Dont we need to do something there?
9/30/20
601
views
1
comment
0
Bill Wu
Level 29
Wellington
Question about the task
Make a word chain
Java Multithreading
,
Level 2
,
Lesson 9
Resolved
Not sure about the requirement
My code works fine with the example, but fails the verification. I'm wondering about this: All words passed to the getLine method must be included in the resulting string, if possible. if not possible (a word not matching the condition) how should I deal with it? I deleted those ones in the result.
4/7/19
2257
views
26
comments
0
AlfredW
Level 23
Denver
Question about the task
Tracking changes
Java Core
,
Level 9
,
Lesson 11
Resolved
Just Understanding what they are looking for, Is this it?
I think this is what they are looking for. Obviously the result would be in the proper format...
10/26/20
565
views
3
comments
0
Joshua Tyrrell
Level 7
Poughkeepsie
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
How do I display the max of entered numbers? That's the only condition I'm not passing.
package com.codegym.task.task05.task0532; import java.io.*; /* Task about algorithms */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String a = reader.readLine(
10/21/20
654
views
2
comments
0
lukesky
Level 11
Zurich
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Resolved
Code works but task not verified Question
My code does exactly as requested. Any suggestions?
10/21/20
925
views
3
comments
0
Fabian Andiel
Level 9
Vienna
Question about the task
Find a substring
Java Multithreading
,
Level 2
,
Lesson 5
Under discussion
Don`t understand why the last condition won`t verify
Please help me, i tried it with string.length()-1 and string.length() and I doesn`t work both ways. Greetings Fabian
10/26/20
489
views
1
comment
0
Dmitri
Level 22
Seversk
Question about the task
HashSet of plants
Java Syntax
,
Level 8
,
Lesson 3
Resolved
I initialized the set in slightly different way.
I initialized the set in slightly different way. What is wrong with the validator?
10/25/20
799
views
3
comments
0
Nicolas Huet
Level 41
Provins
Question about the task
Tracking changes
Java Core
,
Level 9
,
Lesson 11
Under discussion
I don't see what to do next :[ it SEEMS to be working fine
As said int the title, when I test with my tests files it seems to be working just fine but obviously I missed something but I don't see it... Can someone help me?
7/2/19
1446
views
2
comments
0
Dmitrii
Level 38
Saint Petersburg
Question about the task
Archiver (part 12)
Java Multithreading
,
Level 7
,
Lesson 15
Resolved
FileProperties
Tried different ways to format numbers, either missing something or didn't find the right one
6/5/19
1745
views
3
comments
0
Niklas Braun
Level 33
Freiburg
Question about the task
Archiver (part 12)
Java Multithreading
,
Level 7
,
Lesson 15
Resolved
Is this a bug?
I have tried to format it in so many different ways but it is still not working.
6/23/20
670
views
1
comment
0
Andrei
Level 41
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Resolved
I get the " Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 5 out of bounds for length 5 " error - pls help?
public class Solution { private static List strings; public static void main(String[] args) throws Exception { //write your code here strings = new ArrayList(); for (int i = 0; i < 5; i++){ BufferedReader reader = new BufferedReader(new InputStreamRe
10/23/20
1351
views
4
comments
0
raulGLD
Level 8
Cluj-Napoca
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Resolved
Output is correct, why is it not working?
Hey, I am not getting the "The program should display the maximum of the N entered numbers." checked. Here is my code, the output is correct, I've tried with N being 0 or lower and I don't print anything, which is correct, then I've tested with N being 1 or whatever and added even 0 and I still get
10/22/20
929
views
3
comments
0
Dinesh
Level 7
Delhi
Under discussion
I am not getting proper output
class Mortgage{ public static void main(String[]args){ int rateOfInterest = 6; float monthlyRoi = (rateOfInterest/100)*12; System.out.print("Rate of Interest : "+ monthlyRoi); } }
10/25/20
586
views
3
comments
0
Cristian
Level 13
Ploiesti
Question about the task
Sum of the digits of a three-digit number
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
The output is 0 instead of 15. Why? Thank you so much!
public class Solution { public static void main(String[] args) { System.out.println(sumDigitsInNumber(546)); } public static int sumDigitsInNumber(int number) { //write your code here int sum = 0; while (number > 0) { sum = sum + number % 1
10/25/20
810
views
2
comments
0
Goran
Level 41
Belgrade
Question about the task
Words with numbers
Java Core
,
Level 9
,
Lesson 11
Resolved
Going mad here
I am getting correct output but still not passing! And as hint I am getting this : Be sure that your solution uses FileWriter. Am I missing something ?
6/21/20
749
views
6
comments
0
Anitamalina
Level 18
København
Question about the task
Positive number
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
hm.. can't figure it out
I have tried several input and get right results.. can someone "see" what's wrong? :-)
10/25/20
540
views
2
comments
0
Anitamalina
Level 18
København
Question about the task
Describing numbers
Java Syntax
,
Level 4
,
Lesson 7
Archived
odd three digits number doesn't work :S
I don't understand why this fails ??
10/25/20
653
views
2
comments
0
Show more
1
...
122
123
124
125
126
...
374
Please enable JavaScript to continue using this application.