Promotion
CodeGym University
Java FullStack
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
Gummy C
Level 11
United States of America
Question about the task
Filling an array flexibly
Java Syntax
,
Level 7
,
Lesson 2
Under discussion
Question for my understanding
So, this is the given code. public class Solution { public static void main(String[] args) { Integer[] array = new Integer[5]; fillArray(array, 3, 1, 3); System.out.println(Arrays.toString(array)); } public static void fillArray(Integer[] array, int value, int
1/5/23
437
views
2
comments
0
public enum WaysToDie
Level 23
Denver
Question about the task
Creating threads recursively
Java Core
,
Level 6
,
Lesson 13
Under discussion
How did I get here?
My program seems to fulfill all the requirements, it recursively creates and displays 15 threads following the listed instruction. Yet if you notice the test requirements, my program is still failing. Any help would be appreciated.
1/3/22
1161
views
3
comments
0
Mishal Goswami
Level 1
Jakarta
Under discussion
coding
how to learn coding?
1/7/23
323
views
0
comments
0
sreedhar s
Level 1
Wellington
Question about the task
Working with dates
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Verification failing
Reccomendation from the mentor : "The isDateOdd() method returns an incorrect value. Test it with different dates." Can you help to identify where I am doing wrong? Thank you :)
1/7/23
558
views
3
comments
0
JIMMYS73
Level 43
Ukraine
New
Problem with plugin
Hi, I have a problem with plugin. Every time I'm launch IDEA 2022.3 i have error messge What can be done ?
12/11/22
571
views
0
comments
1
Przemek
Level 25
Lublin
Question about the task
Serializing people
Java Core
,
Level 10
,
Lesson 10
Under discussion
Short question
I know my mistake and I will correct that soon but at at first in can anybody explain me better word ,,transient'' why do we use transient tp ,,full Name''?
5/20/21
614
views
3
comments
0
Gummy C
Level 11
United States of America
Question about the task
Correct order
Java Syntax
,
Level 6
,
Lesson 1
Under discussion
What is wrong?
I got the array to reverse the order, why doesn't my code pass??
1/2/23
515
views
2
comments
0
Evan
Level 33
United States of America
Question about the task
Second smallest number entered
Java Syntax
,
Level 6
,
Lesson 2
Resolved
Issue w/ validation
Can anyone point out why this is not validating? Much appreciated!
12/16/22
652
views
3
comments
0
Mats Main
Level 0
Under discussion
why so expensive and not german
hello why is this site so expensive and why no german language
4/21/20
1092
views
1
comment
1
Swarnadip Saha
Level 2
Kolkata
Under discussion
Can I run my own codes in this app
I want to do some codes other than the tasks .Where and How to do them
1/2/23
373
views
1
comment
0
hidden #11220344
Level 3
Under discussion
Task assistance
When reading numbers, I noticed in an example that variables were being used without first being initialised. What's up with that?
1/2/23
463
views
3
comments
0
Pavlo
Level 13
Ilmenau
Question about the task
Multiplication table
Java Syntax
,
Level 4
,
Lesson 5
Under discussion
Char instead of String for Space (" ")
I suppose using ' ' instead of " " leads to adding an ASCII value of ' ' to my i*j term. Is there any other possibility to tell compiler that I mean Character and not it's ASCII value? Of course I can use String, but it appears to me not that efficient.
12/10/22
913
views
4
comments
0
Gummy C
Level 11
United States of America
Question about the task
Remove duplicate strings
Java Syntax
,
Level 5
,
Lesson 3
Under discussion
Fresh code
I don't understand why my code is not passing the test. I have tried different variations of inputs to make sure that it works and it does. Can someone please explain to me what I am doing wrong?
1/1/23
467
views
5
comments
0
Anonymous #11240343
Level 2
CodeGym University in India
New
doubt
in system. out. println("name= " + name) ; why + operator used?
1/1/23
523
views
0
comments
0
Dulsara
Level 10
Colombo
Question about the task
Remove duplicate strings
Java Syntax
,
Level 6
,
Lesson 4
Under discussion
What is wrong with my code?
Scanner scanner =new Scanner(System.in); strings=new String[6]; for(int j=0;strings.length>j;j++){ strings[j]=scanner.nextLine(); } for(int i=0;strings.length>i;i++){ for(int k=i+1;strings.length>k;k++){
12/31/22
517
views
2
comments
0
Cloudclark
Level 1
Aurora
Under discussion
how to redeem premium code?
How do you redeem a premium code?
12/3/22
414
views
1
comment
0
hendra gunawan
Level 9
tebing tinggi
Question about the task
Creating a multi-array
Java Syntax
,
Level 6
,
Lesson 6
Resolved
what wrong with my code?
I have displayed all numbers in multiArray..but the result that I am stuck with last point
12/30/22
536
views
2
comments
0
Ilia Kalugin
Level 25
Novara
Question about the task
Minesweeper (Part 5/16)
Games
,
Level 0
,
Lesson 0
Resolved
Verification of the penultimate item fails
Be sure that a mine is created with a probability of 10%. Whats wrong in my code?
9/24/20
771
views
4
comments
0
Tiko hakobyan
Level 20
Yerevan
Question about the task
One for all, all for one
Java Core
,
Level 6
,
Lesson 10
Resolved
am i missing something? first requirement wont pass.
7/4/20
743
views
4
comments
2
Baljinder Singh
Level 20
Toronto
Question about the task
No interrupt, no dice?
Java Core
,
Level 6
,
Lesson 10
Under discussion
Give me a hint, how to interrupt without using interrupt()
10/29/18
1946
views
6
comments
0
matemate123
Level 50
Kraków
Question about the task
Reading a file
Java Core
,
Level 3
,
Lesson 11
Resolved
And now I pass 4 condition but 3 is now on red.
This topic with streams is so unclear, vague. I sit on this task but how I could do?
12/28/22
676
views
2
comments
0
Gummy C
Level 11
United States of America
Question about the task
Remove duplicate strings
Java Syntax
,
Level 5
,
Lesson 3
Under discussion
I know I am asking a lot
Hi all, I know that I am asking a lot. But, I was able to get the code working, however, I do not really understand how it is working. So, my thought process went something like this. 1. We make an array with 6 elements. 2. We take the user's input and store it in each index. 3. We create a loop
12/29/22
602
views
2
comments
0
yashwanth j v
Level 1
Jakarta
Under discussion
java code
construction of decoder in digital electronics
12/29/22
451
views
0
comments
0
Jurij Thmsn
Level 29
Flensburg
Question about the task
Arkanoid (part 8)
Java Multithreading
,
Level 3
,
Lesson 13
Resolved
why Math.max(...)?
I already solved the task. I get how and why we calculate the distance between two points - but I don't understand one given part of the code: why we check if the distance is less than the bigger radius of the two objects? Shouldn't we check if the distance is less than the both radiuses added tog
10/19/21
718
views
1
comment
1
Gummy C
Level 11
United States of America
Question about the task
Even and odd cells of an array
Java Syntax
,
Level 5
,
Lesson 0
Under discussion
What is wrong with my code?
I ran the code and it shows the correct solution. I am not sure what is wrong with it
12/28/22
441
views
6
comments
0
EDDIE SANCALA JR
Level 6
Caraga DAVAO ORIENTAL
Question about the task
Even and odd cells of an array
Java Syntax
,
Level 5
,
Lesson 0
New
Solution
package en.codegym.task.pro.task05.task0502; /* Even and odd cells of an array */ public class Solution { public static final String ODD = "Odd"; public static final String EVEN = "Even"; public static String[] strings = new String[5]; public static void main(String[] args) {
12/27/22
375
views
0
comments
0
matemate123
Level 50
Kraków
Question about the task
Reading a file
Java Core
,
Level 3
,
Lesson 11
Under discussion
The BufferedReader must also be closed.
But I closed it. I was reading other people problem with this task , and I don't understand whats going on with this closing stream. Please some hint.
12/27/22
491
views
1
comment
0
Gummy C
Level 11
United States of America
Under discussion
What is wrong with my code. It is printing the frame but I am getting an extra B on the side.
int a=0; while(a<10){ int b=0; if(a ==0 || a==9){ while(b<20){ b++; System.out.print("B"); } }else{ System.out.println("B B"); } a++; }
12/27/22
366
views
0
comments
0
slyyx
Level 15
New York City
Question about the task
Snake (Part 6/20)
Games
,
Level 0
,
Lesson 1
Resolved
Error says there are no arguments in the Snake constructor?
Getting the following error: com/codegym/games/snake/part06/Snake.java:12: error: constructor GameObject in class com.codegym.games.snake.part06.GameObject cannot be applied to given types; public Snake(int x, int y){ ^ required: int,int found: no arguments
7/19/20
1089
views
1
comment
0
Dustin Lerch
Level 9
United States of America
Question about the task
Minesweeper (Part 3/16)
Games
,
Level 0
,
Lesson 0
New
What is this ??? I just want the game to launch. (LINUX)
Can anyone provide some advice ? I didnt do anything with task 3 yet because I dont want to continue until i can figure out how to launch this game via linux OS /home/dustinlerch/.jdks/corretto-1.8.0_352/bin/java -javaagent:/home/dustinlerch/idea-IC-221.5080.210/lib/idea_rt.jar=44107:/home/dustinle
12/24/22
473
views
0
comments
0
Show more
1
...
36
37
38
39
40
...
374
Please enable JavaScript to continue using this application.