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
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
741
views
1
comment
0
Evgen
Level 23
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
what's wrong with my code
please anybody! explain me what's wrong here
18.05.2021
534
views
2
comments
2
Raja Usman
Level 0
Rawalpindi
Under discussion
Write the abstract class of Person having abstract methods of set name, get name, set age and get age. Also create two child classes Student: having Registration and CGPA Teacher: having Specialization and pay Create menu to add, display, update the values of Students and Teachers using polymorphis
Write the abstract class of Person having abstract methods of set name, get name, set age and get age. Also create two child classes Student: having Registration and CGPA Teacher: having Specialization and pay Create menu to add, display, update the values of Students and Teachers using polymorphis
29.05.2021
450
views
0
comments
0
Hisham Thabet
Level 8
Lahj
Under discussion
I'm new with Java, and when run this code give me this error: non-static variable this cannot be referenced from a static context BridgeOfficer officer = new BridgeOfficer(1500);...I search a lot in google but I can't fix it
public class Truck { int weight; public class BridgeOfficer { private int maxWeight; public BridgeOfficer(int normalWeight) { this.maxWeight = normalWeight; } public boolean checkTruck(Truck truck) { if (truck.weight > max
29.05.2021
460
views
2
comments
0
zaid hamdan
Level 2
Amman
Question about the task
Nerd break
Java Syntax
,
Level 0
,
Lesson 7
Under discussion
I can't collect dark matter from the nerd break task
When I had the first nerd break task I watched the video but didn't get any dark matter so I just moved on but now I need dark matter to unlock the next level and nerd break is the only task I have. I tried watching it again but that didn't wok. How do I collect the dark matter?
28.05.2021
649
views
1
comment
0
Yusuf el Turki
Level 5
Rhein
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Guys what this abs method actually does?
I know how if else statement works but i didnt get this abs method. How can i use is it?
28.05.2021
531
views
1
comment
0
Angeget
Level 22
Potsdam
Question about the task
Replacing numbers
Java Core
,
Level 9
,
Lesson 11
Archived
Could somebody help me please ?
The requirement is fufilled after testing my code. But on CodeGym site this is not fufilled. I do not understand why help help help please
16.03.2019
2009
views
1
comment
0
hidden #10426395
Level 2
Resolved
How to reset own progress?
Please help, I want to reset own Codegym progress and I don't know how to do it. I want to begin right from the very beginning.
06.02.2019
2225
views
1
comment
1
Johannes
Level 27
Centurion, Pretoria
Question about the task
Replacing numbers
Java Core
,
Level 9
,
Lesson 11
Archived
Before I continue with this task: Please give me a pointer ?
Please give me a pointer: I don't know what they require from me in this task Before I continue with this task: I can code as they require, but the output examples are not reflecting what they are asking ?
20.04.2020
1196
views
4
comments
0
Raj Mishra
Level 15
India
Question about the task
Reading a file
Java Core
,
Level 3
,
Lesson 11
Under discussion
Unable to identify the cause of failure
There is noting wrong in my program. I am able to display the contents of file path I am passing. But 2nd step is failing and I am getting recommendation from mentor as "Too many lines". Can any one clarify exactly what he wants to say ? I am only displaying 3 lines(3 letters in 3 lines)
21.05.2021
642
views
3
comments
0
Michał Kwaśny
Level 22
Krakow
Question about the task
Searching for the right lines
Java Core
,
Level 9
,
Lesson 11
Under discussion
It is working perfectly but still is not passing
Verification system getting annoying
24.09.2019
1444
views
3
comments
0
Niladri pradhan
Level 33
Mumbai
Question about the task
Searching for the right lines
Java Core
,
Level 9
,
Lesson 11
Under discussion
last condition
help
03.09.2019
1095
views
2
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Searching for the right lines
Java Core
,
Level 9
,
Lesson 11
Under discussion
Output seems to be good but it cant't pass verification
Input: file view In view in xxx xxx view In file xxx In file view file view xxx xxx file in xxx view in xxx Output: xxx view In file xxx In file view file view xxx
03.04.2019
1652
views
4
comments
0
Maxim Raitin
Level 20
Tomsk
Question about the task
Countdown
Java Core
,
Level 6
,
Lesson 7
Resolved
This works in IDE
2 and 3 conditions doesn't met
27.05.2021
480
views
1
comment
0
Genilson Cavalcante
Level 2
Sousa
Under discussion
Tarefas não aparecem!
Olá. Eu gostaria de saber o por que as tarefas não estão aparecendo para mim, após entrar o nível 2 elas não aparecem.
25.05.2021
495
views
0
comments
4
Maxim Raitin
Level 20
Tomsk
Question about the task
Horse racing
Java Core
,
Level 6
,
Lesson 5
Under discussion
I've done task but I don't understand one thing
This is my works code in IDE: public static int calculateHorsesFinished(List horses) throws InterruptedException { int finishedCount = 0; for(Horse horse: horses){ if(horse.isFinished){ finishedCount++; }else { System.out.println("Waiting for " + horse.getName(
27.05.2021
607
views
1
comment
0
Henrique
Level 41
São Paulo
Question about the task
Restaurant (part 16)
Java Multithreading
,
Level 9
,
Lesson 15
Under discussion
I GIVE UP. Can someone give me the solution, please?
Sadly, it's time to give up on this course. What was asked in this entire quest was way too advanced for my level, and CodeGym doesn't offer the appropriate support and material to deal with all it, especially with the big tasks. Maybe, for the hard tasks, a more deductive approach would be more be
21.08.2020
762
views
3
comments
5
Henrique
Level 41
São Paulo
Question about the task
Restaurant (part 14)
Java Multithreading
,
Level 9
,
Lesson 15
Under discussion
no idea how to do last 4 conditions. HELP PLEASE
i really don't understand
20.08.2020
680
views
10
comments
0
Jurij Thmsn
Level 29
Flensburg
Question about the task
Password generator
Java Collections
,
Level 2
,
Lesson 6
Resolved
Unique check
I already passed the task but can't fully understand the "right solution". In the conditions it states : All generated passwords must be unique. I ensured this condition by just adding all generated passwords to a list and checking for the newly generated password like this: while(noNumeral || n
25.05.2021
527
views
3
comments
0
Gellert Varga
Level 23
Szekesfehervar
Question about the task
Most frequent bytes
Java Core
,
Level 8
,
Lesson 3
Resolved
The task failed to pass testing with these messages: "Don't display the same byte several times." - "CodeGym security exception. You are performing a forbidden or potentially dangerous operation."
What kind of forbidden or dangerous operation am I using??... And most importantly, what could be the basic bug in the program that is causing the test to fail? (The previous problem has been fixed: this program no longer contains static variables.)
25.05.2021
544
views
10
comments
0
Gellert Varga
Level 23
Szekesfehervar
Question about the task
Most frequent bytes
Java Core
,
Level 8
,
Lesson 3
Resolved
The task failed to pass testing with this message: "Don't display the same byte several times."
But when testing my program, it never repeated the same byte for me. Some test cases: INPUT FILE: OUTPUT: abccd 99 abcdAABCD 65 a b c d e 10 13 // these two are the bytes of the end of the lines, so also that's OK in my opinion. aaabbbc
25.05.2021
794
views
6
comments
0
ROOPAK PARASHAR
Level 8
New Delhi
Question about the task
Greater than 10? You're not a good fit for us
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Why the requirements are not being satisfied? somebdy help!
The Error says make sure removeAllNumbersGreaterThan10 method works for the sets of all size
25.05.2021
706
views
2
comments
0
Jann
Level 2
Question about the task
Our first converter!
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Converter
Hi, I am trying to figure out this code. How I make it return the result ? I did try print out put to check the result is 105.8 but requirement should not display anything. I think I did convert right but still wrong. Any opinion ? Thanks,
20.06.2019
1971
views
2
comments
0
Naughtless
Level 41
Olympus Mons
Resolved
A very basic question.
So I've been trying to figure this out, I know that CodeGym actually provided a material into this, but I just forgot to save it, and can't seem to find it within a reasonable time. So my question is: Why is this possible? public class Main { public static void main(String[] args) { in
12.05.2021
707
views
12
comments
2
Niklas Braun
Level 33
Freiburg
Question about the task
Writing a stack trace
Java Collections
,
Level 2
,
Lesson 4
Resolved
I have to create an StringWriter object?
This requirement is still not satisfied.
26.05.2020
560
views
6
comments
0
Zach
Level 22
Fort Collins
Question about the task
Different methods for different types
Java Core
,
Level 5
,
Lesson 12
Under discussion
Why am I getting a number format exception??
package com.codegym.task.task15.task1519; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; /* Different methods for different types */ public class Solution { public static void main(String[] args) throws IOException { //write your code h
22.05.2021
460
views
2
comments
0
Przemek
Level 25
Lublin
Question about the task
Making the right conclusion
Java Core
,
Level 10
,
Lesson 10
Under discussion
Can anybody help, please? :)
The result in my task like below is: C class, method2 A class, method2 C class, method1 B class, method1 Does anybody can tell me why changing to private modifier in method1 of class A gives correct result? IS it not enaugh to call method1() like I do in 16-th line?
24.05.2021
382
views
1
comment
0
Vincent
Level 2
Question about the task
Minesweeper (Part 1/16)
Games
,
Level 0
,
Lesson 0
Under discussion
Help
Can someone give me the answer please? I need it in order to have enough dark matter to continue, but I haven't learned it yet
20.07.2020
667
views
0
comments
1
Andrei
Level 41
Question about the task
Refactoring the Chain of Responsibility pattern
Java Multithreading
,
Level 9
,
Lesson 9
Resolved
If the methods of an abstract class shouldn't have a body, why does this exercise validate with the abstract class's methods having bodies?
I don't understand. Are we supposed to have bodies in the abstract class's methods or not? What is the recommended practice? public abstract class AbstractLogger implements Logger{ int level; Logger next; public AbstractLogger(int level) { this.level = level; } @Overr
24.05.2021
498
views
4
comments
0
Cristian
Level 16
Bucharest
Question about the task
GCD
Java Core
,
Level 4
,
Lesson 8
Under discussion
What's wrong with my code? Thank you very much!
package com.codegym.task.task14.task1420; import java.io.*; /* GCD */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(reader.readLine
24.05.2021
453
views
2
comments
0
Show more
1
...
70
71
72
73
74
...
372
Please enable JavaScript to continue using this application.