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
Matjes
Level 12
Prague
Question about the task
Vowels and consonants
Java Syntax
,
Level 9
,
Lesson 11
Resolved
Please help
Could you please help me to understand the issue with my code? While running, it, it should print out only 2 lines, but for me it is printing out more lines. Thank you for your help!
12.03.2020
1028
views
4
comments
0
Matjes
Level 12
Prague
Question about the task
Vowels and consonants
Java Syntax
,
Level 9
,
Lesson 11
Resolved
Issue with the second line
Could please someone help me to fulfill the "The second line should contain only the consonants and punctuation marks from the input string, separated by a space." condition? Thx!
14.03.2020
772
views
4
comments
0
Denis
Level 25
Vancouver
Question about the task
Find a substring
Java Multithreading
,
Level 2
,
Lesson 5
Under discussion
Can't pass the verification
the task is really simple, the code works, but I cant'n understand what is the problem.
10.06.2019
1051
views
2
comments
0
Kent Hervey
Level 19
Question about the task
Let's make the code do something useful!
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
This very, very ugly bad code "works"
I get all green check marks, but I hacked my way in. How can I fix this so it actually looks like something import java.io.*; /* Let's make the code do something useful! */ public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = n
10.03.2020
888
views
4
comments
0
Sára Göblová
Level 26
Prague
Question about the task
Make a word chain
Java Multithreading
,
Level 2
,
Lesson 9
Resolved
I don't know what I'm missing
Seems to work
14.03.2020
998
views
3
comments
0
Anthony Chalk
Level 30
London
Question about the task
Shall we play?
Java Core
,
Level 6
,
Lesson 13
Resolved
Passed but not sure why
@Override public void run() { //write your code here while (!OnlineGame.isWinnerFound) { for (int i = 0; i < OnlineGame.actions.size(); i++) { try { System.out.println(this.getName() + ":" + Onlin
24.12.2019
1242
views
2
comments
1
Adam Maichrzik
Level 22
Katowice
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
I can't pass one task condition. Can you help me?
Like in the title :) Hope you can help me, thanks!
31.01.2020
841
views
5
comments
0
Ted404
Level 11
Dubai
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Can you help me with this? What is wrong with the code?
package com.codegym.task.task07.task0713; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /* Playing Javarella */ public class Solution { public static void main(String[] args) throws Exception { BufferedR
14.03.2020
951
views
2
comments
0
Fabian Andiel
Level 25
Vienna
Question about the task
IMF
Java Core
,
Level 7
,
Lesson 4
Under discussion
Please help point 4
Hi guys, why doesn't my synchronized block initialize the imf? What am I doing wrong? The synchronized block must initialize imf. Thanks in advance Fabian
20.02.2020
1011
views
2
comments
2
Goran
Level 41
Belgrade
Question about the task
Going national
Java Syntax
,
Level 8
,
Lesson 11
Archived
output is correct but still not passing
I am getting correct output but still not passing can understand why ?
08.03.2020
845
views
7
comments
0
Liliane Top
Level 17
Amsterdam
Question about the task
Nice weather
Java Core
,
Level 3
,
Lesson 11
Resolved
Couple of questions in regards to this task
1) Can someone please refer me to another article or maybe tutorial as I am very confused about the usage of the keyword 'this'. I do understand that we use it in the constructor of the class Today but why do we have to use it in the return value of the getWeatherType() 2) How are they related to ea
14.03.2020
839
views
2
comments
0
Goran
Level 41
Belgrade
Question about the task
Task about algorithms
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Getting correct output
I am getting correct output with methods that are available to use. And still failing with task. Does anyone see error here ?
13.03.2020
845
views
9
comments
0
Aleksander
Level 41
Question about the task
Tetris (part 12)
Java Collections
,
Level 2
,
Lesson 15
Under discussion
Problem with GamePieceFactory class
Hello, I have a quesition about a task which is probably bugged A part of the task says: I've written the following methods for you: a) createRandomGamePiece() in GamePieceFactory b) run() in Tetris, where I can see nothing more added to this class which I think is thing that needs to be fixed. M
13.03.2020
749
views
2
comments
0
Ted404
Level 11
Dubai
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
It is already working. I used the help option to check the right answer. But I still didn't understand why we needed to use for loop twice and how we compared the String according to its number of letters??? Can anyone explain please with the most easiest language as you can. I feel like dumb.
package com.codegym.task.task07.task0708; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /* Longest string */ public class Solution { private static List strings; public static void main(String[] args) throws Excep
13.03.2020
767
views
2
comments
0
Vishwambhar Awagan
Level 8
Pune
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Getting Array out of Bound if I run it
D
19.10.2018
1176
views
2
comments
0
Saheb Das
Level 8
Gurgaon
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Can't find issue
02.11.2019
814
views
2
comments
0
Log
Level 14
Nottingham
Question about the task
Set of cats
Java Syntax
,
Level 8
,
Lesson 11
Resolved
No requirements met, but it works perfectly?
Absolutely confused here - I'm even failing on conditions that are obviously met, such as "The program should display text on the screen." Am I coming at this from the completely wrong angle?
12.03.2020
840
views
6
comments
0
DEEPAK KUMAR
Level 24
Delhi
Question about the task
Find a substring
Java Multithreading
,
Level 2
,
Lesson 5
Under discussion
Output matches correctly bur result not verifying....
package com.codegym.task.task22.task2202; /* Find a substring */ public class Solution { public static void main(String[] args) { System.out.println(getPartOfString("CodeGym is the best place to learn Java.")); } public static String getPartOfString(String string) { i
11.02.2020
815
views
2
comments
0
Niranjan Soni
Level 15
Bangalore
Question about the task
Boss, something weird is happening
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
Last condition is not verifying.
What's wrong in my code? Last condition is not verifying.
26.09.2018
1681
views
9
comments
0
Earil
Level 25
Paris
Question about the task
Horse racing
Java Core
,
Level 6
,
Lesson 5
Archived
Need help understanding why one code works and the other doesn't !
Hello, I couldn't manage to find the solution, so I snooped a bit in the help section. I stumbled upon this working code : public static int calculateHorsesFinished(List<Horse> horses) throws InterruptedException { int finishedCount = 0; for (int i = 0;i< horses.size();i
24.06.2019
879
views
2
comments
0
Emil Valentin Toma
Level 6
Stockport
Question about the task
The basis of a wheel
Java Syntax
,
Level 5
,
Lesson 9
Resolved
Parameters not recognized
It won't accept the solution. It ran without errors. The three double parameters are there.
26.03.2019
1281
views
3
comments
0
Bogdan Iacob
Level 7
London
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Resolved
Not meeting odd requirement
Can anyone give me a hint? It is printing the correct numbers but it says odd is not calculated.
10.03.2020
745
views
3
comments
0
manoj deo
Level 3
Jakarta
Question about the task
Multiplication table
Java Syntax
,
Level 3
,
Lesson 6
Resolved
its not working
help
01.10.2018
1691
views
3
comments
0
dD
Level 17
Novi Sad
Question about the task
Sum of 5 numbers
Java Syntax
,
Level 3
,
Lesson 4
Resolved
Confused
Can someone please tell me why my solution is not good, when the output is right and there are no errors?
18.01.2019
2483
views
13
comments
2
Sanjay Chauhan
Level 28
Delhi
Question about the task
Five winners
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Failing in passing sort() method
Dear CodeGym Members, Good Morning. Will it be possible for you to have a look at my solution. I am failing at Sort() method although I am getting correct output in CodeGym as well as in the IntellJ. Thanks in advance for your valuable time and feedback. Have a nice weekend, Sanjay Chauhan
15.02.2020
1176
views
3
comments
1
Wojtek
Level 23
Solec-Zdroj
Question about the task
Advanced file search
Java Collections
,
Level 1
,
Lesson 2
Under discussion
How to resolve problem of a maximum or minimum file size (int)?
need hint
24.04.2019
1434
views
3
comments
0
Pablo Souza
Level 22
Brisbane
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
My doubled number keeps being multiplied by 10.
Hey folks, no idea what's going on, as my doubled number is always multiplied by 10.
12.03.2020
724
views
2
comments
0
Anthony Chalk
Level 30
London
Question about the task
Everything ingenious is simple!
Java Multithreading
,
Level 1
,
Lesson 2
Resolved
Please help
4th requirement isn't passing; but I'm sure it's correct
12.03.2020
739
views
2
comments
0
Ntuthuko Xaba
Level 18
Johannesburg
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Looking for some insight
Guys although I've solved the task I don't understand why the following solution doesn't work. I know I can't use a ' for loop ' to remove elements but this seems to make sense ,but it doesn't work. Iv'e tried googling with no satisfactory answers. Why doesn't this work : Iterator
12.03.2020
826
views
2
comments
0
Art
Level 13
Chisinau
Question about the task
Set of cats
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Correct output but won't go through
Hey everyone! Can you help me detect where's the problem? Thanks a bunch!
12.03.2020
639
views
1
comment
0
Show more
1
...
217
218
219
220
221
...
367
Please enable JavaScript to continue using this application.