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
All quests
All levels
Any status
Questions about tasks
Hot
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
578
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
671
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
2079
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
396
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
389
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
543
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
645
views
3
comments
0
myqms
Level 12
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
376
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
458
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
331
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
560
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
356
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
630
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
542
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
554
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
3024
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
2078
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
1473
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
396
views
3
comments
0
sourav bamotra
Level 20
jammu
Question about the task
GCD
Java Core
,
Level 4
,
Lesson 8
Resolved
how to encounter the second requirement -_-
what actually the 2nd requirement asks us to do. it doesn't specifically says that if integer is negative throw exception. it says if lines can't be converted to positive throw exception.
18.09.2020
600
views
4
comments
0
SOUFIANE DAHIMI
Level 32
Marrakech
Question about the task
Chat (part 11)
Java Multithreading
,
Level 6
,
Lesson 15
Under discussion
I tried my best to figure out a suitable solution, but it still doesn't pass !!! Please I need you help
I don't know honesly what is messing. I tried with different approaches but none of them met the requirements. Could you help me
25.04.2020
762
views
1
comment
2
manatsu ginn
Level 28
Tokyo
Question about the task
Chat (part 11)
Java Multithreading
,
Level 6
,
Lesson 15
Under discussion
God, plz help.
I don't know what it wants.
16.07.2020
371
views
1
comment
0
Niklas Braun
Level 33
Freiburg
Question about the task
Chat (part 11)
Java Multithreading
,
Level 6
,
Lesson 15
Under discussion
last condition not passed
Last condition is not passed. Problems with closing the connection in the run() method. I already tried with putting the connection into the try-with-resources-statement and with closing the connection in the finally-block. Both solutions did not work.
17.06.2020
486
views
2
comments
0
Andrei
Level 41
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
I am trying to use the modulo in this way. Can someone please guide me with some pointers?
Can someone please let me know what is wrong with my code? I have tried many variants but none seem to be working. I am missing some information regarding how the modulo operator works? import java.io.*; import java.util.Scanner; public class Solution { public static void main(String[] args)
16.09.2020
688
views
4
comments
0
Inifome
Level 10
Delta
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Resolved
can't find the problem
can't satisfy the fourth condition onwards
17.09.2020
560
views
2
comments
0
Gabriel Gathogo
Level 4
Nairobi
Question about the task
Minimum of two numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
HELP ME OUT
else without if
18.09.2020
1065
views
2
comments
0
Sela
Level 20
Question about the task
Most frequent bytes
Java Core
,
Level 8
,
Lesson 3
Resolved
how to buffer readings from very big files like over 20 MB
task completed but i have not figured out yet how to buffer readings from very big files. i have used fileInputStream.read() to read from file but for length of above 20 MB it is very slow. if i will use fileInputStream.read(chunkArray) then i could not add this chunk arrays into ArrayList beca
16.09.2020
424
views
2
comments
1
ANUJA ARJUNAN
Level 5
Munnar
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
plz help me
i don't know what is the error here?
15.01.2019
2531
views
12
comments
0
Harikrishnan B
Level 3
Bangalore
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
is there an option to re run already completed task and see results?
is there an option to re run already completed task and see results?
12.09.2020
437
views
1
comment
0
Ákos Kovács
Level 10
Budapest
Question about the task
Duplicating words
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Error during validation, but output looks OK
Please check my attached solution.
05.07.2020
765
views
6
comments
0
Show more
1
...
134
135
136
137
138
...
371
Please enable JavaScript to continue using this application.