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
Naughtless
Level 41
Olympus Mons
Resolved
Use Interface or Class when instancing? Why?
As my very small and insignificant library of knowledge on Java grows, I've come across a question: Why is it that sometimes people instance by interface like : List<Object> someList = new ArrayList<>(); /* OR */ Animal minnie = new Cat(); instead of just instancing by the class itse
02.06.2021
631
views
13
comments
2
Zach
Level 22
Fort Collins
Question about the task
Moon Lander (Part 4/23)
Games
,
Level 0
,
Lesson 4
Under discussion
The last task is not passing?
package com.codegym.games.moonlander; public class Rocket extends GameObject { public Rocket (double x, double y, int[][] matrix) { super(x, y, ShapeMatrix.ROCKET); } }
22.05.2021
564
views
1
comment
0
Vidya Pb
Level 5
Ernakulam
Question about the task
Snake (Part 5/20)
Games
,
Level 0
,
Lesson 1
Under discussion
Why is this error coming? What am I doing wrong with the ArrayList?
cannot find symbol symbol: class List location: class com.codegym.games.snake.part05.Snake. file com/codegym/games/snake/part05/Snake.java, line 6, position 100 GameObject.java Apple.java Snake.java SnakeGame.java
01.11.2019
1716
views
2
comments
1
Raimundo Hernandez
Level 2
Under discussion
why the level 2 tasks do not appear?
I get the level 2, but the tasks do not appear, what could be the error?
04.06.2021
414
views
1
comment
0
Daniel
Level 41
Rybnik
Question about the task
Adding a file to an archive
Java Collections
,
Level 1
,
Lesson 6
Under discussion
All requirements are failed but locally works!
Hi, I know my solution may be not the most efficient but it works! Is there any bug that makes all requirements fail ? Something like System.exit() ? Any help would be appreciated!
03.06.2021
522
views
2
comments
0
Zach
Level 22
Fort Collins
Question about the task
Let's make the code do something useful!
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Cannot get the third task to pass.
I do not get this question at all....
03.06.2021
370
views
1
comment
0
Artur
Level 22
Moorends
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 7
Resolved
keep having 0 ain't positive nor negative error
Did i miss something in my code? i have made it clear that if it is 0 to not count not to positive nor negative but still get the error :/
08.06.2020
782
views
5
comments
0
Zach
Level 22
Fort Collins
Question about the task
Let's make the code do something useful!
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Not sure where I am going wrong on second task?
I don't know what is wrong with code.
02.06.2021
492
views
1
comment
0
Murshid Saleem
Level 0
Question about the task
Amigo is very smart
Java Syntax
,
Level 0
,
Lesson 2
Under discussion
need some help
I am still trying to figure out what and how exactly to complete this task. newbie here
02.06.2021
596
views
1
comment
0
John
Level 17
Mansfield
Question about the task
Chicken factory
Java Core
,
Level 4
,
Lesson 6
Under discussion
cannot find symbol method getDescription ()
why can't i call super.getDescription?
02.06.2021
461
views
4
comments
0
Daniel
Level 41
Rybnik
Question about the task
What's in the folder?
Java Collections
,
Level 1
,
Lesson 4
Under discussion
Need help
I think I need some help! Locally this code works great and exactly how it scholuld according to task conditions. Any advices ? hints ?
02.06.2021
529
views
3
comments
0
Patrick Batterfly
Level 17
Livny
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Please, I need help
I don't know why this doesn't work. I even tried to change comparison sign to another sides, but it still didn't help to move on. Please, tell me what i did wrong
02.06.2021
556
views
7
comments
0
Gellert Varga
Level 23
Szekesfehervar
Question about the task
Chicken factory
Java Core
,
Level 4
,
Lesson 6
Resolved
I don't understand why not met 5. and 6. requirements
After many attempts, I don’t understand why it always reject requirements 5 and 6. Maybe I didn’t well understand something from the requirements, I don’t know. The program seems to be working.
19.02.2021
684
views
7
comments
0
Daisy
Level 8
San Jose
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Help Please!
error: invalid method declaration; return type required printList(number1);
02.06.2021
651
views
1
comment
0
Hisham Thabet
Level 8
Lahj
Resolved
The program won't compile! .also, I can't understand what the Codegym say "If we add a cat to a number, there is no automatic string conversion" can you explain for me? Thank you
Cat cat = new Cat(); int a = 5; String text = cat + a + "The cat is " + cat + a;
01.06.2021
602
views
2
comments
0
Anonymous #10749591
Level 3
Question about the task
Our first converter!
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
How is it wrong.
I wrote just as hinted. (9/5) first - the answer was wrong. then remove the bracket as in 9/5. again the last condition was unapproved because the answer was wrong. Then I wrote 9/5.0 as per the solution and only then was the answer right.
01.06.2021
584
views
1
comment
0
Manav Dhote
Level 0
bhopal
Under discussion
language
how can I change language
25.04.2020
806
views
2
comments
1
Zach
Level 22
Fort Collins
Question about the task
Most frequent bytes
Java Core
,
Level 8
,
Lesson 3
Under discussion
The error I'm getting is: Don't display the same byte several times. ???
How is it giving me this error? I even changed my output to a set so there shouldn't be any duplicates. Although the map should have solved this already. Thanks
01.06.2021
574
views
1
comment
0
Akash sah
Level 8
Kathmandu
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
what is wrong in this code?
i tried new line but not works
08.02.2019
2024
views
7
comments
0
Maxim Raitin
Level 20
Tomsk
Question about the task
Consecutive threads
Java Core
,
Level 6
,
Lesson 13
Under discussion
volatile - what is this?
Why we need volatile in variables?
01.06.2021
551
views
1
comment
0
Dwight Burrow
Level 3
Minnetonka
Question about the task
Square of a number
Java Syntax
,
Level 1
,
Lesson 8
Under discussion
Did I miss something?
I'm not sure I learned anything about sqr(). I don't know anything about it or how it works or where I put it.
05.05.2021
643
views
3
comments
0
Patrick Batterfly
Level 17
Livny
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Resolved
Guys,please, tell me what's wrong with my code
All conditions are met, but somehow the last requirement doesn't count. What's the issue?
31.05.2021
453
views
4
comments
0
Sansho
Level 19
Bordeaux
Question about the task
Request parser
Java Core
,
Level 5
,
Lesson 12
Under discussion
[3rd req. X ] My outputs are corrects, but the Robot is tellin' me nooOOooOOOo
Well, I don't understand in which case I'm wrong, even when I test with a custom link...
27.05.2021
620
views
9
comments
0
Manoj Deo
Level 3
Mumbai
Question about the task
I'm 15 again!
Java Syntax
,
Level 1
,
Lesson 4
Under discussion
??
whATS WRONG
20.10.2018
1217
views
4
comments
0
iqbalhussain
Level 22
Peshawar
Question about the task
How do you serialize Singleton?
Java Core
,
Level 10
,
Lesson 4
Resolved
need help last condition is not satisfied
need help last condition is not satisfied
27.01.2019
1629
views
4
comments
0
John
Level 17
Mansfield
Question about the task
Sorting even numbers from a file
Java Core
,
Level 3
,
Lesson 11
Under discussion
Program displays too many lines
Anybody knows whats wrong?
28.05.2021
484
views
2
comments
0
Pahunchik
Level 8
Moscow
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
help please
can't pass last condition
30.05.2021
1002
views
2
comments
0
Pahunchik
Level 8
Moscow
Question about the task
Duplicating words
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
I get an error when checking the last condition:
I get an error when checking the last condition: Display the resulting list, each element on a new line.
30.05.2021
404
views
5
comments
0
Liliane Top
Level 17
Amsterdam
Question about the task
Buggy initializeIdAndName
Java Core
,
Level 3
,
Lesson 2
Resolved
It compiles and runs so why do I fail the test
Not sure what is requested.
07.03.2020
1272
views
6
comments
1
AP
Level 15
Bodmin
Under discussion
Can I run Minesweeper game in Intellij Idea?
Is anyone able to run Minesweeper game in IntelliJ Idea? If yes, please help with the debug configurations. I am looking for Main class to define in configuration. Thanks
06.09.2020
740
views
1
comment
0
Show more
1
...
69
70
71
72
73
...
371
Please enable JavaScript to continue using this application.