Promotion
CodeGym University
Learning
Course
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
asdqwe
Level 2
Prague
Under discussion
将下列代码中各个不同功能的类放在不同的包定义
package aaaa; interface Pet{ public String getName(); public String getColor(); public int getAge(); } class Cat implements Pet{ private String name; private String color; private int age; public Cat(String name,String color,int age) { this.setName(name); this.setColor(color); this.setA
08.08.2020
450
views
0
comments
0
Henrique
Level 41
São Paulo
Question about the task
Determining locking order
Java Multithreading
,
Level 7
,
Lesson 6
Under discussion
Followed Guadalupe's suggestion and it still doesn't work. Help, pls
Hi. I followed the steps suggested by Guadalupe here and it still doesn't work. Can someone help me here? I don't know exactly what should I return. I don't know if the problem is there or somewhere else. Thanks.
11.08.2020
348
views
0
comments
0
Maxim Raitin
Level 20
Tomsk
Under discussion
IntelliJ IDEA shidt+F10 doesn't work
Hello. After install plugin IntelliJ IDEA doesn't run a program
11.08.2020
275
views
0
comments
0
Tony Roy
Level 41
Victorville
Question about the task
HTML Editor (part 24)
Java Multithreading
,
Level 8
,
Lesson 15
Under discussion
extending the editor
I have managed to extend the editor including with an indent action. For an action class that extends StyledEditorKit.StyledTextAction the key code is, MutableAttributeSet mutableAttributeSet = new SimpleAttributeSet(); StyleConstants.setLeftIndent(mutableAttributeSet, );
11.08.2020
417
views
0
comments
0
allthemore
Level 41
Question about the task
How many potential friends does a person have?
Java Collections
,
Level 6
,
Lesson 8
Under discussion
Got the same result as expected but verification didn't pass
I've got the same results as expected but verification didn't pass. Could you help me figure out why?
14.08.2020
448
views
0
comments
0
Teodor Clipa
Level 41
Bucharest
Question about the task
Restaurant (part 22)
Java Multithreading
,
Level 9
,
Lesson 15
Under discussion
Can't get validator to work
No matter what I change, the validator still gives Time out.
14.08.2020
530
views
0
comments
0
Blizniak
Level 4
Cieszyn
Under discussion
Program run to loong dlaczego ?
package pl.codegym.task.task03.task0314; /* Tabliczka mnożenia */ public class Solution { public static void main(String[] args) { int a = 1; while (a <=10); int b = 1; while (b <= 9) ; System.out.println(a * b + b++); System.o
14.01.2021
358
views
1
comment
0
Daniel Whyte
Level 17
Question about the task
Create a Friend class
Java Syntax
,
Level 5
,
Lesson 7
Under discussion
Initialise
I don't understand why we would ever need to initialise them separately if all 3 of them are then initialised at the last point anyway.
14.01.2021
476
views
1
comment
0
Abdelrahman
Level 5
Amman
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Resolved
verify error?
I have everything correct but for some reason it wont verify.
13.01.2021
683
views
2
comments
0
Liliane Top
Level 24
Amsterdam
Question about the task
Reading and writing to a file: Human
Java Core
,
Level 10
,
Lesson 2
Resolved
Questions about createTempFile
1) createTempFile should create a new file but doesn't why? 2) if I use an existing file is does not write to it why? it only works if I add the filepath in the constructor of the outputstream. // Update the string passed to the createTempFile method based on the path to a file on you
14.01.2021
526
views
7
comments
0
Roy
Level 22
Bangkok
Question about the task
Extending AmigoOutputStream
Java Core
,
Level 8
,
Lesson 8
Resolved
What the heck?! Stuck on validating last requirement
I need help.... today i got already 3 tasks on which i'm stuck at validation while my code seems to work just fine...
07.05.2019
1582
views
7
comments
0
Andrei
Level 41
Question about the task
Splitting a file
Java Core
,
Level 8
,
Lesson 5
Resolved
Please advise, on paper logic seems good but conditions 2 and 3 not sufficient
I can't see what I am doing wrong, please help!
13.01.2021
549
views
15
comments
0
LennyMan
Level 25
Lucca
Question about the task
What's in the folder?
Java Collections
,
Level 1
,
Lesson 4
Under discussion
Which import a should avoid for validate
The output its correct, i think the problem is the requirement: Only use classes and methods from the java.nio package. But i dont know how to do thi task in a different way Or maybe its because im using recursion?
13.01.2021
562
views
5
comments
0
Gellert Varga
Level 23
Szekesfehervar
Resolved
How to create several java files and one java package manually? And to run it from Windows commandline (DOS).
Don't ask why:-) Just because this is interesting for me. I'm able to run simple programs from commandline but only if they are written into one single file. It works fine. For example, if the CatTest.java file is inside the C:\TEST folder, then i run it from the commandline this way: C:\TEST>
13.01.2021
494
views
4
comments
0
Abdelrahman
Level 5
Amman
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
what's wrong with my code?
i don't understand why the 6th task wrong could someone explain?
31.12.2020
394
views
3
comments
0
Abdelrahman
Level 5
Amman
Question about the task
Seasons on Terra
Java Syntax
,
Level 4
,
Lesson 4
Resolved
question
How do I make it so that I display text through checkSeason?
12.01.2021
466
views
2
comments
0
Abdelrahman
Level 5
Amman
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Help
Why is the first task not checked.
13.01.2021
498
views
2
comments
0
Liliane Top
Level 24
Amsterdam
Question about the task
Introducing tags
Java Core
,
Level 9
,
Lesson 11
Resolved
I thought after days of struggling that I nailed it
Okay it is a bit of spaghetti code but why do I fail the test? I even tried with triple nested tags and the output seems correct....
13.01.2021
364
views
3
comments
0
Dinesh
Level 7
Delhi
Under discussion
Not getting line 6 & 7
public class Solution { public static void main(String[] args) { //write your code here Man man = new Man(); Woman woman = new Woman(); man.wife = husband; woman.husband = man; } public static class Man { public int age; public in
06.01.2021
480
views
7
comments
0
Vincent
Level 2
Under discussion
I have ran out of dark matter, and cannot afford a premium subscription. What should I do?
I have ran out of dark matter, and cannot afford a premium subscription. What should I do?
13.07.2020
411
views
0
comments
0
dhanush
Level 30
Chennai
Question about the task
Snake (Part 18/20)
Games
,
Level 0
,
Lesson 1
Under discussion
please help
help me please :(
14.07.2020
472
views
0
comments
0
Vincent
Level 2
Under discussion
I have ran out of dark matter, and cannot afford a premium subscription. What should I do?
I have ran out of dark matter, and cannot afford a premium subscription. What should I do?
15.07.2020
411
views
0
comments
0
ppp122
Level 20
Under discussion
这个要咋做,求大佬帮助!
package zh.codegym.task.task09.task0925; /* 错位的 static 修饰符 */ public class Solution { public int A = 5; public static int B;// = 2 * A; public static int C;// = A * B; public static int D;// = A * B; public static void main(String[] args) { Solution room = new Soluti
15.07.2020
335
views
0
comments
0
andy 6473
Level 9
Bangalore
Question about the task
Cat code won't compile
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
java lang null pointer exception
sdkg;aweoisjvnaweoi aweigh;aweUIHfifswpivgjSDIKvj Zn vnvAIjvnaN vasn nac
15.07.2020
456
views
0
comments
0
AlfredW
Level 23
Denver
Question about the task
Five winners
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
I am getting the correct output and I am meeting all of the asked for conditions. So I do not understand what is wrong.
It keeps on giving feedback that the sort method should be able to sort an array of any length.. even though that is NOT in the required Conditions. So I have modified it so that it could actually sort any length array and it still won't verify. So I am lost.
15.07.2020
476
views
1
comment
0
Bozena
Level 4
Boston
Under discussion
Kiedy wybieram zadanie (Select task), IDEA wyłącza się
ENGLISH BELOW Hej, jak tylko chcę wybrać jedno z dostępnych zadań, program się wyłącza i pokazuje się komunikat o niespodziewanym błędzie. Mam macbooka 10.9.5. IntelliJ IDEA wersja 2019, zaś JDK najnowsza, 14. Jak to naprawić? Załączam screeny. Z góry dziękuję za odpowiedź! Hi, when I select a
18.07.2020
419
views
0
comments
0
Rush Waa
Level 9
Under discussion
Question about levels
how to unlock levels which are beyond level 40?
18.07.2020
338
views
0
comments
0
Norbert
Level 41
Kielce
Under discussion
Could someone please explain to me what to do here
I have no ideas anymore, The last one doesn't work Requirements: The private void gameOver() method must be created in the Game2048 class. The isGameStopped variable must be set to true in the gameOver() method. The showMessageDialog(Color, String, Color, int) method must be called in
20.07.2020
342
views
0
comments
0
Michał
Level 3
Katowice
Under discussion
Snake Part 3/20 - Anyone can help please with the " The GameObject class must have one constructor with two int parameters that are used to initialize the x and y fields. "
Anyone can help please with the " The GameObject class must have one constructor with two int parameters that are used to initialize the x and y fields. " Have no Idea what I do wrong. Can you guys explain me what exaclty and how to fix it ? Thanks! package com.codegym.games.snake; public class
22.07.2020
318
views
0
comments
0
Lawson
Level 29
Lagos
Question about the task
Subjective reality
Java Syntax
,
Level 2
,
Lesson 3
Under discussion
ja
Java come eat my memory... that I may understand well😁😁😁
22.07.2020
415
views
0
comments
0
Show more
1
...
89
90
91
92
93
...
367
Please enable JavaScript to continue using this application.