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
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>
1/13/21
761
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?
12/31/20
568
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?
1/12/21
712
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.
1/13/21
692
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....
1/13/21
552
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
1/6/21
686
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?
7/13/20
585
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 :(
7/14/20
654
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?
7/15/20
591
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
7/15/20
510
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
7/15/20
641
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.
7/15/20
661
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
7/18/20
698
views
0
comments
0
Rush Waa
Level 9
Under discussion
Question about levels
how to unlock levels which are beyond level 40?
7/18/20
497
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
7/20/20
527
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
7/22/20
484
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😁😁😁
7/22/20
588
views
0
comments
0
Nicholas Grube
Level 41
Carrollton, TX
Question about the task
CashMachine (part 14)
Java Collections
,
Level 9
,
Lesson 15
Under discussion
Confused about output for WithdrawCommand.
I am confused on the requirements of using the string success.format in withdraw_en.properties. Where and How should we use the success.format string? Do we display the total amount withdrawn, or the total for each denomination? I am completely lost here. Furthermore, do we still need to display ea
7/24/20
631
views
0
comments
0
Prassha
Level 24
Chagford
Question about the task
Make a word chain
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
I think this is badly written code but passed. i tried to do space efficient way but it wont pass.
public static StringBuilder getLine(String... words) { ArrayList strings = new ArrayList<>(); if(words.length==0) return new StringBuilder(); for(String s:words) strings.add(s); ArrayList permutedList= new ArrayList<>(); pe
7/24/20
622
views
0
comments
0
Blizniak
Level 4
Cieszyn
Under discussion
Pomoze ktos ?
package pl.codegym.task.task03.task0307; /* Witaj, StarCraft! */ import java.time.temporal.Temporal; public class Solution { public static void main(String[] args) { Zerg zerg = new Zerg(); zerg.imie = "barnaba"; Zerg zerg2 = new Zerg(); zerg2.
1/13/21
494
views
1
comment
0
Andrei
Level 41
Question about the task
Task No. 1 about integer type conversions
Java Syntax
,
Level 10
,
Lesson 4
Resolved
Dividing by 0 not throwing error? Huh?
a is 0; b is 46; c is 0; f is 1234.0; long d = (short) (0 + 1234 / 0 [not possible!] + 46) Why is the output -1? Also, I thought char only holds 1 value. That applies only to letters? Does this mean that for values, char can hold range -32,678 to 32,678? public class Solution { public static
11/16/20
854
views
6
comments
1
Dinesh
Level 7
Delhi
Question about the task
Three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Condition check
The task has been submitted successfully But I think there is one flaw in condition check When entered equal numbers say eg.555, 666, 10,10,10 It is giving 3 as ordinal number in such case in the following code. But it should not be. How to get exit without any output if all numbers are equal as
1/12/21
560
views
6
comments
0
Tay2von
Level 6
Oklahoma City
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
ALL TASKS PASS EXCEPT ONE.... What am I missing?
1/13/21
601
views
1
comment
0
Rich
Level 23
San Diego
Question about the task
File in a static block
Java Core
,
Level 5
,
Lesson 12
Resolved
not getting anything
I'm trying to do this on a mobile device and am not getting any output. any pointers?
1/12/21
647
views
2
comments
0
Blizniak
Level 4
Cieszyn
Under discussion
CO jest nie tak ze sie nie chce skompilowac ? prosze o pomoc
package pl.codegym.task.task03.task0303; /* Wymiana walut */ public class Solution { public static void main(String[] args) { konwertujEurNaUsd(200, 4.12); konwertujEurNaUsd(200, 4.14); { System.out.println(konwertujEurNaUsd(200, 4.12)); Syste
1/12/21
594
views
1
comment
0
DmdKanth
Level 19
Dayton
Question about the task
Expressing ourselves more concisely
Java Syntax
,
Level 7
,
Lesson 6
Archived
not sure what's wrong.
it errors on reading keyboard info but it is doing that. Not sure what's wrong.
1/12/21
634
views
4
comments
0
Vincenzo Seggio
Level 28
Question about the task
Snake (Part 20/20)
Games
,
Level 0
,
Lesson 1
Resolved
Game shows "Game Over" after start.
I passed all Snake-Lessons, but if I start the game it shows directly "Game Over". Is there somebody who had the same problem?
1/12/21
655
views
1
comment
0
Tobias
Level 1
Maisried
Under discussion
hey
Hey guys i always get this achievment that i made my first level but i can't click it away i always have to reload the page and then it comes back Can anyone tell me how to get this message off or how can I contact the support? Sry for my bad english
7/24/20
466
views
0
comments
0
Liliane Top
Level 24
Amsterdam
Question about the task
Finding data inside a file
Java Core
,
Level 8
,
Lesson 11
Resolved
I do not understand the conditions
What exactly is required. How should the output look like. I'm afraid I do not understand the requirements..
1/8/21
588
views
2
comments
0
Slawek
Level 16
Wroclaw
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
Problem with task
Where is the mistake?
1/12/21
639
views
3
comments
0
Show more
1
...
98
99
100
101
102
...
374
Please enable JavaScript to continue using this application.