Promotion
CodeGym University
Java FullStack
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
Stephen Haokip
Level 8
imphal
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
guys plis help me
i cannot go further than this last two conditions are not met
6/15/20
502
views
3
comments
0
Stephen Haokip
Level 8
imphal
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
now only the last condition
is left plis i need some guidance
6/15/20
584
views
2
comments
0
sagar
Level 7
Question about the task
Where does a Person come from?
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Can anyone help me with this?
I am stuck at "where does a person come from". please help understand this.
6/16/20
631
views
2
comments
0
Maxine Hammett
Level 19
San Diego
Question about the task
Getters and setters for the Dog class
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
Class doesn't recognize my setter's
For some reason when I run this code it comes back with class must have setter for age and name. I do have those methods in my class, but I'm unsure as why this isn't passing. Thank you for the help.
6/16/20
671
views
3
comments
0
Brandon Leirer
Level 7
Keller
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Resolved
help me identify my knowledge gap here please --- can't find symbol cat1
package com.codegym.task.task05.task0502; /* Implement the fight method */ public class Cat { public int age; public int weight; public int strength; public Cat() { } public boolean fight(Cat anotherCat) { //write your code here int cp = 0; if ((
6/1/20
1051
views
1
comment
0
Brandon Leirer
Level 7
Keller
Question about the task
The Three "Muscateers"
Java Syntax
,
Level 5
,
Lesson 5
Resolved
how would you describe: public Cat (String name, int age, int weight, int strength) { ?
I have been looking at it and it seems to be a method called 'Cat()', that is used to assign all of the data it defined into the Cat class's private instance variables. If that assumption is correct, isn't this essentially just a set() method? Why isn't the name formatted like setCat(String name, i
6/2/20
940
views
2
comments
0
Catherine
Level 23
London
Question about the task
Census
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
The third condition won't verify.
I have gone over it several times and compared the code with other's but I cannot see why the third condition won't verify. Please help.
6/11/20
679
views
2
comments
0
Sayed Ali
Level 13
Madinat 'Isa
Question about the task
Make a family
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Why the last requirement is wrong?
The last condition is not met, why is that?
6/16/20
1194
views
2
comments
0
Stephen Haokip
Level 8
imphal
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Resolved
hello... guys the code works well for negative numbers as well
if u don believe you can copy my code and try it yourself but the second last condition is not satisfied. any help and suggestion is welcome ...
6/11/20
802
views
1
comment
0
Maxine Hammett
Level 19
San Diego
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
PrintLn is correct but gets an error in assigned tasks
I'm not sure why this isn't passing the tasks. When you enter a number it prints out the correct color. But the error says it's not printing out the color. But in the output window it does print it. Thank you for the help
6/9/20
667
views
6
comments
0
Maxine Hammett
Level 19
San Diego
Question about the task
Describing numbers
Java Syntax
,
Level 4
,
Lesson 7
Archived
Final condition errors
I'm not sure why the final condition errors. I have if a is less than 1 OR greater than 999 do nothing. It should work. Please tell me what I'm doing wrong. Thank you
6/15/20
632
views
2
comments
0
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(
8/28/18
2947
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
6/16/20
489
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
5/31/20
839
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
6/15/20
708
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.
6/15/20
893
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.
6/15/20
786
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
6/15/20
765
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
6/15/20
595
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
6/13/20
775
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?
6/15/20
556
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
6/6/20
755
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.
1/15/19
2016
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
6/14/20
707
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.
5/1/20
1201
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 =
6/12/20
689
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 {
6/13/20
973
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
6/15/20
557
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
11/27/18
2048
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
3/27/19
3028
views
12
comments
0
Show more
1
...
181
182
183
184
185
...
374
Please enable JavaScript to continue using this application.