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
Raisa Toscano
Level 22
Tepic
Question about the task
Cows are animals too
Java Core
,
Level 2
,
Lesson 6
Resolved
what is the problem here?
public class Solution { public static void main(String[] args) { Animal e= new Cow(); e.getName(); } } abstract class Animal { public abstract String getName(); } class Cow extends Animal{ public String getName(){ String s="Cow"; return s;}
08.01.2019
1777
views
4
comments
0
Adil
Level 7
Eindhoven
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Resolved
Where is constructor method()?
I solved the task but I don't understand where the constructor method is. Don't you need one to make an object? I expected this: public Man() { }
13.08.2020
414
views
2
comments
0
peter
Level 13
Den Haag
Question about the task
Positive number
Java Syntax
,
Level 4
,
Lesson 7
Resolved
why doesn't it fullfil requirements 3 and 5?
i have no idea why my code doesn't work so a little bit of help would be nice and appreciated.
12.08.2020
421
views
5
comments
0
Andrei Stratu
Level 18
Iasi
Question about the task
Rarest bytes
Java Core
,
Level 8
,
Lesson 3
Resolved
Getting an error
Exception in thread "main" java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.String (java.lang.Integer and java.lang.String are in module java.base of loader 'bootstrap') - I don't understand why I get this error. I cannot check the output to see what I am doi
12.08.2020
336
views
2
comments
0
Adam Maichrzik
Level 22
Katowice
Question about the task
SimpleObject interface
Java Core
,
Level 3
,
Lesson 11
Resolved
Need help and advice
Need a little help.
29.02.2020
1092
views
3
comments
0
Ed Cab
Level 15
Hawthorne
Question about the task
Fixing bugs
Java Core
,
Level 3
,
Lesson 11
Under discussion
} <-- expected ??
Error message says there is problem with the braces in this code. I don't see it. How do I solve this one?
05.08.2020
374
views
3
comments
0
Gil Allen
Level 8
Johnstown
Question about the task
Only for the rich
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Can't find Iterator symbol?
I am getting an error message for line 21 - the carat is pointing at the Capital I and says can;t find symbol. Says symbol is class Iterator?? can't find its own class
12.08.2020
886
views
2
comments
0
Gil Allen
Level 8
Johnstown
Question about the task
10 thousand deletions and insertions
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
Declaring the ArrayList
I thought that when you declared an ArrayList that you had to say what kind of variable would be in it. That wasn't done here, e.g. ArrayList, so can someone explain when you have to and when you don't have to declare the types in the ArrayList?? thanks
12.08.2020
448
views
2
comments
0
bamughamye patrick
Level 8
Paris
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
What is the problem?
My code compiled well but why cant i get the last requirement right?
12.08.2020
359
views
1
comment
0
Michał Pietrus
Level 33
Krakow
Question about the task
Archiver (part 10)
Java Multithreading
,
Level 7
,
Lesson 15
Resolved
Help please
Anyone know how to resolve that ? Validator says : Be sure the createZip method properly saves a directory and the files it contains. Be sure to use the FileManager class and the addNewZipEntry method.
18.05.2020
547
views
5
comments
2
Ritik Gupta
Level 5
Etah
Question about the task
Describing numbers
Java Syntax
,
Level 4
,
Lesson 7
Archived
my code gives error for odd values
08.08.2020
372
views
2
comments
0
Joyonta Saha
Level 31
Question about the task
Archiver (part 6)
Java Multithreading
,
Level 7
,
Lesson 15
Resolved
last Req. is not verifying?
Help!
27.08.2019
991
views
2
comments
2
sourav bamotra
Level 20
jammu
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Resolved
this piece of code in removeDuplicateByValue method is not enough to remove duplicate element from hashmap? if i simply call this method in main, it throws Exception in main. why so?
HashMap<String, String> copy = new HashMap<String, String>(map);
11.08.2020
451
views
6
comments
0
Inifome
Level 10
Delta
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
can't find the problem
can't seem to satisfy the last condition. need help
12.08.2020
363
views
0
comments
0
dhanush
Level 30
Chennai
Question about the task
Reversing a file
Java Core
,
Level 8
,
Lesson 5
Resolved
need help with Collections
It's not reversing the bytes but i've done everything correct but where is the problem BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); FileInputStream fis = new FileInputStream(br.readLine()); FileOutputStream fis1 = new FileOutputStream(br.readLine());
12.08.2020
381
views
2
comments
0
Satya Vath
Level 31
Vijayawada
Question about the task
Archiver (part 2)
Java Multithreading
,
Level 7
,
Lesson 15
Resolved
Help Me
It is correct but not verifying
21.03.2020
1006
views
10
comments
0
Qi Wang
Level 10
Perth
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Im trying to use removeIf() to complete that request and I failed without knowing its reason
Hi guys, please help me, Im trying to use removeIf() to complete that request and I failed without knowing its reason
12.08.2020
271
views
1
comment
0
klesk
Level 31
Duisburg
Question about the task
Make a word chain
Java Multithreading
,
Level 2
,
Lesson 9
Resolved
output matches task condition but still fails
Input: Okinawa Washington Auckland Kalamazoo Norfolk Output: Washington Norfolk Kalamazoo Okinawa Auckland Input: Okinawa ZZz Washington Zurich Auckland Alexandria Kalamazoo Ottowa Orlando jjj Norfolk Output: Washington Norfolk Kalamazoo Orlando Okinawa Alexandria Auckland It is not the bes
11.08.2020
425
views
1
comment
0
Somya Gupta
Level 4
Vrindavan
Question about the task
Financial expectations
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
problem
package com.codegym.task.task03.task0325; import java.io.*; /* Financial expectations */ public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
22.09.2018
1834
views
3
comments
0
Łukasz
Level 16
GDANSK
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
next-to-last test FAIL
Why my code doesn't pass a next-to-last test? "The program should display the maximum of the N entered numbers."
11.08.2020
392
views
3
comments
0
Ailana
Level 2
San Carlos
Question about the task
Where does a Person come from?
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
PLZ HELP ME FAST
can u tell me what to write when i write int age int weight int money it says u didn't do the int variables. PLZ HELP
11.08.2020
339
views
1
comment
0
Van Ha
Level 41
Bodegraven
Question about the task
Black box
Java Multithreading
,
Level 4
,
Lesson 4
Resolved
Can't pass second validation
Hi, I can't seem to pass the second requirement which specifies that I should use the String constants in the SecondClass class for output.
04.03.2020
1211
views
6
comments
0
Ailana
Level 2
San Carlos
Question about the task
One cat isn't enough
Java Syntax
,
Level 2
,
Lesson 3
Under discussion
PLZ HELP WHATS WRONG
this is my code whats wrong with it public class Solution { public static void main(String[] args) { Cat cat1 = new Cat(); } Cat cat
10.08.2020
432
views
6
comments
0
Bill Wu
Level 29
Wellington
Question about the task
Determining locking order
Java Multithreading
,
Level 7
,
Lesson 6
Resolved
I have no clue on this one
I don't know how to check the synchronized order for another method or the requirement of the task. Any advice will be helpful. Thanks a lot.
07.05.2019
1560
views
13
comments
0
isaacfibo
Level 24
Huntington
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Resolved
I don't know why the test won't pass.....
Please help.....
11.08.2020
371
views
2
comments
0
Nobody
Level 37
Seattle
Question about the task
Determining locking order
Java Multithreading
,
Level 7
,
Lesson 6
Under discussion
I don't know what's going on
I try on my intelij and everything run fine. But i think that maybe something went wrong. atleast first two requirement. It's weird. I mean why it can return true and false on same condition.
05.06.2019
1184
views
2
comments
1
Tata
Level 16
Hisar, Haryana
Question about the task
User, loser, coder and programmer
Java Core
,
Level 4
,
Lesson 8
Under discussion
I don't know what's wrong with my code?? Pls help.
All answers will be appreciated.🥺
11.08.2020
406
views
2
comments
0
- FniJnn -
Level 33
Paris
Question about the task
Determining locking order
Java Multithreading
,
Level 7
,
Lesson 6
Under discussion
Requirements are really dumb
So according to the requirements, the method must return both true and false. When i uncomment one of the return statements and comment the other, i pass or the first, or the second requirement, but not both. That's annoying, my solution is working. Thanks :)
15.02.2020
1034
views
3
comments
0
Catherine
Level 23
London
Question about the task
Pharmacy
Java Core
,
Level 7
,
Lesson 10
Archived
Help me identify my mistake?
Can someone please take a look at the code and help me out? I am failing the: The Person thread should run as long as isStopped is false condition, but my code is set up with the person method running while (! isStopped). It works for a similar condition for the Pharmacy thread, so I don't understan
16.07.2020
756
views
5
comments
0
Arturs Teihmanis
Level 13
Jurmala
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
Code works, but still failing in lasts condition.
Hi, looks like code is working fine(input 3,5,7; output 7 5 3), but still I am failing in last condition. I remember that with arrays sorting is much easier(can google it), but wanted to try with IF. Thanks.
11.08.2020
388
views
2
comments
0
Show more
1
...
145
146
147
148
149
...
366
Please enable JavaScript to continue using this application.