Promotion
CodeGym University
Java FullStack
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
Vijay Anand Bukkuri
Level 2
Suri
Question about the task
"I'm here about the job..."
Java Syntax
,
Level 2
,
Lesson 0
New
declare intValue, numericValue, size,and number
int intValue=1, how? int numericValue=17, how? int size=8, how? int number=22, how? explain?
3/7/23
379
views
0
comments
0
Mike S
Level 28
Saint Louis
Question about the task
Picking out numbers
Java Core
,
Level 9
,
Lesson 5
Resolved
Correct Output, But No Pass : /
This is so aggravating after having spent so much time to just get the output correct. Anyone have any tips here? I've played around with the trailing spaces and nothng works.
2/28/23
450
views
4
comments
0
Reyaz Ahmad Bhat
Level 4
Anantnag Jammu And Kashmir
Question about the task
Broken keyboard
Java Syntax
,
Level 3
,
Lesson 9
Under discussion
Solution
Scanner sc = new Scanner(System.in); String str = sc.nextLine(); if(str.equalsIgnoreCase(secret ) == true){ System.out.println("Access granted"); }else { System.out.println("Access denied"); }
3/3/23
467
views
0
comments
0
Reyaz Ahmad Bhat
Level 4
Anantnag Jammu And Kashmir
Question about the task
I'll never work for peanuts
Java Syntax
,
Level 4
,
Lesson 3
Under discussion
Solution
int n = 1; while(n < 101){ System.out.println(quote); n++; }
3/3/23
433
views
0
comments
0
Reyaz Ahmad Bhat
Level 4
Anantnag Jammu And Kashmir
Question about the task
Everyone wants to be loved
Java Syntax
,
Level 4
,
Lesson 3
Under discussion
Solution
Scanner sc = new Scanner(System.in); String str = sc.nextLine(); int i = 0; while(i < 10){ System.out.println(str+" "+text); i++; }
3/3/23
396
views
0
comments
0
Denis
Level 22
Kharkiv
Question about the task
Maximum byte
Java Core
,
Level 8
,
Lesson 3
Under discussion
Help me pls
I cant understand
6/28/19
1378
views
4
comments
0
alberto weber
Level 28
Poland
Question about the task
Minesweeper (Part 2/16))
Games
,
Level 0
,
Lesson 0
Resolved
Problem with build
Hi i have a problem with building my game. When i try to i get this error: C:\Users\User_PC\Downloads\CodeGymTasks\8.Games\src\com\codegym\games\minesweeper\MinesweeperGame.java:5:8 java: cannot access javafx.application.Application class file for javafx.application.Application not found i tri
2/18/23
422
views
3
comments
0
Nitin Pawar
Level 1
Mumbai
Question about the task
Countdown at the races
Java Core
,
Level 6
,
Lesson 10
Under discussion
Can someone please help here ?
help
12/20/19
1859
views
7
comments
2
Hoist
Level 38
San Diego
Question about the task
Minesweeper (Part 1/16)
Games
,
Level 0
,
Lesson 0
Under discussion
Why is Mine Sweeper Game Still Failing > Ideas ? See attached -- run in both IntelliJ and the basic codegym IDE
package com.codegym.games.minesweeper; import com.codegym.engine.cell.*; // using the CodeGym game engine (above); create a // new Class that inherits the Game Class engine (com.codegym.engine.cell.Game) public class MineSweeperGame extends Game { // declare a method - a function - in Class
2/19/23
875
views
4
comments
0
Liliane Top
Level 17
Amsterdam
Question about the task
Neo
Java Core
,
Level 3
,
Lesson 11
Resolved
How does this work?
two questions: 1) how to return a valid User object. It seems that the code does that but fail the test why? 2)The initializeIdAndName method must set the id and name fields using the arguments passed to it. which it does and yet I fail the test why?
3/15/20
1309
views
3
comments
1
Stefan Craia
Level 3
Bucharest
Question about the task
Writing to a file from the console
Java Core
,
Level 3
,
Lesson 11
Under discussion
It work but, i get this "The program must write absolutely all of the entered lines (including "exit") to the file, each on a new line."
package com.codegym.task.task13.task1319; import jdk.nashorn.internal.runtime.ECMAException; import java.io.*; /* Writing to a file from the console */ public class Solution { public static void main(String[] args) { BufferedReader reader = new BufferedReader(new InputStreamReader(
10/1/19
1783
views
3
comments
1
Raj Mishra
Level 2
India
Question about the task
Writing to a file from the console
Java Core
,
Level 3
,
Lesson 11
Under discussion
Why the case is failing
My code is working fine where I am writing everything into the file including exit. Then why so its failing?
6/15/21
636
views
1
comment
1
shilpa keshri
Level 15
Mumbai
Question about the task
Reading a file
Java Core
,
Level 3
,
Lesson 11
Archived
file reading...
the error is program displays too many errors...
3/30/19
2077
views
7
comments
1
Liliane Top
Level 17
Amsterdam
Question about the task
Parameterized interface
Java Core
,
Level 3
,
Lesson 2
Resolved
What is requested
I do not understand the question. Can someone please explain to me what we are suppose to do here? The question is not clear at all.
3/7/20
1651
views
12
comments
1
shovan
Level 22
Kolkata
Question about the task
Parameterized interface
Java Core
,
Level 3
,
Lesson 2
Resolved
please help
how to use string parameter in the interface implementation???
6/11/19
2240
views
3
comments
1
AlfredW
Level 23
Denver
Question about the task
SimpleObject interface
Java Core
,
Level 3
,
Lesson 11
Under discussion
Ha ha I am completely clueless as to why this wont verify.
Ha ha I am completely clueless as to why this wont verify.
8/4/20
776
views
3
comments
1
Pac-w
Level 22
Question about the task
Countdown at the races
Java Core
,
Level 6
,
Lesson 10
Under discussion
Thread interruption
I don't a get question i guess, because numSeconds never will be equals to 4. Please, help me to find solution for this task and tell me why it's not valid answer.
9/28/21
586
views
3
comments
1
jajaceek
Level 23
Warszawa
Question about the task
Countdown at the races
Java Core
,
Level 6
,
Lesson 10
Resolved
Where is the problem? During Run is ok but during verification is not ok.
I don't know where is the problem. When I check by Run - the program prints "3 2 1 0 Go!" but during the verification its prints only "3 2 1 0" and i don't know how to solve the problem.
2/29/20
1076
views
1
comment
1
Jyothi
Level 20
Question about the task
Countdown at the races
Java Core
,
Level 6
,
Lesson 10
Resolved
task16.task1617 - Countdown at the races
Validation failing for race clock countdown by 1. cannot see where the problem is.
12/24/18
2033
views
5
comments
1
Ramilya
Level 20
SPb
Question about the task
Countdown at the races
Java Core
,
Level 6
,
Lesson 10
Resolved
Task1617
Help, please. What's wrong in my code? Output in Idea is correct. Input: numSeconds = 3. Output: 3 2 1 Go! Input: numSeconds = 4. Output: 4 3 2 1 Interrupted!
5/2/19
1758
views
2
comments
1
Jason
Level 16
Question about the task
Minesweeper (Part 7/16)
Games
,
Level 0
,
Lesson 0
Resolved
Can't pass openTile conditions
All works as expected, i tired passing both x,y and y,x and both work perfectly (as the game should) but i cannot pass the two openTile conditions. Any help is appreciated. I also tried leaving everything x,y except gameField[y][x].isMine and still no luck. private void openTile(int y, int
11/17/19
1680
views
4
comments
1
Emre Erkaslan
Level 0
Istanbul
Question about the task
2048 (Part 6/18)
Games
,
Level 0
,
Lesson 2
Under discussion
Please help me
I examined and applied every question but it doesn't still work. (Second to last condition)
11/8/20
979
views
1
comment
1
ddi
Level 18
Dortmund
Question about the task
Minesweeper (Part 13/16)
Games
,
Level 0
,
Lesson 0
Under discussion
Please explain it to me!
Why do i have this error : error: 'void' type not allowed here for(GameObject neighbor : getNeighbors(gameField[y][x])) { Line 172. I dont get its a for loop... why the error?
10/1/19
1295
views
1
comment
1
Brett Politzer
Level 5
Mililani
Question about the task
Minesweeper (Part 6/16)
Games
,
Level 0
,
Lesson 0
Under discussion
Where is getNeighbors() defined?
According to the conditions: "you now have the getNeighbors() method, which has one GameObject (cell) parameter." Accroding to the requirements: The countMineNeighbors() method should use the getNeighbors(GameObject gameObject) method. I don't see the getNeighbors method defined. Are we
8/28/19
2311
views
2
comments
3
Oleksii Osypenko
Level 8
Warsaw
Question about the task
Minesweeper (Part 9/16)
Games
,
Level 0
,
Lesson 0
Resolved
Hello, how should i solve last requirements. Please help.
Hello, how should i solve last requirements. Please help. Thanks
11/7/19
1917
views
2
comments
2
matemate123
Level 50
Kraków
Question about the task
AutoCloseable and try-with-resources
Java Multithreading
,
Level 1
,
Lesson 10
Resolved
Maybe it's lame question
public class Solution { public static void main(String[] args) { DBConnectionManager dbConnectionManager = new DBConnectionManager(); try (FakeConnection fakeConnection = dbConnectionManager.getFakeConnection()) { System.out.println("Entering body of try block.");
3/4/23
573
views
3
comments
0
Kosmonaut45
Level 3
Question about the task
Minesweeper (Part 6/16)
Games
,
Level 0
,
Lesson 0
Under discussion
What am I doing wrong?
Hey, I was trying to count the neighbours around the mine, but I cannot get it to work. Could someone help me?
10/9/19
1843
views
1
comment
2
remote87
Level 18
Sofia
Question about the task
Minesweeper (Part 6/16)
Games
,
Level 0
,
Lesson 0
Under discussion
I don't get
I have made my code as simple to follow as possible and in my head everything works fine and in the code looks OK, but still I get: - "The countMineNeighbors() method should, for each non-mined cell in the gameField matrix, count the number of adjacent mined cells and assign this value to the countM
4/3/21
1148
views
4
comments
1
GCPix
Level 15
Glasgow
Question about the task
Minesweeper (Part 6/16)
Games
,
Level 0
,
Lesson 0
Resolved
Where am I going wrong?
I am thinking I might have misunderstood requirements somewhere. I keep failing on the CountMyNeighbors method. In itself, it is fairly straight forward. Loop through each array object, if the object isn't mined get the surrounding objects. Because objects will not have a neighbour at each point
7/15/19
2599
views
6
comments
3
satish
Level 15
kadapa
Question about the task
Minesweeper (Part 6/16)
Games
,
Level 0
,
Lesson 0
Under discussion
getNeighbour() is weather a inbuilt method
if not a inbuilt method how should to write
7/12/19
1439
views
2
comments
1
Show more
1
...
31
32
33
34
35
...
374
Please enable JavaScript to continue using this application.