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
wer08
Level 0
Radom
Question about the task
Racer (Part 15/28)
Games
,
Level 0
,
Lesson 5
Under discussion
Second and third requirement
Hi! When i run the game everything runs perfectly but I can't verify second and third requirement. Where did I go wrong ?
7/18/22
576
views
1
comment
0
Alex Tor
Level 31
Question about the task
Second smallest number entered
Java Syntax
,
Level 4
,
Lesson 5
Under discussion
My program does its job, but JUDGE won't validate it.
Hi guys, pls gimme a hint.
7/13/22
1073
views
13
comments
0
wer08
Level 0
Radom
Question about the task
Racer (Part 10/28)
Games
,
Level 0
,
Lesson 5
Under discussion
Where do I have to create road package ?
Hi, I tried creating subfolder road in every folder and can't verify it. Help needed
7/15/22
546
views
3
comments
0
Nobody
Level 37
Seattle
Question about the task
Numeral system converter
Java Multithreading
,
Level 10
,
Lesson 2
Under discussion
why am i wrong?
i checked and have the right answer even check with negative number but still fail with an unclear feedback "you need to implement it right"?
6/14/19
1581
views
3
comments
2
Cronox79
Level 9
Harker Heights
Question about the task
Array of numbers in reverse order
Java Syntax
,
Level 6
,
Lesson 3
Under discussion
how do you get this to run in IntelliJ?
I am trying to do this task in IntelliJ and it will not work correctly. On the website it already has the list of names but in IDE it doesnt have it attached. How can you work/run a program in the IDE if you dont have all the tools for the program in the plugin?
7/16/22
843
views
17
comments
0
wer08
Level 0
Radom
Question about the task
2048 (Part 18/18)
Games
,
Level 0
,
Lesson 2
Under discussion
ERROR : AN UNKNOWN ERROR OCCURED
When i try to run the game a get the error from the title. What could be the problem ?
7/15/22
592
views
1
comment
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
Restaurant (part 16)
Java Multithreading
,
Level 9
,
Lesson 15
Resolved
Trying to figure out why this won't pass
This task is hard to test because the Date stored in the EventDataRow class is taken from the current date, so the only way I can try to have it match the sample output is to have it generate a couple orders right around before and after midnight to get different dates. Or I would have to edit the c
7/14/22
816
views
13
comments
0
Mary Khan
Level 23
Russia
Question about the task
User, loser, coder and programmer
Java Core
,
Level 4
,
Lesson 8
Under discussion
Why I get this error:
Why I get this error: com/codegym/task/task14/task1411/Solution.java:15: error: cannot infer type arguments for java.util.HashMap HashMap persons = new HashMap<>(){{ ^ reason: cannot use '<>' with anonymous inner classes Inp
7/14/22
1018
views
3
comments
0
Anonymous #11016365
Level 39
Detroit
Question about the task
Convert a list to an array
Java Syntax
,
Level 19
,
Lesson 2
Under discussion
Method reference clarification
What is the difference between doing this strings.toArray(new String[]{}); and this strings.toArray(String[]::new); They both work but what is the benefit of choosing the latter over the former?
7/12/22
591
views
1
comment
0
Alex Tor
Level 31
Question about the task
Summation
Java Syntax
,
Level 4
,
Lesson 3
Resolved
Not sure if I got the conditions right.
Hello everyone, my program does precisely what the conditions are stated, but the Judge has a different opinion, pls gimme a hint.
7/12/22
766
views
5
comments
0
hidden #10994753
Level 46
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Resolved
Correct behavior but not validated
Hi everybody, My program works correctly, but it has not been validated because of the last requirement, I'm getting this indication but I'm sure it's already covered : Any suggestion please? thanks a lot .
7/11/22
517
views
2
comments
0
Barsha
Level 4
Eluru
Question about the task
Multiplication table
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
The task is failing condition: "The displayed text should contain 10 lines". Not sure how to push it to the next line
public class Solution { public static void main(String[] args) { //write your code here for(int i=1; i<=10; i++) { for(int j=1; j<=10; j++) { int num=i*j; System.out.print(num+"\t");
7/14/20
1188
views
3
comments
0
Florin1
Level 1
Question about the task
File in a static block
Java Core
,
Level 5
,
Lesson 12
Resolved
The program ran too long and was closed...
I tried the following: - absolute path; - relative path; - placed it in the root of a drive; - placed on desktop so as to be more accessible; I also did tests and the lines are read properly. However, when submitting the material, I get time out (The program ran too long and was closed) Any ideas
7/11/22
711
views
3
comments
0
Josephine
Level 1
Normal
Question about the task
Space Invaders (Part 6/34)
Games
,
Level 0
,
Lesson 6
Under discussion
Can someone please check this?
Can someone check this? The Shapematrix didn't create it own...So i copied .. All the requirements are coded .But it is not passing..
7/11/22
576
views
1
comment
0
Josephine
Level 1
Normal
Question about the task
Space Invaders (Part 5/34)
Games
,
Level 0
,
Lesson 6
Under discussion
What is wrong with my draw(Game) method?Please help
What is wrong with my draw(Game) method?Please help
7/9/22
633
views
2
comments
0
Andrew
Level 7
Charlotte
Question about the task
Price of apples
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
I do not understand where Apples came from.
I don't understand why it's Apple.applePrice + applesPrice instead of Apple.applePrice + Apple.apple2Price... since you're adding the prices of apple1 and apple2.
2/17/22
944
views
2
comments
0
Denil Pepa
Level 7
Munich
Question about the task
Number of days in the year
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Help?
Hello, I don`t know what is wrong with the last Task...🤔
9/26/20
868
views
2
comments
0
TempanyJ
Level 6
Question about the task
Positive and negative numbers
Java Syntax
,
Level 3
,
Lesson 7
Resolved
-10 input is outputting -9 but won't pass the test?
I am not understanding why my solution isn't passing the 'If the entered number is negative, increase it by one and display the result.' test. When i input a negative number and run my code it outputs the correct answer e.g -10 outputs -9 but i can't pass the tests? Any hints for this would be appre
5/11/22
1159
views
10
comments
1
Mack
Level 20
Osiedle-Nowiny
Question about the task
Comparable
Java Core
,
Level 7
,
Lesson 10
Resolved
Help, please
Help
12/15/18
3078
views
24
comments
0
HACKER3000
Level 0
Under discussion
KANN NICHTS MACHEN
I have a question that I can not do a single task . the system says an unknown error has occurred. What can I do ?
7/5/22
591
views
0
comments
0
Greg Martel
Level 5
Under discussion
Solving w/ Math.floor(): what did I do wrong?
CodeGym tells me all conditions are met, save "if light is red, print "red" "... I'm pretty sure if (T+2) % 5 == 0 is yielding "yellow", then (T+1) % 5 == 0 should yield "red" no? Thanks so much for your help!
9/13/21
598
views
1
comment
0
Whisper
Level 31
Question about the task
Correct order
Java Syntax
,
Level 7
,
Lesson 2
Under discussion
why is this not working
The code print the original array twice. The code works just fine under main methods, but it fail when it runs under reverseArray method
7/1/22
636
views
2
comments
0
Matt.P.72
Level 26
Killen
Question about the task
Hexadecimal converter
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
where is my mistake
public static String toHex(int decimalNumber) { if (decimalNumber <=0) return ""; int i=0; StringBuilder hex= new StringBuilder(); while ((int)(decimalNumber/Math.pow(16,i))>0)i++; int j=i-1; while (decimalNumber>0){ int a =
6/29/22
652
views
1
comment
0
Fuad Teymurov
Level 2
Question about the task
Three numbers
Java Syntax
,
Level 3
,
Lesson 5
Resolved
Why this does not pass
Please, could someone explain why this does not pass while it works correct ?
6/29/22
787
views
2
comments
0
Dennis
Level 4
Resolved
Download
Wie kann ich die ersten aufgaben machen wenn ich nichtmal ein programm habe wo ich es ausführen kann. Ich brauche den download
12/13/20
979
views
2
comments
2
Fabian Andiel
Level 9
Vienna
Question about the task
Synchronized methods
Java Core
,
Level 7
,
Lesson 10
Under discussion
Solution but I don't understand! - Java Core Level 7, Lesson 10, exercise synchronised methods
Hi guys, I got 3 questions 1. Why is param a class variable? It doesn`t have the keyword static. 2.How do I know what is a shared ressource? 3. Why do need the methods 3,4,6 a synchronizsed? Many thanks in advance! Greetings Fabian
2/24/20
1518
views
5
comments
2
Andre M.
Level 4
Glenn Dale
Question about the task
This age doesn't work for me…
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
Unclear task requirement
Hello. The task requirement states "The Person class's adjustAge method should increase the Person's age by 20." The code for the adjustAge method has age = age+20. I am thinking that this is correct as the formula adds 20 from the passed in class variable. I tried multiplication 20* 20 and age =
12/16/21
1242
views
4
comments
0
Anonymous #11016365
Level 39
Detroit
Under discussion
Out class has access to private inner class fields?
How is it possible that the outer class is able to access the private instance variables of the inner class? In this example, how does the newNode instance have access to the private field value in the outer class method? Here are both classes: public class StringsLinkedList { public v
6/27/22
457
views
1
comment
0
Anonymous #10798360
Level 8
Woking
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
I'd appreciate it if someone could help. I think I've done everything else right it's just that I'm stuck in an infinite loop.
package com.codegym.task.task05.task0507; /* Arithmetic mean */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int
6/26/22
606
views
1
comment
0
Chawin Pathompornvivat
Level 0
Bellevue
Question about the task
Snake (Part 1/20)
Games
,
Level 0
,
Lesson 1
Under discussion
Stuck on: Game class method must be called with arguments in the initialize method
I believe I'm coding the solution to Part 1 right but it is saying I am not for one of the steps: The Game class's setScreenSize(int, int) method must be called with arguments (WIDTH, HEIGHT) in the initialize() method. What am I doing wrong? // organize class into package for CodeGym Games Snake
5/8/20
1244
views
1
comment
0
Show more
1
...
45
46
47
48
49
...
374
Please enable JavaScript to continue using this application.