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
Djole
Level 41
Belgrade
Question about the task
Space (part 15)
Java Collections
,
Level 3
,
Lesson 15
Resolved
code looks legit but fails
... private ArrayList<Ufo> ufos = new ArrayList<>(); private ArrayList<Rocket> rockets = new ArrayList<>(); private ArrayList<Bomb> bombs = new ArrayList<>(); ... public void moveAllItems() { // Get a list of all objects in the game and call
28.05.2019
1327
views
5
comments
0
Jaime
Level 4
Panshanger
Question about the task
Day of the week
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Why won't this work?
I keep getting an "error converting a string to a number message" . I've looked over the code many times and just can't see the problem. Any help would be appreciated. Thanks
19.05.2019
1220
views
5
comments
0
Dona
Level 7
Question about the task
Currency exchange
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
can anyone help me with this code?
public class Solution { public static void main(String[] args) { //write your code here convertEurToUsd(12,23.2); convertEurToUsd(3,4.7); System.out.println(dollar); return dollar; } public static double convertEurToUsd(int eur, double exchangeRat
20.05.2019
1460
views
6
comments
0
rohan lakhe
Level 2
Hyderabad
Question about the task
Our first converter!
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Why return is TF and not 0?
why the return in the code is and not 0 double TF = 9 / 5.0 * celsius + 32; >>>>> "return TF"
28.05.2019
1285
views
2
comments
0
Dona
Level 7
Question about the task
Deep and pure love
Java Syntax
,
Level 3
,
Lesson 8
Resolved
what's wrong in my code?
someone help me
21.05.2019
1446
views
3
comments
0
Mario
Level 8
Lodz
Question about the task
Create a Friend class
Java Syntax
,
Level 5
,
Lesson 7
Under discussion
color vs colour
I know, I should spot it, but I set colour as color, I learned english in UK (and that was the reason, why I have to run it twice). LOL
26.05.2019
1194
views
1
comment
0
Yash
Level 15
Sugar Hill
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
I dont know how
I think I misunderstood the conditions.
28.05.2019
1159
views
1
comment
0
suresh yadav
Level 2
Gorakhpur
Question about the task
CodeGym. Learn once - use anywhere
Java Syntax
,
Level 1
,
Lesson 4
Resolved
how to use loop
how to use loop for writing a string/text 10 times.
19.08.2018
2622
views
2
comments
2
Adrian George Teodorescu
Level 4
Bucharest
Resolved
Why it's not working? it seems very simple
public class Solution { public static void main(String[] args) { //write your code here convertEurToUsd(5,1.400); convertEurToUsd(60000,20.9); System.out.println(convertEurToUsd()); System.out.println(convertEurToUsd()); } public static double
28.05.2019
1275
views
3
comments
0
Nastya Varennikova
Level 11
Sumy
Question about the task
Multiplication table
Java Syntax
,
Level 4
,
Lesson 10
Resolved
Help! Why don't work?
I don't understand why this code don't work
09.03.2019
1757
views
12
comments
1
Yash
Level 15
Sugar Hill
Question about the task
Lonely arrays interact
Java Syntax
,
Level 7
,
Lesson 4
Archived
???
Help, not working, compiler error. java.lang.nullpointer exception. Line 38.
28.05.2019
1696
views
1
comment
0
Connor
Level 8
Boston
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Trouble understanding how to manipulate HashMaps
I've been having trouble really comprehending hashmaps from the start. I don't want to just copy code, that isn't how to learn. I've spent much longer on this than I would like, and no matter how many articles I've read on SO or in the JAVADOCS I'm just having a super hard time understanding the Ite
24.05.2019
1352
views
4
comments
0
satish
Level 15
kadapa
Question about the task
Greater than 10? You're not a good fit for us
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
whats the mistake
Adding the elements to a set is correct but why it is showing wrong
28.05.2019
1066
views
1
comment
0
Yash
Level 15
Sugar Hill
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
Why not work
package com.codegym.task.task06.task0621; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Cat relations */ public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(n
28.05.2019
1086
views
1
comment
0
Mohit Dubey
Level 4
Mumbai
Question about the task
Our first converter!
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Please resolve this
According to the formula Answer is 5.0. Then how can it be 105.8;
28.05.2019
2023
views
2
comments
0
JeRiF94
Level 22
Baku
Question about the task
The early bird gets the worm
Java Core
,
Level 6
,
Lesson 13
Under discussion
MissUnderstood
I'm trying to understand , but nothing happen.
25.05.2019
1196
views
1
comment
0
Bert Doe
Level 22
Flanders
Question about the task
OOP: Books
Java Core
,
Level 5
,
Lesson 2
Under discussion
I don't know what's wrong with this code? only the agatha christie returns an error.
package com.codegym.task.task15.task1504; import java.util.LinkedList; import java.util.List; /* OOP: Books */ public class Solution { public static void main(String[] args) { List books = new LinkedList(); books.add(new MarkTwainBook("Tom Sawyer")); books.add(new A
01.05.2019
1483
views
2
comments
0
errorCode
Level 9
Makati
Question about the task
Going national
Java Syntax
,
Level 8
,
Lesson 11
Archived
Please help! I'm stuck. XD
I can't figured this out.
24.10.2018
1810
views
1
comment
0
Sargam
Level 3
Aligarh
Question about the task
Sam I Am
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
Help
I have covered 6 combinations.Which one's is left?
22.10.2018
1954
views
4
comments
0
Cinthya Cabanzo
Level 22
Bogota
Question about the task
Task about algorithms
Java Syntax
,
Level 9
,
Lesson 11
Resolved
Runs ok in IntelijIDEA but not in the Web Page
Hi Pals, Here said that "java.lang.NullPointerException: Solution.java, method main, line: 18" An attempt was made to access an uninitialized object (Null). But in the IDEA return : Apple 22 Bob 3 Cherry 1 0 Watermelon Process finished with exit code 0 Please help me.
27.05.2019
1773
views
7
comments
0
edis emin
Level 7
London
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 4
Archived
Why does this code work in Eclipse IDE but not on CodeGym IDE?
import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in)); String num = buffer.readLine(); int number = Integer.parseInt(num); if(number>0)
22.04.2019
1453
views
4
comments
0
Henk
Level 19
Pretoria
Question about the task
Horse racing
Java Core
,
Level 6
,
Lesson 5
Archived
code looks correct as per requirement, but I'm obviously missing something small ?
cannot pass 3rd requirement.... Also, the output is not coherent/consistent: it displays some of the horse more than once, but I think it's because the while loop driving it, doesn't constitute the best way to start the whole thread ?
24.05.2019
1859
views
2
comments
0
romeo
Level 5
Paramaribo
Question about the task
Number of days in the year
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Can anyone help me spot the error? condition 3 not met
I entered 1988 and got days = 365 which is correct.
28.05.2019
1686
views
1
comment
0
AndroidMalaya
Level 4
Shah Alam
Under discussion
Problem when doing activity using mobile phone
When enable desktop version, it will get zoom in and cannot zoom out. When in mobile version, the word will always be replaced repeating to only 1 char .
27.05.2019
1233
views
2
comments
0
Manoj Chander
Level 11
Singapore
Question about the task
Vowels and consonants
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Verification Error
The output is correct . But i'm getting verification error . Please help to rectify . Thanks .
28.05.2019
1110
views
2
comments
0
satish
Level 15
kadapa
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
what was the mistake
is that increment and decrement operations of for loop correct
27.05.2019
1301
views
3
comments
0
Rusu Adelina
Level 17
Iasi
Question about the task
1 to 10
Java Syntax
,
Level 4
,
Lesson 10
Resolved
help! i need a hint
int a = 1; while (a<10){ System.out.println(a); a++; } System.out.println("Loop finished");
25.03.2019
1552
views
2
comments
1
Naman
Level 2
Thana Bhawan
Question about the task
Bugs and features
Java Syntax
,
Level 0
,
Lesson 8
Resolved
Its not a bug it's a feature
System.out.println("It's not a bug - it's a feature.")
21.04.2019
1562
views
2
comments
0
shabarish kumar
Level 20
Hyderabad
Under discussion
Can anyone help me to find the mistake. Please help me, this is failing at
package com.codegym.task.task06.task0621; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Cat relations */ public class Solution { private static int i= 0; private static int j = 0; public static void main(String[] args) thr
25.05.2019
1276
views
1
comment
0
Pioniio
Level 22
Schaffhausen
Resolved
task0905: Why is number of methods 3
Hi task0905 In the blue depths of the stack trace…: My solution works fine. But i don't understand why the number of methods in the stack trace is 3 (variable int deep). We have main method (method 1) which calls getStackTraceDepth method (method 2), hence two methods. Why isn't the answer 2 then? t
27.05.2019
1340
views
2
comments
0
Show more
1
...
316
317
318
319
320
...
372
Please enable JavaScript to continue using this application.