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
Anonymous #10798360
Level 8
Woking
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
I've tried all the conditions but somehow It's wrong. Can someone pls help me?
package com.codegym.task.task04.task0420; /* Sorting three numbers */ 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));
18.06.2022
467
views
2
comments
0
Rakesh Kumar
Level 16
Gambat
Question about the task
Shared last names and first names
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Any one here?
package com.codegym.task.task08.task0821; import java.util.HashMap; import java.util.Map; import java.util.Scanner; /* Shared last names and first names */ public class Solution { public static void main(String[] args) { Map map = createPeopleList(); printPeopleList(map);
01.07.2019
1810
views
5
comments
0
Cec
Level 13
Resolved
Objects in an Array (of an Object)
hey, friends : ) after learning the basics of Objects, I wanted to try to make an own practice project, which should be simple but somehow I dont have the expected outcome what I got is: class team with this variable and function to create new agents public static agent[] members = new agent[3];
17.06.2022
552
views
6
comments
0
Anitamalina
Level 18
København
Question about the task
Functionality is not enough!
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
I can't pass last requirement - maybe wrong order ?
Can someone help - I feel lost - and I don't why the output is in random order ? or if it is something else?
17.06.2022
304
views
1
comment
0
Anonymous #11014886
Level 3
Dover
Under discussion
Can I go through the course without paying for premium?
Is there a way to get through the AP Java Exam Lite course without paying for it? I got to Level 3 Lesson 4 and cannot go any further unless I pay for the premium.
15.06.2022
448
views
0
comments
0
J
Level 41
Wilson
Question about the task
HTML Editor (part 10)
Java Multithreading
,
Level 8
,
Lesson 15
Under discussion
Why am I getting an error for this?
I am getting fails on the first 3 tests of validation. Anyone know why? package com.codegym.task.task32.task3209.listeners; import com.codegym.task.task32.task3209.View; import javax.swing.*; import javax.swing.event.MenuEvent; import javax.swing.event.MenuListener; public class UndoMenuListe
13.06.2022
455
views
3
comments
0
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
11.06.2022
384
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
05.06.2022
479
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
07.06.2022
815
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!!
08.06.2022
526
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.
11.06.2020
856
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
06.06.2022
397
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?
31.01.2022
859
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++) {
04.06.2022
282
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
02.06.2022
490
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.
01.06.2022
355
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
28.02.2019
1620
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
01.06.2022
434
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.
30.05.2022
401
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 =\
29.05.2022
495
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
29.05.2022
335
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.
04.04.2021
624
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".
09.01.2021
1041
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?
25.05.2022
305
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!
23.05.2022
775
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
24.10.2018
1834
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?
21.05.2022
292
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.
21.05.2022
412
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.
20.05.2022
448
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!
16.05.2022
776
views
5
comments
0
Show more
1
...
42
43
44
45
46
...
371
Please enable JavaScript to continue using this application.