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
Jacek
Level 13
Warsaw
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Resolved
I don't know why the code isn't work
I don't know why the index isn't printed.
01.02.2019
1422
views
4
comments
0
Mikayla Pace
Level 27
Salt Lake City
Question about the task
Writing to a file from the console
Java Core
,
Level 3
,
Lesson 11
Resolved
Condition 4&5 Don't validate
The output is correct, it writes content to the file, every String is on a new line, why doesn't the program validate.
02.08.2019
1216
views
2
comments
0
Ian Rebmann
Level 5
San Diego
Question about the task
Somehow average
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
will pass on intelliJ wont on here
My Program works on IntelliJ Any ideas on why it wont pass the server test? I know I can construct it differently but this should work. I have ran into this problem before.
03.08.2019
1006
views
2
comments
0
Antonia
Level 10
Question about the task
Family census
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
help
?
02.08.2019
1227
views
2
comments
0
smaranika sahu
Level 5
Pune
Question about the task
I'm 15 again!
Java Syntax
,
Level 1
,
Lesson 4
Resolved
Why my code is wrong?
public class Solution { public static void main(String[] args) { String name = "Amigo"; int age = 15; //int money = 500; //int weight = 70; String s1 ="I'"; String s3="m "; String s2=" again!"; System.out.println(s1+s3+age+s2);
09.05.2019
1235
views
3
comments
0
Jay
Level 17
Washington
Question about the task
Task about algorithms
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Won't compile
I'm constantly getting a NullPointer Exception error. I can't get it to compile to see what I need to change. Please assist. Thanks.
02.08.2019
863
views
3
comments
0
Dawid
Level 28
Question about the task
Max, Bella, and Jack
Java Syntax
,
Level 2
,
Lesson 3
Under discussion
Meaning of activities performed in the task.
Well, I understand that dog1, dog2 and so on are variables of type Dog that is created by Class Dog. I understand that we creating two new objects too. But now I dont quite get it what these objects really are. Since "Dog" appears twice in this context I conclude that it is not object's name but obj
02.08.2019
1075
views
1
comment
0
dibidebe
Level 7
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
??
What's missing?
30.07.2019
1436
views
4
comments
0
Milos
Level 16
Podgorica
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Resolved
The second solution doesn't work.Why ?
Can I get an explanation to understand this better: I can see that this is working : BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int sum = 0; int counter = 0; double mean; for (; true; counter++) { String input = reader
27.07.2019
1005
views
1
comment
0
deemneem
Level 11
Mumbai
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
run well but does not verify
package com.codegym.task.task07.task0706; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Streets and houses */ public class Solution { public static void main(String[] args) throws Exception { int[] house = new int[15]; Buffer
29.07.2019
821
views
1
comment
0
Michał Kwaśny
Level 22
Krakow
Question about the task
Vowels and consonants
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Last Requirement not satisfied
Any ideas what could be the reason of this bug? I have added the spaces at the end of Strings.
10.07.2019
989
views
4
comments
0
Ondrej
Level 8
Koeln
Question about the task
Console-based piggy bank
Java Syntax
,
Level 5
,
Lesson 12
Resolved
What is wrong?
Hello guys, what is wrong with this code? So far, I have figured out that it takes the first input number and every second thereafter.
30.07.2019
1185
views
2
comments
0
Denis
Level 22
Kharkiv
Question about the task
"Fix the code", part 1
Java Core
,
Level 2
,
Lesson 6
Under discussion
Give me your help pls!
help me pls with solution
22.06.2019
832
views
1
comment
0
Nitin raj
Level 12
Mumbai
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
can any one please explain
I think my code is corect but why task condition is not met
28.07.2019
886
views
1
comment
0
Gannoju Ikshwak
Level 2
Hyderabad
Question about the task
The required number
Java Syntax
,
Level 2
,
Lesson 5
Under discussion
what to do
what should i comment out to get 19
23.06.2019
1135
views
3
comments
0
Antonia
Level 10
Question about the task
More Sam-I-Am
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
please
help
29.07.2019
1114
views
2
comments
0
dibidebe
Level 7
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Resolved
?
can someone tell me what is wrong with my code? a requirement for divisible with 2 won't pass
01.08.2019
1156
views
7
comments
0
John
Level 8
Question about the task
Static cats
Java Syntax
,
Level 6
,
Lesson 11
Archived
Error on Condition 3 (using the constructor)
My code now prints the values of the objects, but I'm getting another error. If I un-comment line 15, it verifies that the constructor is being run 10 times. My output is: 0 5 10 15 20 25 30 35 40 45 So I have 10 objects in the arrayList. I don't understand how I am not meeting condition 3.
23.07.2019
1297
views
6
comments
0
hidden #10447638
Level 22
Question about the task
Fluffy no more
Java Core
,
Level 2
,
Lesson 12
Resolved
why is it incorrect?
Edit after solved: This took me 13 attempts :'( For anyone facing the very same situation, Robert's comments below solved the task for me.
29.07.2019
1289
views
2
comments
0
dibidebe
Level 7
Question about the task
String array in reverse order
Java Syntax
,
Level 7
,
Lesson 4
Resolved
help needed
could someone please explain me how do arrays actually work on this example... i hate doing something with them just because i don't know how to make these loops and conditions to make things right, so i would be very thankful if someone could simplify me this lesson
30.07.2019
1203
views
4
comments
0
kastam
Level 11
Question about the task
Stack trace revisited
Java Syntax
,
Level 9
,
Lesson 2
Resolved
Not valid
Why "Each method must return the name of the method that called it" not valid??????
01.08.2019
1659
views
2
comments
0
Savannah
Level 4
Memphis
Question about the task
Currency exchange
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
Hello. I did my code over in a simpler way. Is this code right?
package com.codegym.task.task03.task0303; /* Currency exchange */ public class Solution { public static void main(String[] args) { System.out.println(convertEurToUsd(10,5.50)); System.out.println(convertEurToUsd(5,25.50)); } public static double convertEurToUsd(int eur
01.08.2019
1061
views
1
comment
0
Leena Sharma
Level 2
Mumbai
Question about the task
CodeGym. Learn once - use anywhere
Java Syntax
,
Level 1
,
Lesson 4
Resolved
typo error
why the typo error is not being solved?
03.06.2019
1213
views
2
comments
0
Joy Majumdar
Level 16
Kolkata
Question about the task
Currencies
Java Core
,
Level 4
,
Lesson 8
Under discussion
Now where do you find all these errors
Can anybody justify ?
29.07.2019
1165
views
2
comments
0
Lukas Smetana
Level 10
London
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
I am printing longest string, if there are several strings as longest i am printing all of them on the new line but it is not passing. Help please.
Code here
28.07.2019
1273
views
1
comment
0
R3fiX
Level 12
Tarnow
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Last to conditions
Can anybody tell me what's wrong with my code? Everythings seems to be fine, program displays the longest string or many of them, but it failes last two conditions.
30.07.2019
864
views
0
comments
0
past cham
Level 6
Delhi
Question about the task
Adding
Java Syntax
,
Level 4
,
Lesson 16
Resolved
HELP MEEE
What is wrong with my code? :'(
12.04.2019
2054
views
12
comments
0
Lex Medeiros
Level 18
San Jose
Question about the task
HashMap of cats
Java Syntax
,
Level 8
,
Lesson 3
Resolved
Stuck adding strings to Hashmaps
I am stuck on line 39 map.put(key, new cats(i)); I do not know what to add as a value. Anyone could explain please.
07.04.2019
2831
views
4
comments
1
SefoBe
Level 16
Paris
Question about the task
Flip the array
Java Syntax
,
Level 7
,
Lesson 4
Resolved
What's wrong here ?
Please help
11.07.2019
1310
views
3
comments
0
Nitin raj
Level 12
Mumbai
Question about the task
Remove and insert
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
Can anyone please explain what happening here.
Please help me out with complete explanation
30.07.2019
992
views
2
comments
0
Show more
1
...
286
287
288
289
290
...
367
Please enable JavaScript to continue using this application.