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
LuisRC
Level 39
Gijón
Question about the task
Inverted words
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
Last condition fails
Hi there, Could I have some help why my code is failing last condition? Thanks
6/11/22
511
views
2
comments
0
Anonymous #10971258
Level 1
Haikou
Question about the task
Minesweeper (Part 16/16)
Games
,
Level 0
,
Lesson 0
Under discussion
Where is main()?
I can run this successfuly,but I don't know where main() class is,could somebody tell me ?My code is below.😅 package com.codegym.games.minesweeper; import com.codegym.engine.cell.Color; import com.codegym.engine.cell.Game; import java.util.ArrayList; import java.util.List; public class Mineswee
6/5/22
615
views
2
comments
0
Jaime Padilla
Level 20
Chandler
Question about the task
Remove duplicate strings
Java Syntax
,
Level 6
,
Lesson 4
Resolved
Can't pass second check and a bug?
The program seems to work. It will replace duplicates with null. Unless it refers to itself, then it continues. If I use Scanner.nextLine, it will end and display my results once I enter the 4th word, "Java". The only way I can enter more words is if I put something below it like a System.out.print
6/7/22
1083
views
8
comments
0
Jomar Tayactac
Level 5
Winnipeg
Question about the task
Make a word chain
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
Any insight would be greatly appreciated.
My code won't pass the last two requirements, please have a look at my code and let me know if you have any suggestions. Thanks!!
6/8/22
704
views
1
comment
0
Surya
Level 33
Newark
Question about the task
Making the right conclusion
Java Core
,
Level 10
,
Lesson 10
Under discussion
I don't understand what I'm missing here. Need help
Could someone help me here. My output matches the requirement but one of the validation fails.
6/11/20
1002
views
1
comment
0
Sansho
Level 19
Bordeaux
Question about the task
Snake (Part 14/20)
Games
,
Level 0
,
Lesson 1
Under discussion
I don't understand why 4 and 5 are wrongs
For me, this bloc of code fullfill the conditions number 4 and 5: if (checkCollision(newHead)) isAlive = false; else { snakeParts.add(0, newHead); if (checkCollision(apple)) apple.isAlive = false; else
6/6/22
529
views
1
comment
0
Angel Stefan
Level 23
Sibiu
Question about the task
Debug everything under the sun
Java Core
,
Level 6
,
Lesson 13
Resolved
I print the two lines but I don't use uncaughtEx() !?
How can i print the message of a method if that method is not used: "The program must use OurUncaughtExceptionHandler's uncaughtException method to display 2 messages."??? If i don't use this method() how i print to the console?
1/31/22
990
views
5
comments
0
JD Obar
Level 7
Las Vegas
Under discussion
Why does my code results to NullPointerException
public class Solution { public static String[] strings; public static void main(String[] args) { //write your code here strings = new String[6]; String temp = "Somethig"; Scanner console = new Scanner(System.in); for (int x = 0; x < 6; x++) {
6/4/22
421
views
1
comment
0
Anonymous #11005843
Level 3
Question about the task
Snake (Part 20/20)
Games
,
Level 0
,
Lesson 1
Resolved
Aufgabe 17 gelöst, trotzdem fehlerhaft
Ich stelle meine Frage mal am Ende, damit ich nicht spoilere. Die Aufgabe 17 wurde als richtig erkannt (Apfel darf nicht innerhalb der Schlange existieren) und habe das Spiel auch zu Ende programmiert. Aber habe beim Testen festgestellt, dass der Apfel trotzdem innerhalb meiner Schlange erscheinen
6/2/22
665
views
10
comments
0
Tasmoda
Level 28
Midrand
Question about the task
Minesweeper (Part 6/16)
Games
,
Level 0
,
Lesson 0
Under discussion
IntelliJ error for games tasks
Good day. Are the Games tasks not designed to work with IntelliJ? I get the error below.
6/1/22
465
views
0
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Clew
Java Core
,
Level 6
,
Lesson 13
Under discussion
What is wrong in my code?
need hint
2/28/19
1822
views
9
comments
1
crispr_cast9
Level 9
Saint Petersburg
Question about the task
Logging stack traces
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
Why is the strange result in validation?
My output: com.codegym.task.task09.task0906.Solution: main: In main method
6/1/22
576
views
11
comments
0
crispr_cast9
Level 9
Saint Petersburg
Question about the task
Working with dates
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Where is the problem here?
I had being trying to add one more static method and one and two instance methods.
5/30/22
582
views
2
comments
0
slyyx
Level 15
New York City
Question about the task
Cat carnage (3)
Java Syntax
,
Level 10
,
Lesson 2
Under discussion
Task conditions are too vague to know why my solution doesn't work
The task conditions are too vague to understand why my solution doesn't work =\
5/29/22
635
views
2
comments
0
Ajani
Level 16
Jacksonville
Question about the task
A list and some threads
Java Core
,
Level 6
,
Lesson 3
Under discussion
Question about why it doesn't work.
So I know it's wrong but curious about exactly why please explain. I know we're supposed to create a new Thread object which then passes the new SpecialThread as an argument but I don't understand why we break from our standard initializing procedure of ObjectType variableName = new ObjectOfObject
5/29/22
476
views
1
comment
0
Jürg Meyer
Level 18
most beautiful town
Resolved
how to add bookmarks?
How can I add bookmarks? Thanks for help.
4/4/21
752
views
2
comments
1
김영온
Level 0
Kwangmyong
Under discussion
How to log in my account
Hi! I'd like to log in my account? I tried to log in my account and failed. Please let me know where and how I can set up my password. Thanks. My mail-id is "yokim31@daum.net".
1/9/21
1183
views
1
comment
0
slyyx
Level 15
New York City
Question about the task
Space Invaders (Part 4/34)
Games
,
Level 0
,
Lesson 6
Resolved
Is the use of Random causing the conditions not to be met?
The program works as expected, but does not meet the 6th and 7th requirements somehow. Is this because I used a Random object for the new Star(x, y) parameters?
5/25/22
444
views
1
comment
0
Brenna Crivello
Level 6
Waller
Question about the task
There's never too much of a good thing
Java Syntax
,
Level 4
,
Lesson 8
Resolved
I need a little help...
I feel a little embarrassed to ask, due to the simplicity of the problem, yet my code isn't working and I can't figure out why. It's printing the opposite of what I want it to print. I ask it to print a string 4 times, it prints it 2 times, and vice-versa. Can anyone help me. Thank you!
5/23/22
921
views
4
comments
0
imran khan
Level 6
islamabad
Question about the task
Describing numbers
Java Syntax
,
Level 4
,
Lesson 7
Archived
code is working fine except the last condition number does not fall in the range 1-999
help
10/24/18
2060
views
5
comments
0
LuisRC
Level 39
Gijón
Question about the task
Word search
Java Core
,
Level 10
,
Lesson 10
Under discussion
Not validated
Hi there, I'm not able to get this task validated. According to it "The list returned by detectAllWords is not the right size!" however when I test it, the size is the right one. Some help please?
5/21/22
466
views
2
comments
0
Albert ENG
Level 6
Question about the task
What's the cat's name?
Java Syntax
,
Level 3
,
Lesson 5
Under discussion
What does each line do in this basic code
please can someone help me to understand what exactly each line does and the sequence of the lines, i want to understand when we run the code which line works first and what does it do. If possible comment before each line like i did for two of them.
5/21/22
552
views
2
comments
0
haayden
Level 18
United States of America
Question about the task
Space Odyssey Part 3
Java Syntax
,
Level 18
,
Lesson 4
Archived
what's wrong?
i don't know what else to say here. everything works.
5/20/22
605
views
3
comments
0
Brenna Crivello
Level 6
Waller
Question about the task
Sum of even numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
I am stuck on this question and I am in need of assistance
I am confused on how I should write this code for some reason. I understand what the code is asking me, yet I don't know what I am doing. I must be overthinking this. Can anyone help me? Thank you and have a great rest of your day!
5/16/22
936
views
5
comments
0
haayden
Level 18
United States of America
Question about the task
A simple pattern
Java Syntax
,
Level 17
,
Lesson 8
Resolved
answer
why isn't this correct?
5/17/22
710
views
13
comments
0
T S
Level 18
United States of America
Question about the task
Street and houses
Java Syntax
,
Level 6
,
Lesson 4
Under discussion
Code not accepted despite being almost exactly like correct solution
The verification didn't like my solution here, even though it is almost line-for-line the exact same code as the solution code. Anyone have any ideas? package en.codegym.task.jdk13.task07.task0706; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /*
9/30/21
887
views
3
comments
0
Krzysztof Kasperek
Level 20
Drammen
Question about the task
Remove duplicate strings
Java Syntax
,
Level 6
,
Lesson 4
Under discussion
Failing to pass second requirement, not sure why...
I got correct output from the code but I'm failing to pass second requirement. Has anyone got any idea why's that?
5/16/22
602
views
5
comments
0
haayden
Level 18
United States of America
Question about the task
Just a day of the week
Java Syntax
,
Level 17
,
Lesson 4
Resolved
We didn't even go over this.
Here we go. AGAIN. Codegym just introduces a function i have NO IDEA how to use, and it wasn't even shown in the TASK ITSELF! All it gave me was a description of the syntax. WHy.
5/13/22
490
views
2
comments
0
Bob Gaming101
Level 14
Brisbane
Question about the task
Maximum of N numbers
Java Syntax
,
Level 6
,
Lesson 3
Under discussion
Does anybody know what I am doing wrong.
Pls Help
5/15/22
484
views
1
comment
0
J
Level 41
Wilson
Question about the task
Archiver (part 13)
Java Multithreading
,
Level 7
,
Lesson 15
Under discussion
Why is 3rd condition not passing?
I've looked at other questions and tried to correct the code in ways that were suggest by those and it is not passing, still. public List getFileList() throws Exception { if (!Files.isRegularFile(zipFile)) throw new NoSuchZipFileException(); List files = new ArrayList<>();
5/13/22
793
views
7
comments
2
Show more
1
...
46
47
48
49
50
...
374
Please enable JavaScript to continue using this application.