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
Zach
Level 22
Fort Collins
Question about the task
OOP: Animal inheritance
Java Core
,
Level 5
,
Lesson 2
Under discussion
method does not override or implement a method from a supertype - for Override Error
Why am I getting this error?? Thanks package com.codegym.task.task15.task1502; /* OOP: Animal inheritance */ public class Solution { // Add the Goose and Dragon classes here public static class Goose extends SmallAnimal { @Override public static
08.03.2021
526
views
3
comments
0
Nobody
Level 37
Seattle
Question about the task
Make a word chain
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
Can not pass the last conditions
Everything seems to be ok but don't know why i'm still fail
29.05.2019
1713
views
3
comments
0
Vinay
Level 11
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Please help!
After struggling for 2 days I could not find the solution. But what I got is that we need to use for (String key : copy.keySet()) I am still not used to enhanced for loop. Can someone please convert the enhanced for loop to longer version of for loop? And, little explanation will also help. Tha
27.01.2021
559
views
3
comments
0
Andrew
Level 29
Seattle
Question about the task
Rectangle algorithms
Java Core
,
Level 10
,
Lesson 10
Resolved
I don't understand this task at all.
Could someone explain please?
18.03.2019
2239
views
9
comments
2
Khurram
Level 16
Lahore
Question about the task
Fill a pool with water
Java Syntax
,
Level 3
,
Lesson 5
Resolved
stuck
why doesnt this pass the test? even tried return (a*b*c);
03.09.2018
2972
views
7
comments
0
Banak
Level 29
Saint-Gratien
Question about the task
Inverted words
Java Multithreading
,
Level 2
,
Lesson 9
Resolved
Analysis of my code
Could someone please explain to me what is wrong with my code????
04.03.2021
852
views
7
comments
0
Maxim Raitin
Level 20
Tomsk
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Why 2 last requirerements don't met
I think everything is fine
07.03.2021
586
views
4
comments
0
Libby
Level 20
Question about the task
Mastering the static block
Java Core
,
Level 5
,
Lesson 12
Resolved
What's wrong?
com/codegym/task/task15/task1529/Helicopter.java:4: error: com.codegym.task.task15.task1529.Helicopter is not abstract and does not override abstract method fly() in com.codegym.task.task15.task1529.CanFly public class Helicopter implements CanFly { ^ com/codegym/task/task15/task1529/Plane.ja
07.03.2021
570
views
2
comments
0
Anthony Chalk
Level 30
London
Question about the task
Read online about the median of a sample
Java Multithreading
,
Level 6
,
Lesson 2
Resolved
Matches expected output
Tried using some custom input, it always returns the correct output
08.03.2021
433
views
3
comments
0
Jan Elšík
Level 41
Prague
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Resolved
I need help with this
Can anyone please explain, what I am doing wrong? Thanks!
09.08.2020
700
views
3
comments
0
Julien
Level 15
Paris
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Feel a little bit frustrated, "Imposter Syndrome"
Hello guys, So here we are, on one hand Iterators. I can easily say to my mind that an iterator is by definition something usefull for Maps ,Lists and Sets. And i also know that we can't modify a Map or a Set during a normal for each loop. But that's all i know, so i go on the Java Doc On the othe
14.05.2019
2658
views
5
comments
9
WIDMO
Level 25
Gdańsk
Question about the task
Sokoban (part 16)
Java Collections
,
Level 10
,
Lesson 15
Under discussion
Can anybody tell me what's wrong? I guess it must be silly mistake because everything works perfectly for me.
The recommendation from mentor is: "Be sure that the getLevel method returns the correct game objects for level 60." , but I checked that. Maybe someone can give me a clue. Thanks in advance for your effort.
23.12.2020
534
views
1
comment
0
Mina Nabil
Level 17
Sydney
Question about the task
Static modifiers: part 1
Java Core
,
Level 5
,
Lesson 9
Under discussion
A question
Hi, just keeping aside the solution, why I am not allowed to add entries for the labels hashmap inside the solution class itself ?
07.03.2021
519
views
1
comment
0
Gellert Varga
Level 23
Szekesfehervar
Resolved
About null-reference
From https://codegym.cc/quests/lectures/questcore.level05.lecture03 : "In the second case, there won't be any compilation errors and void print(String s) will be called, which is somewhat not obvious: public class Cat { public static void print(Object o) { System.out.println(o);
07.03.2021
665
views
4
comments
0
Vincenzo Seggio
Level 28
Question about the task
MVC (part 8)
Java Multithreading
,
Level 4
,
Lesson 14
Resolved
Where ist the mistake?
I do not understand what the validator means with the recommendation The main method's output must include the deleted user (user id 124L) in the "All deleted users" section. Could you help me please?
07.03.2021
612
views
1
comment
0
John
Level 17
Mansfield
Question about the task
Drawing a rectangle
Java Syntax
,
Level 4
,
Lesson 13
Under discussion
(try this out this is working but not accepted in this exercise idk why)
import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader br = new BufferedReader (new InputStreamReader (System.in)); int m = Integer.parseInt(br.readLine()); int n = Integer.parseInt(br.readLine()); for(
07.03.2021
544
views
1
comment
0
Alexandre Lalancette
Level 41
Quebec
Question about the task
Caching
Java Collections
,
Level 4
,
Lesson 8
Under discussion
Anyone solved this?
I really don't understand what needs to be done here. Did someone successfully solved this?
05.02.2020
1262
views
4
comments
2
Mina Nabil
Level 17
Sydney
Question about the task
Robot wars
Java Core
,
Level 3
,
Lesson 11
Resolved
Hi, whats wrong with my code? please help
Hi, whats wrong with my code? please help
04.03.2021
540
views
5
comments
0
Max
Level 5
Stamford
Question about the task
Drawing a rectangle
Java Syntax
,
Level 4
,
Lesson 13
Resolved
I need help to find the error
I got the characters printed out but not the new line. Need help
13.02.2021
555
views
2
comments
0
Mina Nabil
Level 17
Sydney
Question about the task
Fix four mistakes
Java Core
,
Level 4
,
Lesson 8
Under discussion
Quick question please answer
Just a quick question, when we call the initList(list) on the list parameter, that means that we change the list permanently right ? as when I debug the program, printListValues(list); and processCastObjects(list); get null list as if the initList did not affect the list variable public static void
05.03.2021
694
views
6
comments
0
Anatoly
Level 17
Question about the task
Countdown at the races
Java Core
,
Level 6
,
Lesson 10
Under discussion
Does anyone can tell me what is wrong with that?
Everything is working with 4 and with 3. But Validator doesn't want to accepting it... is anything wrong with that? Any explanation will help.. package com.codegym.task.task16.task1617; /* Countdown at the races */ public class Solution { public static volatile int numSeconds = 3; publ
05.03.2021
414
views
2
comments
0
Liliane Top
Level 24
Amsterdam
Question about the task
Reading and writing to a file: CodeGym
Java Core
,
Level 10
,
Lesson 2
Under discussion
Miracle!! I pass the test but the console shows an error.
1)Something is wrong with my code as it doesn't always save the users to the file. 2) Sometimes it gives an illegalArgumentException due to the new Date(). 3) It also doesn't work when I try to store all users in the StringBuilder and then write it to the file. This part is also confusing. How is th
15.01.2021
585
views
0
comments
0
WIDMO
Level 25
Gdańsk
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Under discussion
Anyone can help?
After few hours on that I have to pass. Can anybody tell me what's wrong with my solution, apart that it simply do not pass? Please. Thanks in advance.
23.12.2020
572
views
0
comments
0
Josephine
Level 26
Normal
Question about the task
AutoCloseable and try-with-resources
Java Multithreading
,
Level 1
,
Lesson 10
Resolved
Can someone explain what is this error? I am stuck
om/codegym/task/task21/task2112/Solution.java:6: error: incompatible types: try-with-resources not applicable to variable type try (FakeConnection fakeConnection = dbConnectionManager.getFakeConnection()) ^ (com.codegym.task.task21.task2112.FakeConnection cann
04.03.2021
1432
views
2
comments
0
Oliver Heintz
Level 18
Mustang
Question about the task
Transactionality
Java Core
,
Level 7
,
Lesson 10
Resolved
I've never really understood reading files from console
I assume I am failing for writing my own shoddy method (fileAdd) and trying to be clever. But I'm not sure why it doesn't work. And my brain has been pummeled by these tasks already, so I'm gonna need some help on this one.
01.03.2021
551
views
10
comments
0
Michał
Level 41
Krakow
Question about the task
Inverted words
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
Where's a mistake?
Hi, could anyone please help me with that? I don't know what is wrong with my solution. It passes all my examples. Though, I clearly miss something.
18.09.2020
472
views
3
comments
0
Johannes
Level 27
Centurion, Pretoria
Question about the task
Inverted words
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
I give up.
I have spent literally the WHOLE day on this task. And still cannot pass. How should I tell the "list" that it should allow another occurrence of the same words ? Moving on. No need to frustrate myself further with this task.
28.04.2020
941
views
1
comment
0
Andrei
Level 41
Question about the task
Deserialization
Java Core
,
Level 10
,
Lesson 10
Resolved
Please break down this code
Three of the requirements are: The getOriginalObject method must return the A object received from the ObjectInputStream. The getOriginalObject method must return null if an A object is not received during deserialization attempts. The getOriginalObject method must return null if an exception is th
26.02.2021
785
views
7
comments
0
Zach
Level 22
Fort Collins
Question about the task
Player and Dancer
Java Core
,
Level 4
,
Lesson 4
Under discussion
Static variables are so confusing...
I am so confused about static variables and why this doesn't work. If someone could explain it to me I would be super grateful. Thanks. package com.codegym.task.task14.task1407; import java.io.BufferedReader; import java.io.InputStreamReader; /* Player and Dancer */ public class Solution {
02.03.2021
812
views
2
comments
0
Aleksandr
Level 22
Moscow
Question about the task
John Johnson
Java Core
,
Level 9
,
Lesson 11
Resolved
Help please
I don`t know what is wrong, i tried to crash it with space before name, after name, different dates, but all works fine and not pass the name test. Can someone help please, with figuer out what i miss?
05.03.2021
516
views
1
comment
0
Show more
1
...
81
82
83
84
85
...
372
Please enable JavaScript to continue using this application.