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
FelixUjo
Level 35
Gijón
Question about the task
Rounding numbers
Java Core
,
Level 8
,
Lesson 11
Under discussion
I don't know what to do
I think I'm missing something
05.11.2023
96
views
3
comments
0
Anonymous #11418252
Level 15
Question about the task
Path update
Java Syntax
,
Level 9
,
Lesson 3
Under discussion
What's wrong with my code?
Hello! My solution isn't validate from the compiler. Why? Thanks a lot!
11.11.2023
81
views
2
comments
0
Alana Robinson
Level 4
United States of America
Question about the task
School or college
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
In this task I keep getting an error message. I'm confused where I should put the curly braces.
In this task I keep getting an error message. I'm confused where I should put the curly braces.
10.05.2022
646
views
3
comments
0
Karthik .R
Level 3
India
Question about the task
Reading and converting strings
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
how to add lines from keyboard??
what does that mean?? what is scanner? why to use that??
08.01.2023
270
views
1
comment
0
Evghenii Seremet
Level 41
London
Question about the task
HTML Editor (part 13)
Java Multithreading
,
Level 8
,
Lesson 15
Resolved
I must be doing something wrong, can someone point what is the issue? thanks
code from TextEditMenuListener class: public void menuSelected(MenuEvent menuEvent) { JMenuBar jMenuBar = (JMenuBar) view.getContentPane().getComponent(0); for(int i=2; i<6; i++) { JMenu jMenu = jMenuBar.getMenu(i); for (Component item : jMenu.getMenuCompo
24.12.2019
1376
views
3
comments
1
Dương Tiến Đạt
Level 41
Ha Noi City
Question about the task
Plants vs Zombies
Java Multithreading
,
Level 8
,
Lesson 10
Resolved
Where to put arriveAndDeregister()?
Can someone tell me where to phaser.arriveAndDeregister()? I tried every place possible and still failed. The validator is really racking by brain.
10.10.2020
491
views
6
comments
0
Djole
Level 41
Belgrade
Question about the task
Mastering switch
Java Multithreading
,
Level 8
,
Lesson 2
Resolved
output matches condition, so where is the catch?
public static void switchTest(Enum obj) { // Add your code here String s = obj.getClass().getSimpleName(); switch(s){ case "E1": System.out.println(String.format("It's %s.%s", s, obj.name())); break; case "E2":
14.05.2019
1360
views
3
comments
2
Jesú
Level 14
Madrid
Resolved
I don't understand this about Strings and equality.
I think I found a contradiction. In JavaSyntaxZero Level 3 Lecture 6, this is said about strings: However, in the previous lecture, it shows two strings with the exact same text, having different references that point to memory: Could somebody explain why the strings with identical text have diff
07.11.2023
203
views
3
comments
0
Jonas
Level 41
Vilnius
Question about the task
Archiver (part 17)
Java Multithreading
,
Level 7
,
Lesson 15
Under discussion
Please help
It says: "The method adds new files to the archive incorrectly." I don't know how to do it
31.05.2020
514
views
3
comments
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
Archiver (part 15)
Java Multithreading
,
Level 7
,
Lesson 15
Resolved
Extraction code not passing validation
I felt a little like shooting in the dark on this task since we haven't been given an example of code to extract a file from a Zip yet. But I assumed the copyData method would be used for that. I googled a few options and it seemed they used code similar to copyData with a few other bits. I tried to
24.04.2022
709
views
5
comments
0
sagar thakur
Level 6
CodeGym University in India
Question about the task
Filled rectangle
Java Syntax
,
Level 4
,
Lesson 3
Under discussion
This is a perfectly written code and the output is correct when i use intelliJ still here it shows my answer is wrong
public static void main(String[] args) { int n = 0; while (n < 5) { int m = 0; while (m < 10) { System.out.print("Q"); m++; } System.out.println(); n++;
08.03.2023
167
views
1
comment
0
Attila Ágoston
Level 5
Question about the task
Combining arrays
Java Syntax
,
Level 5
,
Lesson 1
Under discussion
I need help.
I wrote this code and it work as this task insists, but it's not accept as a solution. What's wrong whit my code? resultArray = (firstArray); for (int i = 0; i < resultArray.length; i++) { System.out.print(resultArray[i] + ", "); } resultArray = (secondArray)
07.09.2023
115
views
3
comments
0
Harshit Garg
Level 23
Chandigarh
Question about the task
Next month, please
Java Syntax
,
Level 14
,
Lesson 6
Resolved
pls see this
.... I think the requirements are fulfilled, it doesn't understand this.
05.11.2023
77
views
1
comment
0
Harshit Garg
Level 23
Chandigarh
Question about the task
From if to switch
Java Syntax
,
Level 14
,
Lesson 7
Resolved
wheres the error
pls tell
05.11.2023
87
views
1
comment
0
matemate123
Level 50
Kraków
Question about the task
Log parser (part 1)
Java Collections
,
Level 7
,
Lesson 15
Resolved
My results seems correct but Validator don't like it.
I need some different eyes to look into my code. I don't know where is problem. I think is not bad but still almost all red. Maybe I don't get some condition? Please help!
04.11.2023
88
views
2
comments
0
Jesú
Level 14
Madrid
Resolved
I'm confused about operator precedence
I'm confused about a table showing operator precedence. The table is found in this CodeGym article Why does expr++ have more precedence than ++expr? I thought that ++expr increments first and foremost, whereas expr++ updates its value AFTER being used in the operation. Does anyone understand this?
04.11.2023
167
views
6
comments
0
Jurij Thmsn
Level 29
Flensburg
Question about the task
Determining locking order
Java Multithreading
,
Level 7
,
Lesson 6
Under discussion
Not validating
I think the code returns the requested value - I m testing by changing the order of o1 and o2 in the method call here: solution.someMethodWithSynchronizedBlocks(o1, o2); //true solution.someMethodWithSynchronizedBlocks(o2, o1); //false or by changing the order of obj1 and obj2 in the someMethod
14.01.2022
439
views
2
comments
2
Harshit Garg
Level 23
Chandigarh
Question about the task
Chasing after types
Java Syntax
,
Level 13
,
Lesson 7
Resolved
pls check
why doesn't switch work? package en.codegym.task.pro.task12.task1220; import java.util.ArrayList; /* Chasing after types */ public class Solution { public static void main(String[] args) { var elements = new ArrayList<>(); elements.add("Hello"); elements.add(1
02.11.2023
117
views
5
comments
0
Harshit Garg
Level 23
Chandigarh
Question about the task
Double curly braces
Java Syntax
,
Level 13
,
Lesson 6
Resolved
no compiler error, why wrong?
requirement looks like not programmed correctly..
29.10.2023
83
views
2
comments
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
Snake (Part 5/20)
Games
,
Level 0
,
Lesson 1
Under discussion
Just want to ask clarification on where classes are declared
I don't have a problem with code I'm working on, I just want to ask a question about something regarding creating classes. In some cases, like this project, we create classes in separate .java files (apple.java, snake.java, etc). But some of the other tasks we have done previously have us create mul
23.07.2021
618
views
1
comment
1
Jurij Thmsn
Level 29
Flensburg
Question about the task
No goofing off
Java Multithreading
,
Level 5
,
Lesson 7
Resolved
NullPointer Exception
I already looked up the Right Solution - so I already know how to solve the task. I still don't understand why I get a NullPointerException if I write the run() method like this: public class TaskManipulator implements Runnable, CustomThreadManipulator{ private Thread thread; @Override
02.11.2021
545
views
14
comments
1
Van Ha
Level 41
Bodegraven
Question about the task
Comments inside XML
Java Collections
,
Level 3
,
Lesson 10
Resolved
No clue
Don't have any idea how to solve this further, some hints would be appreciated.
27.03.2020
1219
views
10
comments
0
K J LAKSHMI PRASAD
Level 4
kalasalingam University
Question about the task
Sum of numbers not divisible by 3
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
printing sum of numbers except divisible by 3
public class Solution { public static void main(String[] args) { //write your code h int i=0; int sum=0; while(i<100){ i++; if(i%3==0){ continue; } sum=sum+i;
28.10.2023
114
views
1
comment
0
Jonas
Level 41
Vilnius
Question about the task
Caching proxy
Java Collections
,
Level 7
,
Lesson 6
Resolved
Please, only one condition
How can you pass 7th and 8th conditions at the same time? They're opposite for each other. If you find element in cache, you cannot search for the element in storage(Condition 6), but if you don't search you cannot pass condition 7. Please help, I'm confused.....
26.03.2020
957
views
3
comments
0
Kyle Akuya (Wicked98)
Level 18
United States of America
Question about the task
Binary to hexadecimal converter
Java Syntax
,
Level 10
,
Lesson 2
Under discussion
Right Output but not passing task requirements
The output I get from this code is correct, but it isn't passing the task requirements (specifically the first two). Why do I keep on having this issue? Please help.
27.10.2023
92
views
2
comments
0
FelixUjo
Level 35
Gijón
Question about the task
Splitting a file
Java Core
,
Level 8
,
Lesson 5
Resolved
I don't think I understand what void write(byte[] buff,int form, int count) is doing.
I don't think I understand what void write(byte[] buff,int form, int count) is doing.
24.10.2023
94
views
2
comments
0
koko
Level 1
Under discussion
efp hack
pubg hack efp
26.10.2023
68
views
0
comments
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
Knowledge is power!
Java Multithreading
,
Level 4
,
Lesson 9
Under discussion
I can get it sorting correctly, but I don't understand the Formatting part at all
I vaguely understand what ChoiceFormat does (it says that it's meant for controlling how singular/plurals work, but CG is using it differently here). I understand that there are two arrays, filelimits and filepart, and that the indexes of the former match up with the indexes in the latter. For examp
14.01.2022
689
views
3
comments
1
- FniJnn -
Level 33
Paris
Question about the task
Refactoring, anonymous classes
Java Multithreading
,
Level 4
,
Lesson 9
Resolved
How to create a new object of an anonymous class ?
Everything is in the title, thanks :)
27.01.2020
1151
views
4
comments
2
Bertalan
Level 10
Question about the task
Inheriting methods
Java Syntax
,
Level 8
,
Lesson 7
Under discussion
Buggy tasks?
I'm maybe doing something wrong, but unless I exit this task and reenter it, it just shows the same class in every file, even for the default starting point. Same with the other inheritance task before this. i just pushed show correct solution in the end and published that
22.10.2023
74
views
0
comments
0
Show more
1
...
7
8
9
10
11
...
366
Please enable JavaScript to continue using this application.