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
Java 25
All quests
All levels
Any status
Questions about tasks
Hot
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.
5/27/19
1960
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)
4/22/19
1635
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 ?
5/24/19
2008
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.
5/28/19
1796
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 .
5/27/19
1362
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 .
5/28/19
1231
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
5/27/19
1480
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");
3/25/19
1701
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.")
4/21/19
1697
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
5/25/19
1462
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
5/27/19
1491
views
2
comments
0
Jacob Warren
Level 8
Tampa
Under discussion
How to run a program in IntelliJ IDEA?
I am trying to test my program using the run command in IntelliJ but it is blurred out. The only way that I have found is going up to run tab on mac and doing a special run since the solution.java is in a different location is this the only way to actually run the program?
5/25/19
1535
views
1
comment
0
Naman
Level 2
Thana Bhawan
Under discussion
Text should consist of 9 lines
I have created blank lines instead it shows text should consist of nine lines
4/29/19
1514
views
1
comment
0
Evghenii
Level 13
Chisinau
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 7
Resolved
What yhe problem? Can somebody to explayn me?
I dont see what mistake I do?
4/27/19
2151
views
8
comments
1
Girish
Level 5
Chicago
Under discussion
How to unlock the lessons
How to unlock the lessons
5/27/19
1677
views
1
comment
0
Mohamed Nagy
Level 7
Alexandria
Question about the task
Describing numbers
Java Syntax
,
Level 4
,
Lesson 7
Archived
whats the problem guy please help
the last condition fails why??
5/17/19
1573
views
3
comments
1
dpp
Level 8
Colombo
Question about the task
Describing numbers
Java Syntax
,
Level 4
,
Lesson 7
Archived
Runs perfectly but doesn't pass the test
When I run it all the conditions are satisfied but the verification says that the 1-999 thing is not satisfied
4/26/19
1479
views
2
comments
1
Steven Mcilhone
Level 17
Belfast
Question about the task
HashMap of Objects
Java Syntax
,
Level 8
,
Lesson 3
Resolved
unsure what to do
see code
5/7/19
1808
views
7
comments
0
Chiritoiu Cristian
Level 4
Bucharest
Question about the task
What's the cat's name?
Java Syntax
,
Level 4
,
Lesson 2
Under discussion
Help the cat get a name using the setName method
I need more tips for doing this task. Some code would be great!
1/27/19
3535
views
6
comments
0
harshshah
Level 9
Gandhinagar
Question about the task
Deep and pure love
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
Dispaly dosen't match\
Didn't able to find the mistake in white space...!
4/8/19
1667
views
7
comments
0
Jyothi
Level 20
Question about the task
Working with dates
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
verify failing. please advise
Screen output from the program (System.out) 120 false
12/30/18
1642
views
2
comments
0
WatWat
Level 9
Vancouver
Question about the task
Part of a calculator
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Separate Methods for sum and product not working
I thought I would be able to create to separate methods to calculate a sum and a product. public class Solution { public static void main(String[] args) { int c = 5; int d = 7; sum(c, d); product(c, d); } public sum(a, b){ System.out.print(a + b)
10/2/18
1611
views
6
comments
0
Ahmed
Level 23
Amsterdam
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Can't understand the validator any more?!
Why I got this error/ im making a list with 20 numbers? What is wrong?
5/23/19
1878
views
6
comments
0
John Michael Montuya
Level 10
Cebu City
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Resolved
Question about static int variables on the code.
So, the last task (Odd or Even). I don't see the following int variables initialized to zero anywhere, but the program somehow works just fine without errors: public static int even; public static int odd; What am I missing? TIA!
5/25/19
1935
views
8
comments
0
Payal Agarwal
Level 17
Bucharest
Question about the task
Sum of the digits of a three-digit number
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
My querry
Why you are dividing numbers by 10 and 100??
5/24/19
1769
views
2
comments
0
Dupi
Level 22
Guangzhou
Question about the task
Writing to a file from the console
Java Core
,
Level 3
,
Lesson 11
Under discussion
i was defeated!!!!!
Somebody Help!?
5/27/19
1407
views
2
comments
0
vengadesh
Level 5
chennai
Question about the task
Three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
what the error occur in my code pls tell me???
package com.codegym.task.task04.task0424; /* Three numbers */ import java.io.*; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { BufferedReader index =new BufferedReader (new InputStreamReader(System.in)); int n1=Integer.parseI
5/20/19
1707
views
11
comments
0
Nithin
Level 35
Hyderabad
Question about the task
Cat code won't compile
Java Syntax
,
Level 7
,
Lesson 12
Resolved
what is wrong with this code
Please help me solve this
5/24/19
1545
views
4
comments
0
dave
Level 14
Lancaster
Question about the task
Animal set
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Can there issue with using removeAll()?
public static void removeCats(Set pets, Set cats) { pets.removeAll(cats); }
4/10/19
1565
views
2
comments
0
Monica Nicoleta
Level 7
Arad
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
I cannot see the error. Please help!
Can anyone help me understand where is the mistake, please?
2/4/19
1594
views
3
comments
0
Show more
1
...
319
320
321
322
323
...
374
Please enable JavaScript to continue using this application.