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
AlfredW
Level 23
Denver
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Under discussion
Works Perfectly but won't verify
I don't understand why this won't verify.
12.09.2020
462
views
1
comment
0
myqms
Level 13
Landshut
Question about the task
Space Invaders (Part 26/34)
Games
,
Level 0
,
Lesson 6
Under discussion
Why does the validation not satisfy? I can't find my error.
"In the SpaceInvadersGame class's removeDeadBullets() method, you need to remove all projectiles from the playerBullets list if the projectile is "dead" OR the sum of the y coordinate and the projectile's height field is less than zero." private void removeDeadBullets() { ListIterator i
13.09.2020
456
views
0
comments
0
Russell
Level 9
Galmpton, Brixham
Question about the task
Minesweeper (Part 16/16)
Games
,
Level 0
,
Lesson 0
Under discussion
Not able to publish
hey guys, was really hoping to publish this so that my friends could play it, but intellij says there is an error when publishing. not sure what might cause this. the game is perfectly functional!
13.09.2020
355
views
0
comments
0
George
Level 15
Question about the task
Minesweeper (Part 3/16)
Games
,
Level 0
,
Lesson 0
Under discussion
Can't run program
Hi, task is resolved but I still can't run the program. I only get Build Module '8.Games' and when I try that I get 3 errors: 1. /8.Games/src/com/codegym/games/minesweeper/MinesweeperGame.java:5:8 java: cannot access javafx.application.Application class file for javafx.application.Application not
16.09.2020
607
views
0
comments
0
Daniel Osiecki
Level 19
Lublin
Under discussion
What's wrong ?
package com.codegym.games.snake; import com.codegym.engine.cell.*; class Game { public static final int HEIGHT = 15; public static final int WIDTH = 15; public static int setScreenSize(int HEIGHT, int WIDTH){ int local = WIDTH * HEIGHT; return local; } } public cla
16.09.2020
483
views
0
comments
0
Daniel Jimenez
Level 2
Miami
Under discussion
Why isn't my program stopping?
I've created a NumberTile program that is suppose to simulate a NumberTile game. I have created 5 Classes, and on one of them, I've created a play method that is suppose to run the game itself, making two Hands either place a NumberTile on a board or gain an extra tile to either hand. However, when
17.09.2020
705
views
0
comments
0
BlueJavaBanana
Level 37
Question about the task
Determining locking order
Java Multithreading
,
Level 7
,
Lesson 6
Under discussion
My Solution works, but I'm not sure it should have passed - did I get lucky?
public static boolean isLockOrderNormal(final Solution solution, final Object o1, final Object o2) throws Exception { AtomicBoolean checkOrder = new AtomicBoolean(true); Thread t1 = new Thread() { @Override public void run() { synchronized
04.10.2020
443
views
0
comments
0
Switch/Cypher
Level 25
Bexleyheath
Question about the task
Splitting a file
Java Core
,
Level 8
,
Lesson 5
Under discussion
Eurgh.
Obviously I'm just gonna rewrite it, but I was annoyed this doesn't pass..... public class Solution { static String firstFilename; static String secondFilename; static String thirdFilename; static ArrayList bytesFromFile = new ArrayList<>(); static ArrayList splitArrayOne
04.10.2020
477
views
1
comment
0
Switch/Cypher
Level 25
Bexleyheath
Question about the task
Encryption
Java Core
,
Level 8
,
Lesson 11
Under discussion
What? Why?
This totally works, accepts that the "-e" encrypts the file, but despite the "-d" doing exactly the opposite, apparently that doesn't pass..... port java.util.List; public class Solution { static List bytes = new ArrayList<>(); public static void main(String[] args) { try
08.10.2020
390
views
1
comment
0
Andrei
Level 26
Liverpool
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Under discussion
Failing at last condition
cant pass last condition, but output exactly same as here was posted few times. starts from 1, not bigger than N, and all numbers correct. is there some hint?
08.10.2020
482
views
0
comments
0
Onur Bal
Level 27
Istanbul
Question about the task
Unzipping a file
Java Collections
,
Level 1
,
Lesson 10
Under discussion
None of the Validation Tests Pass Despite Functioning Properly on Local Machine
Can anyone tell me what the issue might be here?
10.10.2020
619
views
0
comments
0
sourav bamotra
Level 20
jammu
Question about the task
ABCs
Java Core
,
Level 8
,
Lesson 11
Under discussion
what argument is practically passed in main method. And how is it passed?
well, passed the task. FileInputStream inStream = new FileInputStream(args[0]); // we using first element of args array(parameter of main method) instead of fileName.
10.10.2020
483
views
0
comments
0
Dinesh
Level 7
Delhi
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
FileCopy Program Error
please Explain the error and solution as well.
14.10.2020
389
views
0
comments
0
Dyrits
Level 1
Question about the task
Tracking changes
Java Core
,
Level 9
,
Lesson 11
Under discussion
What's wrong with my code?
It seems correct to me. "Be sure that the lines list has the ADDED label with the required lines in the correct places."
15.10.2020
441
views
1
comment
0
Liliane Top
Level 24
Amsterdam
Question about the task
Overriding serialization in a thread
Java Core
,
Level 10
,
Lesson 10
Resolved
why oh why do I fail the test?
It seems to be working although it does not return the string. why? I thought by reading the object back it should return that String as well. But it doesn't why?
18.01.2021
627
views
1
comment
0
NOBODY
Level 5
Question about the task
Crazy eights
Java Syntax
,
Level 2
,
Lesson 5
Under discussion
everyone
too ez hahaha
08.04.2020
1133
views
1
comment
0
Abdelrahman
Level 5
Amman
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Help
Can anyone give me info on why the first and last task aren't checked
12.01.2021
474
views
2
comments
0
Andrei
Level 41
Question about the task
UnsupportedFileName
Java Core
,
Level 8
,
Lesson 8
Under discussion
Here is my solution, let me know what you think or if you have questions! :)
public class TxtInputStream extends FileInputStream { String fileName; public TxtInputStream(String fileName) throws Exception { super(fileName); // if filename is a correct string that leads to a txt file // behave like a regular FileInputStream and read
15.01.2021
552
views
2
comments
0
Andrei
Level 41
Question about the task
Extending AmigoOutputStream
Java Core
,
Level 8
,
Lesson 8
Under discussion
Why do I need to close the AmigoOutputStream and not the BufferedReader stream ? I have never seen this before? What happens to BufferedReader stream?
public class QuestionFileOutputStream implements AmigoOutputStream { private AmigoOutputStream amigoOutputStream; public QuestionFileOutputStream (AmigoOutputStream amigoOutputStream) { this.amigoOutputStream = amigoOutputStream; } @Override public void flush() throws I
14.01.2021
735
views
9
comments
0
Dinesh
Level 7
Delhi
Under discussion
Not getting the incremented value of catCount
public class CatRegister{ private static int catCount = 0; public static void addNewCat(){ // write you code here CatRegister.catCount++; } public static void main(String[] args){ System.out.println(catCount); } }
18.01.2021
328
views
1
comment
0
Dinesh
Level 7
Delhi
Under discussion
What happened to String Name Variable
public class Cat { //What happened to this variable? private String name = "nameless cat"; public void setName(String name) { //write your code here this.name = name; } public static void main(String[] args) { Cat cat = new Cat(); cat.setName("Simba
17.01.2021
488
views
3
comments
0
lukesky
Level 11
Zurich
Question about the task
In decreasing order
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
Can Someone help me unterstand what is wrong?
thanks
12.11.2020
652
views
4
comments
0
Adam Ondrejkovic
Level 5
Copenhagen
Question about the task
Describing numbers
Java Syntax
,
Level 4
,
Lesson 7
Archived
My code works but verification shows an error
if(number > 99 && number <= 999){ if(number % 2 == 0){ System.out.println("even three-digit number"); }else{ System.out.println("odd three-digit number"); } }else if (number > 9 && number <= 99){
09.11.2020
491
views
3
comments
0
gery
Level 9
Islamabad
Question about the task
Target locked!
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
identify correction
int a = Integer.parseInt(bufferedReader.readLine()); int b = Integer.parseInt(bufferedReader.readLine()); if(a>0 && b>0) { System.out.println("1"); } else if(a<0 && b>0) { System.out.p
14.09.2018
1775
views
4
comments
0
Hendra
Level 8
Medan
Question about the task
Target locked!
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
please tell me my false
package com.codegym.task.task04.task0425; /* Target locked!
07.12.2019
1237
views
4
comments
0
Abdelrahman
Level 5
Amman
Question about the task
Do we have a pair?
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Help
Hello coders! I have a question about why the 4th condition isn't checked, I did what it asked by doing this. else if (a == b && a == c && b==c){ System.out.println(a+" "+b+" "+c); } but it still would give me it back unchecked
14.01.2021
882
views
4
comments
0
Vitalina
Level 20
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Please help me! I don't understand what to do at all...
Just give me a hint how to resolve it...I saw that a lot of people was saying to use modulus..but i don't understand how to use it in this task... Thanks in advance:)
04.10.2020
951
views
5
comments
0
remote87
Level 18
Sofia
Question about the task
Going national
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Why I can't pass the last check?
I don't get it, why am I not passing the last check, I have made tons of tests and everything looks fine to me. Any advice?
17.01.2021
528
views
4
comments
0
MoJo
Level 23
Cairns
Question about the task
Words with numbers
Java Core
,
Level 9
,
Lesson 11
Under discussion
Tested and seemd right. Not much to be done wrong here anyways. But computer says no
Test input: file1 con4tains l5ines 6with 7words 8separated 9by spaces. Write to file2 all the words that contain numbers, for example, a1 or abc3d. Separate the words with spaces. output to 2nd file: file1 con4tains l5ines 6with 7words 8separated 9by file2 a1 abc3d. am I missing something h
13.01.2021
636
views
11
comments
0
Angeget
Level 22
Potsdam
Question about the task
Stopwatch
Java Core
,
Level 6
,
Lesson 7
Resolved
Is there anything i am doing wrong ??? I AM CONFUSED AND NEE SOME HELP!!
Is there anything i am doing wrong ??? I AM CONFUSED AND NEE SOME HELP!!
18.02.2019
1741
views
3
comments
0
Show more
1
...
92
93
94
95
96
...
372
Please enable JavaScript to continue using this application.