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
Henrique
Level 41
São Paulo
Question about the task
Read online about the median of a sample
Java Multithreading
,
Level 6
,
Lesson 2
Under discussion
Code throws exception, don't know how to solve
This code is probably completely wrong, but that's what I was able to do. Message: "Be sure that the sort(Integer[] array) method correctly sorts the data in an array with an even number of elements." When testing, this is the message of the Exception: Exception in thread "main" java.lang.ClassCas
06.08.2020
429
views
1
comment
0
Anthony Chalk
Level 30
London
Question about the task
Snake (part 12)
Java Multithreading
,
Level 2
,
Lesson 18
Resolved
No idea why this isn't validating
Only other question on this task seems to have the same problem with no answer. Please can someone help
16.09.2020
432
views
9
comments
0
Art
Level 13
Chisinau
Question about the task
The isomorphs are coming
Java Core
,
Level 2
,
Lesson 12
Under discussion
Wheres the issue?
Hi guys, could you help me spot the issue?
29.03.2020
778
views
4
comments
0
Prassha
Level 24
Chagford
Question about the task
Inverted words
Java Multithreading
,
Level 2
,
Lesson 9
Resolved
Please help, i have tired and it is giving the correct output but not verifying.
I am not sure why this not verifying. Where I am going wrong? Going mad here.
28.06.2020
489
views
3
comments
0
Linda
Level 2
Chennai
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
l think I have a problem with min statement
And my code has errors
20.09.2020
375
views
1
comment
0
Lawson
Level 29
Lagos
Question about the task
Fix four mistakes
Java Core
,
Level 4
,
Lesson 8
Resolved
Help
I need help please
28.08.2020
440
views
3
comments
0
Angeget
Level 22
Potsdam
Question about the task
Encryption
Java Core
,
Level 8
,
Lesson 11
Resolved
I am tired trying and trying without result. I need help please. I could not find out the solution
I am tired trying and trying without result. I need help please. I could not find out the solution
12.03.2019
1680
views
3
comments
0
Weichen Ouyang
Level 25
San Jose
Question about the task
Let's count
Java Core
,
Level 7
,
Lesson 10
Under discussion
I believe using yield() will achieve the same result with less editing, what is your opinion?
public static class Counter extends Thread { @Override public void run() { do { synchronized (Solution.class) { incrementCount(); values[getCount()]++; } Thread.currentThread().y
13.09.2019
1218
views
3
comments
0
WLP
Level 41
Question about the task
Several superclasses for generics
Java Collections
,
Level 5
,
Lesson 6
Resolved
confused about this question
This is my solution below but it doesn't verify. It works when running - I get the output as coded. Could anyone give me a clue as to what is wrong here please. Thank you!
19.09.2020
433
views
3
comments
0
John Raets
Level 3
Not in list
Question about the task
Parenthetical brainteaser
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
Where did I go wrong with my brackets in the println?
public class Solution { public static void main(String[] args) { System.out.println((2 * (3 + (4 * (5 + (6 * 7)))))); }
19.09.2020
493
views
1
comment
0
narcissus
Level 5
.
Question about the task
This age doesn't work for me…
Java Syntax
,
Level 4
,
Lesson 1
Under discussion
I solved the task but I have some questions.
1. the meaning of line 12 of code and how does it work? 2. when should we use the key word "this"? actually not in this code only I mean all the time.
08.09.2020
369
views
2
comments
0
hu-zza
Level 22
Budapest
Question about the task
Find the bugs
Java Core
,
Level 10
,
Lesson 10
Resolved
The reason of this
If I understand correctly, it's a solution for a real life situation: 1. There is a class that's not serializable nor externalizable for some reason. 2. We have to extend it because we need its unique functionality, etc... 3.a We have to serialize our heir class. 3.b However, the parent class obstr
17.07.2020
493
views
0
comments
2
John Raets
Level 3
Not in list
Question about the task
Parenthetical brainteaser
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
Very Confused??? Answer is correct but can't figure out why I keep getting the answer about needing 2 starting brackets and 2 ending brackets...HELP!!!!!
public class Solution { public static void main(String[] args) { System.out.println(2*(3+(4*(5+(6*7))))); } }
19.09.2020
567
views
2
comments
0
Denis
Level 22
Kharkiv
Question about the task
Catching a group of exceptions
Java Syntax
,
Level 9
,
Lesson 8
Under discussion
Help me pls
Give me only solution pls for my full understanding.thanks
20.06.2019
1887
views
17
comments
0
Oliver Tookey
Level 10
Hastings
Question about the task
Do we have a pair?
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Cant get it to work when all three numbers are equal. Why isn't this working? Thanks
Cant get it to work when all three numbers are equal. Why isn't this working? Thanks if((nOne==nTwo)&&(nTwo==nThree)); System.out.println(nOne +" " + nTwo +" " + nThree) else if ................
19.09.2020
318
views
1
comment
0
Rim
Level 11
Bucharest
Question about the task
Minimum of N numbers
Java Syntax
,
Level 8
,
Lesson 11
Resolved
why we couldnt resolve it with Collections?
i try to resolvethe problem of the method getMin with collection but it doesnn t work . could someone told me why,please?
16.09.2020
306
views
2
comments
0
Ashleigh
Level 7
Easton
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
How are we able to use i for two loops
I always thought when using more than one loop the i had to change in the 2nd loop to another letter such as j or k yet I have been able to use i in two or more loops such as below. Why is that? for(int i = 0; i < total.length; i++) { total[i] = Integer.parseInt(reader.readLine());
16.09.2020
457
views
2
comments
0
Yuliya Samsonava
Level 3
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Need help
package com.codegym.task.task02.task0204; /* Family relations */ public class Solution { public static void main(String[] args) { // Woman Woman = new Man(); Man Man = new Woman(); Man.wife = Woman; Woman.husband = Man; } public static clas
19.09.2020
530
views
3
comments
0
myqms
Level 33
Landshut
Question about the task
Inverted words
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
My solutions seems to work correkt, but does not pass ???
I debugged my solution and it seems to work correkt, but does not pass. Please help. Where is my mistake?
19.09.2020
286
views
1
comment
0
ADITYA JAYANTH
Level 1
Mumbai
Under discussion
Can anyone explain me how this code works? Thank you in advance!!!
public class Home { int a; int b; public static void main(String[] args) { System.out.print("1"); } public static double pi() { return 3.14; } }
19.09.2020
368
views
1
comment
0
Michał
Level 6
Under discussion
Closed tasks after connection Inelij with CodeGym...
How can I open task after connection Inteliij with CodeGym? I see the instruction but I can not do this. I am after my first use.. Now even level 0 tasks are closed for me...
19.09.2020
245
views
1
comment
0
Michael
Level 10
Dresden
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Although the result is the correct one, the code does not validate. Any ideas, why this is so?
Thanks for your replies!
12.09.2020
475
views
8
comments
0
vamsi mokari
Level 13
Hyderabad
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
Be sure that the program works correctly if the sequence consists of numbers greater than 127.
I am getting below error: Be sure that the program works correctly if the sequence consists of numbers greater than 127. Could you please help me this error , In the problem statement it was mentioned clearly we are adding only 10 numbers in a list
19.09.2020
280
views
1
comment
0
John Raets
Level 3
Not in list
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Can anyone tell me what is wrong with my code even though I get the exact output they are asking for?
package com.codegym.task.task02.task0205; /* Pay raise */ public class Solution { public static void main(String[] args) { hackSalary(7000); } public static void hackSalary(int a) { a = a + 1000; System.out.println("Your salary is: "+(a+1000)+ " dollars per mo
17.09.2020
519
views
4
comments
0
John Raets
Level 3
Not in list
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Don't understand the min(a,b) method with the min(a,b,c,d) method! Can anyone explain and help me out pleaseeeeee!
public class Solution { public static int min(int a, int b, int c, int d) { if(a<=b && a<=c && a<=d) return a; else if(b<=a && b<=c && b<=d) return b; else if(c<=a &a
17.09.2020
430
views
2
comments
0
mona
Level 7
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
can't understand
I can't understand this lesson and task😔😔 please....,anyone explain to me...
16.09.2020
472
views
2
comments
0
Richard Han
Level 4
Lipa
Question about the task
Jen or Jen?
Java Syntax
,
Level 4
,
Lesson 6
Resolved
I dunno
What is wrong with this? I have no idea. Please please PLEASE help
14.09.2018
2819
views
5
comments
0
Angeget
Level 22
Potsdam
Question about the task
DownloadException
Java Core
,
Level 8
,
Lesson 5
Resolved
Has anyone solve this. this make no sense for me. The requirement is confusing. Help please
Has anyone solve this. this make no sense for me. The requirement is confusing.
19.02.2019
1901
views
4
comments
1
Nicolas Huet
Level 41
Provins
Question about the task
Splitting a file
Java Core
,
Level 8
,
Lesson 5
Under discussion
I don't understand how it's writen in the second file just write but not in the second? Output in IntelliJ seems ok...
I don't understand how it's writen in the second file just write but not in the second? Output in IntelliJ seems ok...
04.06.2019
1226
views
6
comments
1
Laura
Level 7
Lübeck
Question about the task
Improving functionality
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
Mistake in my ifs
Hey, I think there is something wrong in my ifs can someone check that, please? Thanks!
17.09.2020
310
views
3
comments
0
Show more
1
...
128
129
130
131
132
...
366
Please enable JavaScript to continue using this application.