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
Jeffrey Cabral
Level 4
Chester
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Why does this format work but not other for task #3 & #4?
Why does below code work: Man man = new Man(); Woman woman = new Woman(); woman.husband = man; man.wife = woman; But below code won't work?: Man man = new Man(); Woman woman = new Woman(); man = woman.husband; woman = man.wife;
22.04.2020
1041
views
2
comments
1
Sidd
Level 7
Maple Valley
Question about the task
The humble programmer
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
??
Why dis no work?
21.05.2020
390
views
3
comments
0
Tata
Level 16
Hisar, Haryana
Question about the task
Getters and setters for the Dog class
Java Syntax
,
Level 5
,
Lesson 5
Resolved
why do we use void in set method . As I know that it doesn't return any value but clearify this to understand to me please.
all answers will be appreciated. 🙂
21.05.2020
798
views
2
comments
0
Nishant Bhatia
Level 13
Navi Mumbai
Question about the task
To the top of the list
Java Syntax
,
Level 7
,
Lesson 6
Resolved
Can anyone please identify the problem?
12.06.2019
1577
views
3
comments
0
yz
Level 37
Jakarta
Question about the task
Unequal exchange
Java Collections
,
Level 9
,
Lesson 9
Resolved
what kind of binary is this?
any hint pls
30.04.2020
731
views
2
comments
0
Joy Majumdar
Level 16
Kolkata
Question about the task
Request parser
Java Core
,
Level 5
,
Lesson 12
Under discussion
Please help my brain is getting puzzled
What part to rectify ?
15.08.2019
1387
views
3
comments
0
Michael Brimage
Level 19
Washington D.C.
Question about the task
Spaces
Java Core
,
Level 8
,
Lesson 11
Resolved
is my Casting the problem Line 29??
Hello everyone, I cant quite make out what my issue is. Ive looked at some of the other questions raised about this problem. I still cant quite make it out. Your assistance is greatly appreciated. Mike
21.05.2020
440
views
6
comments
0
Pranesh Gandhi
Level 4
Los Angeles
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
ans problem
I am getting the correct ans but still cannot get task passed. I don't know what is the problem. It giving me error in last Condition.
21.05.2020
331
views
3
comments
0
Andreas Dengler
Level 16
Bielefeld
Question about the task
Sorting even numbers from a file
Java Core
,
Level 3
,
Lesson 11
Under discussion
Help please
I get the message I get to many lines. I saw already answers saying you read the byte instead of the number itself. Probably thats my fault but I dont know how to solve it and if this is really my Problem.
24.04.2020
786
views
2
comments
0
Mark C David
Level 2
Mumbai
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Typo or forgot to add 0
Getting error "Typo or forgot add 0"
21.05.2020
274
views
1
comment
0
Tata
Level 16
Hisar, Haryana
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
please correct me where i'm going wrong??
here's my code : I tried both of code in comments and after comment. public class Solution { pu
16.05.2020
525
views
6
comments
0
Tata
Level 16
Hisar, Haryana
Question about the task
Positive number
Java Syntax
,
Level 4
,
Lesson 7
Resolved
give me hint ,please!!
here's my code: BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String aa = reader.readLine(); int a = Integer.parseInt(aa); String bb = reader.readLine(); int b = Integer.parseInt(bb); String cc = reader.readLin
17.05.2020
635
views
3
comments
0
noctafrey
Level 2
Braunschweig
Under discussion
Was sind Referenztypen ? bzw zusammengesetzte Typen
Hallo Leute ich verstehe einen zusammenhang nicht wirklich vielleicht könnt ihr mir ja helfen :) In Level 2 Lesson 2 werden zusammengesetzte typen erklärt und ich glaube ich habe sie sie verstanden das man mit ihnen neue Typen für variabeln "erschaffen" kann. Ich habe versucht nach dem Beispiel vor
21.05.2020
294
views
2
comments
0
Lex Medeiros
Level 18
San Jose
Question about the task
Task No. 2 about integer type conversions
Java Syntax
,
Level 10
,
Lesson 4
Under discussion
You can't change the initialization of variable c, but you can add a cast operator.
Could anyone tell me what I am doing wrong? I added a cast operator to a in the division so I can get 3.75.
19.04.2019
1692
views
4
comments
0
Marcin Olech
Level 41
Kraków
Question about the task
CashMachine (part 9)
Java Collections
,
Level 9
,
Lesson 15
Under discussion
Im confused. Everything seems like in requirements but doesn't pass.
1st and 2nd requirements. What else can I do?:)
27.02.2020
1078
views
6
comments
0
arvindsid
Level 10
Chennai
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
don't understand what is wrong with the code
https://codegym.cc/quests/lectures/questsyntax.level05.lecture05 Implement the fight method Dont understand whats wrong in the below code. package com.codegym.task.task05.task0502; /* Implement the fight method */ public class Cat { public int age; public int weight; public int s
06.09.2018
1842
views
5
comments
2
Niladri pradhan
Level 33
Mumbai
Question about the task
Cats
Java Core
,
Level 4
,
Lesson 4
Under discussion
why did i get a null pointer exception
null pointer exception
14.08.2019
861
views
2
comments
0
Jason Ahn
Level 5
Calgary
Question about the task
Sum of the digits of a three-digit number
Java Syntax
,
Level 3
,
Lesson 12
Resolved
Please help
I'm getting this error and don't know what the problem is... package com.codegym.task.task01.task0132; /* Sum of the digits of a three-digit number */ public class Solution { public static void main(String[] args) { System.out.println(sumDigitsInNumber(546)); } public st
18.12.2018
2312
views
3
comments
0
manatsu ginn
Level 28
Tokyo
Question about the task
Words with numbers
Java Core
,
Level 9
,
Lesson 11
Under discussion
doesn't ".*//d+.*" can determine whether a string contains number? please help.
package com.codegym.task.task19.task1923; import java.io.BufferedReader; import java.io.FileReader; import java.io.FileWriter; import java.io.BufferedWriter; /* Words with numbers */ public class Solution { public static void main(String[] args) throws Exception{ BufferedReader br =
20.05.2020
726
views
6
comments
0
manatsu ginn
Level 28
Tokyo
Question about the task
Replacing numbers
Java Core
,
Level 9
,
Lesson 11
Archived
Please help, is there any problem with regex \\d{1,2}\\D* ?
Please help, is there any problem with regex \\d{1,2}\\D* ?
20.05.2020
505
views
4
comments
0
jajaceek
Level 23
Warszawa
Question about the task
Minesweeper (Part 12/16)
Games
,
Level 0
,
Lesson 0
Resolved
I have no idea how to solve the task.
I made several trials but nothing works. Blows there is the last trial but it also doesn't work. Any clue how to solve? // if (!gameField[y][x].isOpen){ // return; // } // else if (gameField[y][x].isFlag || gameField[y][x].isMine){ // return;
07.01.2020
1003
views
4
comments
1
Picvajzmen
Level 20
Belgrade
Question about the task
Number of letters
Java Syntax
,
Level 10
,
Lesson 11
Resolved
canot verify!
Cant verify and i do not know why... It says that the program does not display text on the screen, which it obviously does...
17.06.2019
1098
views
3
comments
0
Dinesh
Level 7
Delhi
Question about the task
Display right away
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
problem while running in Intellij Idea
Actually I was working on the task Sum OF 3 DIGIT NUMBERS using intellij Idea. When I finished the program and tried to run in intellij idea it moved me to the mentioned task that I had already completed through the browser rather than using IDE . But I thought it might be the cause of problem
20.05.2020
448
views
2
comments
0
Dinesh
Level 7
Delhi
Question about the task
Financial expectations
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
Getting desired output but the condition is not satisfied.
Gave d as console input for the desired output
20.05.2020
464
views
2
comments
0
Show How
Level 13
Manchester
Question about the task
Let's make the code do something useful!
Java Syntax
,
Level 9
,
Lesson 11
Resolved
test is not passing please help
Only the 3rd condition is not passing after countless times of submission. Please help whats happening here. Thanks.
20.05.2020
510
views
4
comments
0
Shreyas Sadgir
Level 11
Pune
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Resolved
getting correct answer still not satisfying 4th condition
getting correct answer still not satisfying 4th condition
20.05.2020
366
views
3
comments
0
MBC
Level 14
Apeldoorn
Question about the task
Five winners
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Sorting validation won't pass
When I test it, it works. But for some reason, it the tests don't see my sorting in desceding order method?
19.07.2019
1104
views
3
comments
0
Wes Reed
Level 10
Alexandria
Question about the task
Do we have a pair?
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Not clear on why the 3rd and 4th conditions are not passing
package com.codegym.task.task04.task0417; /* Do we have a pair? */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String reader1 = reader.readL
20.05.2020
328
views
3
comments
0
David
Level 26
Bucharest
Question about the task
Factorial
Java Core
,
Level 5
,
Lesson 12
Resolved
help
I dont know what's wrong public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int input = Integer.parseInt(reader.readLine()); reader.close(); System.o
20.05.2020
392
views
2
comments
0
Rob
Level 3
Lommel
Question about the task
Our first converter!
Java Syntax
,
Level 2
,
Lesson 2
Resolved
No idea what is wrong with this.
Some help please.
20.05.2020
623
views
4
comments
0
Show more
1
...
184
185
186
187
188
...
366
Please enable JavaScript to continue using this application.