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
asyraf
Level 3
Kuala Lumpur
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
does my code wrong
This question provide the error The hackSalary method should increase the input parameter by 1000 and output text to the screen according to the specified template. please someone explain to me what i did wrong here.
28.04.2019
1020
views
4
comments
0
Anastasia Falcon
Level 8
Rio de Janeiro
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Resolved
I could probably solve this in another way, but why doesn't this solution work?
This clearly has some problems but I don't know why. I had a look at the while loops in the lessons where they were explained, but can't see the problem.
27.04.2019
1225
views
9
comments
0
Anastasia Falcon
Level 8
Rio de Janeiro
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Resolved
I will go insane, what is wrong here? Can anyone explain, please?
I've tried various different ways, but I just don't understand what's wrong. The program calculates the result incorrectly, but compiles and passes the "if -1 entered the program should terminate correctly" requirement.
28.04.2019
1167
views
2
comments
0
Roy
Level 22
Bangkok
Question about the task
Buggy initializeIdAndName
Java Core
,
Level 3
,
Lesson 2
Resolved
DBObject object or User object confusion
I have managed to solve the task by checking the other users their help questions here. However, i am still stuck on why the code needs to be changed to User and it can't be a reference to the User object through the DBObject interface. interface DBObject { DBObject initializeIdAndName
26.04.2019
1734
views
7
comments
0
Alex Balandinos
Level 18
Lusaka
Question about the task
Drawing a rectangle
Java Syntax
,
Level 4
,
Lesson 13
Resolved
Hey ,Its printing the 8888 and next line 8888 like in the example output but still checking wrong check correct number row any help will be great.
12.02.2019
2277
views
1
comment
1
thisisalongname
Level 15
Spokane
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Regarding the difference in "==" and ".equals"
I originally wrote my code with "name1 == name2" as the comparing if condition and it didn't work so had to replace it with ".equals". My question is about why it didn't work. From what I understand, "==" checks the place in memory where it is stored rather than a direct comparison. So it wouldn't w
27.04.2019
1205
views
3
comments
0
Beautiful Active Dedicated
Level 4
Arlington, TX
Question about the task
Predictions
Java Syntax
,
Level 3
,
Lesson 8
Resolved
whats the hold up?
what did i do wrong? import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); String name = sc.nextLine(); int number1 = sc.nextInt(); int number2 = sc.nextInt();
27.04.2019
1222
views
2
comments
0
Steven Mcilhone
Level 17
Belfast
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
unsure whats wrong
any help?
28.04.2019
973
views
1
comment
0
dpp
Level 8
Colombo
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Resolved
It says the displayed text doesn't match task conditions
What's wrong with this?
24.04.2019
1141
views
3
comments
0
Roy
Level 22
Bangkok
Question about the task
Writing to a file from the console
Java Core
,
Level 3
,
Lesson 11
Resolved
I close the writer but still have error.
Don't understand why it doesn't work
27.04.2019
1180
views
3
comments
0
Anant Parashar
Level 4
Dehra Dun
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
Shouldn't there be two string variables for two different messages being printed?
In this exercise we are calling print function twice and giving it two different strings but we have declared only one string variable "s" in the print method definition. Shouldn't there be two string variables to receive two different strings?
27.04.2019
945
views
2
comments
0
khushbu Nirmal
Level 7
Mumbai
Question about the task
Display today's date
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
how can we do this task
help
18.11.2018
1864
views
7
comments
0
MOHAMMAD AAZAM
Level 2
Mumbai
Question about the task
Square of a number
Java Syntax
,
Level 1
,
Lesson 8
Archived
Unable to understand
I am unable to understand what's going on and where to declare 5 and what method should be used.
25.04.2019
955
views
1
comment
0
Evghenii
Level 13
Chisinau
Question about the task
18+
Java Syntax
,
Level 4
,
Lesson 6
Resolved
I dont understand what wrong?
How can help me. In program everything work. But in CodyGym no. Where is my mistake ?
24.04.2019
1781
views
3
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Tracking changes
Java Core
,
Level 9
,
Lesson 11
Under discussion
Can you give me some hint how to solve this task?
need help
08.04.2019
1332
views
1
comment
0
Naman
Level 2
Thana Bhawan
Question about the task
CodeGym. Learn once - use anywhere
Java Syntax
,
Level 1
,
Lesson 4
Under discussion
Not able to satisfy text should consist of 10 lines
String s = "_____________"; System.out.print(s + s + s + s + s + s + s + s + s + s )
25.04.2019
1220
views
3
comments
0
MOHAMMAD AAZAM
Level 2
Mumbai
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
I don't understand what's wrong with my code.
I don't understand what's wrong with my code.
27.04.2019
818
views
1
comment
0
dpp
Level 8
Colombo
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Resolved
Bad operand types??
package com.codegym.task.task04.task0416; /* Crossing the road blindly */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { float t; float result; InputStream inputStream=System.in; Reader inputStreamReader=ne
26.04.2019
1027
views
2
comments
0
Riya
Level 8
Karnal
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
Need help
how to realize 6th requirement.
03.10.2018
1268
views
3
comments
0
David Lavigne
Level 19
Lynnwood
Question about the task
Prices
Java Core
,
Level 8
,
Lesson 11
Under discussion
Unable to pass Validation.
My testing seems to pass all validation criteria, however validation fails for: - When the program is run with the arguments "-c productName price quantity", a new line with the corresponding product should be added to the end of the file. - The product must have the next id after the maximum id fo
14.04.2019
1228
views
2
comments
0
WonderWoman
Level 8
Bangalore
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Resolved
Not sure what is wrong with this modified code - this checks for equal conditions as well!
Not sure what is wrong with this modified code - this checks for equal conditions as well!
14.09.2018
2025
views
15
comments
0
Godwin
Level 10
Sango
Under discussion
How is a set method different from an initialize method?
what are their similarities and differences?
26.04.2019
929
views
2
comments
0
Radek
Level 22
Warsaw
Question about the task
Encryption
Java Core
,
Level 8
,
Lesson 11
Resolved
what's wrong
After many tests I am sure, the solution run perfectly and match conditions.
18.11.2018
1456
views
4
comments
0
ARIJIT MONDAL
Level 4
Kolkata
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
Unable to understand the mismatch of the text. Everything is looking fine from my side. But validation fail
validation fails as "The displayed text must fully match the task conditions."
26.04.2019
1304
views
1
comment
0
rey
Level 6
Makati
Question about the task
Only 20 will do
Java Syntax
,
Level 1
,
Lesson 4
Under discussion
ITS IMPOSSIBLE QUESTION
ITS IMPOSSIBLE
19.04.2019
1275
views
4
comments
0
Karan
Level 0
Peshawar
Question about the task
Amigo is very smart
Java Syntax
,
Level 0
,
Lesson 2
Resolved
"Amigo is very smart".
"Amigo is very smart".
24.04.2019
1775
views
1
comment
0
Serg
Level 23
Tyumen
Question about the task
Multiplication table
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
Why does not pass validation (check)?
package com.codegym.task.task03.task0314; public class Solution { public static void main(String[] args) { for (int i = 1; i <= 10; i++){ System.out.println(' '); for (int y = 1; y <= 10; y++){ if((i*y)<10){ System.ou
23.04.2019
1234
views
3
comments
0
dean
Level 8
Deutschland
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Archived
Why it doesn't work?
Why it doesn't work?
25.04.2019
1002
views
4
comments
0
Marco Tidu
Level 2
Iitti
Under discussion
Where can I put the codes on Mac?!?!?
Hello to everyone, I'm getting crazy about finding the Java Virtual Machine on my Mac. I've installed JDK the last version and something else but I cannot find a way to open a JVM. Please HELP :D
25.04.2019
833
views
2
comments
0
rishabh parmar
Level 3
Jhinjhana
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
What is the problem in this code?
I am not able to understand the template mentioned in conditions.
21.04.2019
1062
views
2
comments
0
Show more
1
...
323
324
325
326
327
...
366
Please enable JavaScript to continue using this application.