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
Arko Sarkar
Level 8
Mumbai
Question about the task
Creating cats
Java Syntax
,
Level 5
,
Lesson 9
Under discussion
What does this error mean?
com/codegym/task/task05/task0517/Cat.java:14: error: cannot reference weight before supertype constructor has been called this(weight, color); ^ com/codegym/task/task05/task0517/Cat.java:14: error: cannot reference color before supertype constructor has been called this(
28.08.2018
2758
views
4
comments
0
Edddieg
Level 15
Providence
Question about the task
Improving functionality
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
please help please
please
16.06.2020
363
views
1
comment
0
Lama Abdullah
Level 8
Riyadh
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
what is wrong with my solution ??
import java.io.*; import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { //write your code here int pcount = 0; int ncount = 0; Scanner input = new Scanner(System.in); int a = input.nextInt(); in
31.05.2020
691
views
1
comment
0
Gzzui892
Level 6
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Resolved
My code runs perfectly on my Notepad++ (executing it from the command line)... But it doesn't work here at all... Any thoughts?
a
15.06.2020
565
views
11
comments
0
John
Level 9
Oswestry
Question about the task
StringHelper class
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
My solution wont validate the last task but works in IJ, please help!
Hello there, my solution works in IJ but does not get validated on here. Please could someone let me know what is wrong with my solution? Many thanks.
15.06.2020
767
views
3
comments
0
Maxine Hammett
Level 19
San Diego
Question about the task
Triangle of eights
Java Syntax
,
Level 4
,
Lesson 13
Under discussion
Why isn't this passing verification?
I've checked my code and the output is exactly as the tasks requires but I'm still getting an error saying it's not displaying the 8's correctly. Your help is appreciated.
15.06.2020
620
views
3
comments
0
David
Level 26
Bucharest
Question about the task
Splitting a file
Java Core
,
Level 8
,
Lesson 5
Resolved
Please help!! One condition doesn't satisfy
I dont understand were I am wrong in writing in the second file
15.06.2020
623
views
5
comments
0
Jeremi Nuer
Level 7
San Francisco
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
I can't get the medium number
I have defined the largest and smallest, but I can't seem to define the medium number. Is there some aspect/possibility that I am not accounting for in my code? thx
15.06.2020
477
views
2
comments
0
Oliver Heintz
Level 18
Mustang
Question about the task
Words in reverse
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Program works in Intellij, it runs on the website, times out on both
My program runs exactly as expected. It runs fine on Intellij, but when I go to submit it for verification, it times out every time. So I ran it here, on this website, and it, again, runs just fine. I submit it for verification, and it says I have an infinite loop. ???? What the heck is going
13.06.2020
634
views
4
comments
0
Gajula Dinesh
Level 2
Pondicherry
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
where did I wrong?
where did I mistake will u please tell me?
15.06.2020
417
views
2
comments
0
Onome Brownly-Otiede
Level 9
Galway
Question about the task
This age doesn't work for me…
Java Syntax
,
Level 4
,
Lesson 1
Under discussion
egegtgwrheth#
hyhetjet dont no wat to doo pls hep
06.06.2020
609
views
1
comment
0
Andrew
Level 29
Seattle
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Resolved
What am I doing wrong? - The displayed text must match the task conditions.
I checked spacing and everything. Copied and pasted the text straight from the conditions.
15.01.2019
1856
views
3
comments
3
HaeWon Chung
Level 17
Boston
Question about the task
The early bird gets the worm
Java Core
,
Level 6
,
Lesson 13
Under discussion
Why does it assign the value only to one random thread?
I'm intentionally left out first line of the run method not to violate the rule to post complete solution. t is currentThread. When I run this code, I found that all the inputs are stored only one of the thread instead of being randomly distributed - that's what I thought after reading the code. Cou
14.06.2020
581
views
1
comment
0
John
Level 27
Washington DC
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Under discussion
Getting error "make sure no exceptions occur for any input data"
I can't any possible exceptions.
01.05.2020
1066
views
4
comments
0
Angus McDonald
Level 5
Sydney
Question about the task
Symbol frequency
Java Core
,
Level 8
,
Lesson 11
Resolved
Output seems fine .. not sure what's wrong.. maybe I'm interpreting the question incorrectly?
I've added and removed the FOR loop printing the result to include/exclude an if statement.. neither pass even though the output is correct. EG: Below vs what's in my solution. for (Map.Entry entry : frequencyMap.entrySet()) { if (entry.getValue() != 0) { String str =
12.06.2020
547
views
2
comments
0
Faisal Ahmed
Level 13
Bangalore
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Everything is correct,but it showing wrong output
public class Solution {
13.06.2020
779
views
4
comments
0
Otabek Shavkatov
Level 6
New York City
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
Idk what is wrong
Idk what is wrong
15.06.2020
388
views
1
comment
0
I.A
Level 7
unknown city
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
what issue with green
27.11.2018
1824
views
7
comments
0
past cham
Level 6
Delhi
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Resolved
how to slove
help
27.03.2019
2837
views
12
comments
0
Nehal Abubakar
Level 7
Karachi
Question about the task
Console-based piggy bank
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
Help me plzzz
its saying the when the user input sum so it should end but it's not working
18.09.2018
1657
views
3
comments
0
Jonas
Level 41
Vilnius
Question about the task
Chain of Responsibility
Java Collections
,
Level 7
,
Lesson 8
Under discussion
Help please
What should I do here?
08.06.2020
620
views
1
comment
0
jim smith
Level 22
Cedar Park
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Resolved
Can't make it fast enough
Looks like the calculation part is ok but it won't finish in time (or to much memory). Some other way to bypass looking at all the numbers I didn't see?
05.02.2019
1595
views
4
comments
0
Anton
Level 26
Oslo
Question about the task
Roy G. Biv…
Java Syntax
,
Level 3
,
Lesson 6
Resolved
Is it a constructor?
Is public Red() { System.out.println("Red"); } a constructor that displays a string "Red" in this case? Do I understand it correctly?
24.03.2020
1226
views
4
comments
0
Madhu Prabha
Level 7
Gurgaon
Question about the task
Distance between two points
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
What is the error in this code?
Please help.
08.04.2020
1236
views
9
comments
0
imran khan
Level 6
islamabad
Question about the task
Distance between two points
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
Help
Whats wrong
03.12.2018
1684
views
4
comments
0
Laurap5
Level 9
Vilnius
Question about the task
Distance between two points
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
Please help
Please help
27.11.2018
3276
views
12
comments
0
Anton
Level 26
Oslo
Question about the task
Picking out numbers
Java Core
,
Level 9
,
Lesson 5
Under discussion
FileWriter won't write a thing.
In line 38 I try to write contents of sb but no matter how I do it ,be it fileWriter.write(toWrite) , fileWriter.write(sb.toString); or fileWriter.write(sb.toString().toCharArray()), output file stays empty. Why is it happening?
10.06.2020
1108
views
1
comment
0
ishu
Level 6
Maharashtra
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
try this!!
this problem don't get resolved for 1st attempt it's very simple but be careful while writing man.wife=women; women.husband=man;
13.06.2020
509
views
2
comments
0
ishu
Level 6
Maharashtra
Question about the task
Where does a Person come from?
Java Syntax
,
Level 2
,
Lesson 2
Resolved
I need a help!
public static class Person....... I'm not getting this problem at all
13.06.2020
703
views
2
comments
0
Seggzzy
Level 5
Lagos
Question about the task
Hello, StarCraft!
Java Syntax
,
Level 3
,
Lesson 4
Resolved
What is wrong with this program
I keep getting illegal stuff at line 42
12.06.2020
748
views
5
comments
0
Show more
1
...
178
179
180
181
182
...
371
Please enable JavaScript to continue using this application.