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
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
9/16/20
732
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
9/16/20
587
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
9/17/20
845
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
10/4/20
545
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
10/4/20
566
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
10/8/20
481
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?
10/8/20
573
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/20
716
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/20
573
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.
10/14/20
480
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."
10/15/20
554
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?
1/18/21
726
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
4/8/20
1266
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
1/12/21
563
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
1/15/21
652
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
1/14/21
860
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); } }
1/18/21
419
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
1/17/21
568
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
11/12/20
746
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){
11/9/20
603
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
9/14/18
1958
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!
12/7/19
1407
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
1/14/21
1025
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:)
10/4/20
1049
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?
1/17/21
647
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
1/13/21
779
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!!
2/18/19
1852
views
3
comments
0
Hakim Balogun
Level 2
Abuja, FCT.
Question about the task
Nerd break
Java Syntax
,
Level 0
,
Lesson 7
Under discussion
Nerd Break video isn't playing!
My first Nerd Break video in Java Syntax, Level 0, Lesson 7 does not play. Once I click the 'open' button, all I get is just a blank black box! (Apparently this is the frame that should contain the video). Can anyone please help with solutions or ideas to make it work?
3/10/19
1244
views
3
comments
0
Jurij Thmsn
Level 29
Flensburg
Question about the task
HashMap of cats
Java Syntax
,
Level 8
,
Lesson 3
Resolved
Don't understand output.
I solved the task so i don't want to post the correct code. I stillt don't get the output. The output is like: Tiger - TIGER Missy - MISSY (..) Why isn't the output something like this: Missy - com.example.übung.Übung$Cat@681a9515 Tiger - com.example.übung.Übung$Cat@3af49f1c (...) I understand tha
1/15/21
778
views
3
comments
0
zub
Level 41
Milan
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Am I even close?
Not having output makes it hard to tell if I'm getting close.
1/16/21
624
views
2
comments
0
Show more
1
...
95
96
97
98
99
...
374
Please enable JavaScript to continue using this application.