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
thisisalongname
Level 1
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
1391
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
1423
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
1124
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
1292
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
1312
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
1157
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
2035
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
1055
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
1974
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
1473
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
1412
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
946
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
1160
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
1395
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
1375
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
2293
views
15
comments
0
Godwin
Level 14
Sango
Under discussion
How is a set method different from an initialize method?
what are their similarities and differences?
26.04.2019
1080
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
1583
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
1515
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
1490
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
1990
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
1449
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
1100
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
977
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
1167
views
2
comments
0
Steven Mcilhone
Level 17
Belfast
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Archived
question
3. Displays the maximum of the N entered numbers. does this mean find the largest number from the numbers entered?
25.04.2019
1083
views
1
comment
0
Djole
Level 41
Belgrade
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Resolved
why is it not working???
public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String grandfatherName = reader.readLine(); Cat catGrandfather = new Cat(grandfatherName);
03.01.2019
1763
views
3
comments
0
Djole
Level 41
Belgrade
Question about the task
TableAdapter
Java Core
,
Level 9
,
Lesson 3
Resolved
last condition not satisfied??
public class Solution { public static void main(String[] args) { ATable aTable = new ATable() { @Override public String getCurrentUserName() { return "Amigo"; } @Override public String getTableName() {
02.02.2019
1280
views
1
comment
0
Jane
Level 3
Cape Town
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Can something like this work?
My first thought was to do something like this and it (of course) did not work. The question is... is there a way to make something like this work in a slightly different way? public class Solution { public static int min(int a, int b, int c) { int m1; int m2; if (a &l
23.01.2019
1861
views
11
comments
0
Darko Jakimovski
Level 18
Kriva Palanka
Question about the task
Functionality is not enough!
Java Syntax
,
Level 10
,
Lesson 11
Resolved
Validation gets frustrating
How in the ungodly crap am I not clearing the last condition? Elaborate please
23.04.2019
1607
views
3
comments
0
Show more
1
...
328
329
330
331
332
...
371
Please enable JavaScript to continue using this application.