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
Alexander Shtunder
Level 41
San Francisco
Question about the task
UnsupportedFileName
Java Core
,
Level 8
,
Lesson 8
Resolved
2 or 1?
In this task, is it generally possible to avoid creating two objects of the FileInputStream class as in my code? public class TxtInputStream extends FileInputStream { public TxtInputStream(String fileName) throws Exception { super(fileName); if (fileName.endsWith(".txt")) {
22.08.2019
1206
views
2
comments
0
Sk Nazim Uddin
Level 2
Barddhaman
Question about the task
Where does a Person come from?
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
it is saying "In the main method, create a Person object and immediately assign a reference to it to the variable person." in level 2 , i cant understand what is it trying to say?
In the main method, create a Person object and immediately assign a reference to it to the variable person.
12.08.2018
2284
views
7
comments
0
ilian44
Level 30
Veliko Turnovo
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Error
Hi, Strange on my local pc is ok but the Validation doesnt accept it. What would be the problem?
21.08.2019
972
views
7
comments
0
Denis
Level 22
Kharkiv
Question about the task
Arranging calls to join()
Java Core
,
Level 6
,
Lesson 5
Under discussion
Last condition pls
I understand all condition, but i cant do this. Pls give me the full code.
27.06.2019
943
views
2
comments
0
hidden #10451198
Level 14
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Its impossible
I can't do anything more. I'm trying many many other codes and I can't do anything to run it properly. What I need to change there to run this?
18.05.2019
1415
views
5
comments
0
Mikica
Level 15
Novi Sad
Question about the task
Min and max in arrays
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
need help...cant figure out whats wrong...
need help
23.08.2019
917
views
1
comment
0
SefoBe
Level 16
Paris
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
How to separate by space
What can I do to separate numbers by spaces ?
20.08.2019
1051
views
4
comments
0
Emanuele Gurini
Level 18
Porto Recanati
Question about the task
Tom, Jerry and Spike
Java Core
,
Level 3
,
Lesson 6
Under discussion
Why STATIC here?
Hey guys, i have a question although i made right the exercise; so, the question is: why i need to write Dog, Cat and Mouse classes STATIC here? Thank's a lot, i love you all!
23.08.2019
878
views
2
comments
0
Vikrant.
Level 8
Columbus
Under discussion
task07.task0713: What is wrong with the while loop, though program works with for loop
package com.codegym.task.task07.task0713; import java.io.BufferedReader;z import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /* Playing Javarella */ public class Solution { public static void main(String[] args) throws Exception { //write your code
22.08.2019
962
views
2
comments
0
Mikica
Level 15
Novi Sad
Under discussion
Getting really strange bug when typing anything...for a single letter typed i get additional letter written that i previously typed...
for example i type "a" program types a but after for each additional letter program types every letter i typed before...
22.08.2019
674
views
4
comments
4
Andrea
Level 20
Question about the task
Animal identification
Java Core
,
Level 2
,
Lesson 2
Resolved
Mentor is saying Incorrect Value of Pig - However not seeing it
The output is correct, but the mentor says - Incorrect value for a Pig object. However I'm sending the correct value for the Pig object, since its' output is correct. Please advise.
22.08.2019
1414
views
1
comment
0
Andrea
Level 20
Question about the task
Whales and cows
Java Core
,
Level 2
,
Lesson 2
Resolved
Why is this not correct?
I specifically met the 5th requirement: I overridden the getName method to say "I am not a cow, I am whale" and that what the output says: public static class Whale extends Cow { public String getName() { return "I'm not a cow. I'm a whale";} } Why is the validator not accepting this?
22.08.2019
1059
views
4
comments
0
John
Level 8
Question about the task
Static cats
Java Syntax
,
Level 6
,
Lesson 11
Archived
Can't get the objects to print correctly
My code as attached prints the hashCode for each object, 1 per line, but this doesn't meet the requirements. I'm trying to override the toString() method to correct this. But (after un-commenting lines 16-19), whatever I try to return causes an error. How do I fix this?
19.07.2019
1199
views
11
comments
2
AISHWARYA ANIL BHOSALE
Level 12
Pune
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
Cannot pass the test case
What's the problem with this code? I can't pass the case.
17.04.2019
961
views
4
comments
0
Ovo Leslie
Level 26
Lagos
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Resolved
Whats wrong with my code pls!!!
My program seems to run correctly, but it is not satisfying the conditions. Help needed!
12.08.2019
1138
views
1
comment
0
ousi4ous
Level 2
Douala
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Resolved
I have difficulties in getting this task done as i dont understand anything
public static void print(String s) { //write your code here String data = print.("Java is easy to learn!"); String data = print.("Java opens many opportunities!"); print.write(data); String data = print.read("Java opens many opportunities!");
08.04.2019
1367
views
4
comments
1
kiwii
Level 37
Question about the task
Space (part 3)
Java Collections
,
Level 3
,
Lesson 15
Resolved
What is the problem?
Cannot figure it out.
22.08.2019
792
views
2
comments
1
Premachandran
Level 35
Ernakulam
Question about the task
Food
Java Core
,
Level 4
,
Lesson 4
Under discussion
pl help. I am getting this error "non-static method onSelect() cannot be referenced from a static context: Solution.java, line: 26, column: 19"
Pl help.
17.11.2018
1529
views
4
comments
0
Anonymous #10410173
Level 22
Delhi
Question about the task
Minimum and Maximum
Java Core
,
Level 1
,
Lesson 11
Resolved
help????
what's the error????
22.08.2019
1054
views
1
comment
0
Matjes
Level 12
Prague
Question about the task
Creating cats
Java Syntax
,
Level 5
,
Lesson 9
Resolved
Help! ☺
Can anybody help me, please? I cannot find the root cause of why my code is not being accepted. Any help would be appreciated. Thank you!
21.08.2019
1243
views
4
comments
0
Yash
Level 15
Sugar Hill
Question about the task
Number of days in the year
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Why not work.
If I'm correct. Line 45 should display its not a leap year if its not a leap year.
15.05.2019
1299
views
6
comments
0
Raisa Toscano
Level 22
Tepic
Question about the task
Number of days in the year
Java Syntax
,
Level 4
,
Lesson 4
Resolved
i cant find the mistake, the output its ok...
if(year%400==0 || year%4==0) System.out.println("Number of days in the year: 366"); else System.out.println("Number of days in the year: 365");
15.12.2018
2232
views
2
comments
0
AK
Level 4
Mumbai
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
What is wrong in code? pl help.
What is wrong in code? pl help.
19.08.2019
809
views
2
comments
0
Anwar
Level 3
Jaipur
Question about the task
Where does a Person come from?
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
i don't understand 5th Requirement. help me to understand.
public static void main(String[] args) { //write your code here Person Person = new Person(); } public static class Person { //write your code here String name; int age; int weight; int money; } }
08.06.2019
1444
views
6
comments
0
vivek mankar
Level 9
Nagpur
Question about the task
Five winners
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
I am not getting this ......? I
package com.codegym.task.task08.task0826; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.* ; /* Five winners */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputSt
10.08.2019
1052
views
3
comments
0
Letenyei Ádám
Level 16
Bakonyszombathely
Question about the task
Software update
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
What is the problem? Please help
package com.codegym.task.task08.task0829; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /* Software update */ public class Solution { public sta
23.07.2019
1186
views
6
comments
0
Anthony Chalk
Level 30
London
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Help please
I've tried everything to meet the last condition nothing works. Please Help. Thank you.
21.08.2019
773
views
2
comments
0
kapil
Level 12
delhi
Question about the task
Set of cats
Java Syntax
,
Level 8
,
Lesson 11
Resolved
problem while printing
i have checked by printing all three cats and by printing cats after removing one, but it fails all time....please help someone
31.01.2019
2036
views
5
comments
1
Itachi
Level 16
Brooklyn
Question about the task
Minesweeper (Part 13/16)
Games
,
Level 0
,
Lesson 0
Resolved
help
it is not compiling
21.08.2019
1199
views
0
comments
0
hidden #10514438
Level 2
Under discussion
i dont understand the code the relation between x and y
package com.codegym.task.task01.task0107; /* No comments needed */ public class Solution { public static void main(String[] args) { int x = 2; int y = 12; // y = x * y; y = x + y; x = y - x; y = y - x; System.out.println(x);
20.08.2019
806
views
1
comment
0
Show more
1
...
280
281
282
283
284
...
367
Please enable JavaScript to continue using this application.