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
Djole
Level 41
Belgrade
Question about the task
Chat (part 7)
Java Multithreading
,
Level 6
,
Lesson 15
Resolved
?
public class Server { static Map connectionMap; static { connectionMap = new ConcurrentHashMap(); } public static void main(String[] args) throws IOException { int port = ConsoleHelper.readInt(); ServerSocket ss = new ServerSocket(port); ConsoleHel
26.04.2019
1479
views
1
comment
4
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??
02.01.2023
255
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!
16.12.2022
389
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
21.04.2020
839
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
02.01.2023
147
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?
02.01.2023
229
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.
10.12.2022
369
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?
01.01.2023
230
views
5
comments
0
Anonymous #11240343
Level 2
CodeGym University in India
New
doubt
in system. out. println("name= " + name) ; why + operator used?
01.01.2023
266
views
0
comments
0
Dulsara
Level 9
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++){
31.12.2022
243
views
2
comments
0
Cloudclark
Level 2
Aurora
Under discussion
how to redeem premium code?
How do you redeem a premium code?
03.12.2022
176
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
30.12.2022
216
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?
24.09.2020
552
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.
04.07.2020
524
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()
29.10.2018
1617
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?
28.12.2022
357
views
2
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
Under discussion
answer
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) {
27.12.2022
361
views
1
comment
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
29.12.2022
336
views
2
comments
0
yashwanth j v
Level 1
Jakarta
Under discussion
java code
construction of decoder in digital electronics
29.12.2022
205
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
19.10.2021
402
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
28.12.2022
182
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) {
27.12.2022
132
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.
27.12.2022
207
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++; }
27.12.2022
171
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
19.07.2020
855
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
24.12.2022
201
views
0
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Big Ben
Java Core
,
Level 6
,
Lesson 7
Under discussion
How to implement 24 hour format?
need help
27.02.2019
1629
views
5
comments
0
Jaime Padilla
Level 36
Chandler
Question about the task
Long words
Java Core
,
Level 9
,
Lesson 11
Resolved
What's wrong here?
What's wrong here? I've tried many different solutions and for some reason it won't pass. Why?
20.12.2022
257
views
1
comment
0
Dustin Lerch
Level 9
United States of America
Question about the task
Correct order
Java Syntax
,
Level 7
,
Lesson 2
Under discussion
why isnt my code accepted
i changed the original array? it printed only two lines? what do you want from me lol?
20.12.2022
243
views
1
comment
0
hendra gunawan
Level 9
tebing tinggi
Question about the task
Chess board
Java Syntax
,
Level 6
,
Lesson 5
Resolved
please help ....I'm stuck in the second and the third point....
how to initialized with the appropriate sized and outlined with the task condition.....
20.12.2022
278
views
0
comments
0
Show more
1
...
26
27
28
29
30
...
366
Please enable JavaScript to continue using this application.