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
Java 25
All quests
All levels
Any status
Questions about tasks
Hot
Maxine Hammett
Level 19
San Diego
Question about the task
We're all friends here, even the exceptions
Java Syntax
,
Level 9
,
Lesson 8
Under discussion
I'm so lost. How do I throw and exception that's in an extends class
I have no clue what to do now. I tried throwing an exception right after the extends code and that ended in an error. I also tried to throw the error in the body of the method and had errors. Please help. Thank you for your assistance.
7/20/20
718
views
3
comments
0
Raj Mishra
Level 2
India
Question about the task
Minimum of N numbers
Java Syntax
,
Level 8
,
Lesson 11
Resolved
I dont understand why its failing.
Here, my 2 validations are failing. Even though I have entered all the values from the keyboard and I am returning the minimum. Could you please help, why it's failing?
5/10/20
796
views
2
comments
1
Bill Wu
Level 29
Wellington
Question about the task
Snake (part 14)
Java Multithreading
,
Level 2
,
Lesson 18
Resolved
Verification fails
The code seems to work as required, but fails all of them. Am I missing something?
4/9/19
2043
views
10
comments
3
Shadow
Level 7
Hogsmead
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
whats wrong in this
What should I do
7/20/20
509
views
2
comments
0
Khairul
Level 11
Question about the task
In the blue depths of the stack trace…
Java Syntax
,
Level 9
,
Lesson 2
Resolved
Why the output value is 12?
I don't understand why the stack depth is 12. public static int getStackTraceDepth() { // write your code here StackTraceElement[] element = Thread.currentThread().getStackTrace(); System.out.println(element.length); return element.length; } }
5/15/19
2404
views
5
comments
2
Talha Javed
Level 4
sialkot
Question about the task
Cats in the Universe
Java Syntax
,
Level 4
,
Lesson 2
Under discussion
plz let me know about this error
plz let me know about this error
11/2/18
1910
views
9
comments
0
David Haines
Level 13
La Crosse
Question about the task
Display numbers in reverse order
Java Syntax
,
Level 7
,
Lesson 12
Resolved
Could somebody please explain what I am missing? Getting error: Be sure that you just display the array in reverse order. You don't need to reverse the order of the elements in the list.'
Doesn't appear this question posted on the first try, so I am trying again. Could somebody please tell me what is wrong with my code? I am getting this error when I try to verify: Be sure that you just display the array in reverse order. You don't need to reverse the order of the elements in the
7/19/20
653
views
2
comments
0
hidden #10625598
Level 23
Question about the task
Five winners
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
why exactly does this task fail?
i dont get it?
7/18/20
531
views
2
comments
0
Angelo Spampinato
Level 18
Boston
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Not Sure Why This is Failing
Could anyone help me with understanding why the 4th requirement is failing? I think I'm checking for it and should be good.
5/27/20
1101
views
9
comments
2
Raj Mishra
Level 2
India
Question about the task
Software update
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Dont understand why its failing . My 2 validations are failing.
Dont understand why its failing . My 2 validations are failing.
7/18/20
571
views
2
comments
0
Tahsin Anam
Level 12
Helsinki
Question about the task
Task about algorithms
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
The last requirement is not correct, why?
I capitalized and trimmed all words, but still not correct! where is the mistake here?
7/18/20
632
views
2
comments
0
Wei Cui
Level 39
Newark
Question about the task
HTML Editor (part 11)
Java Multithreading
,
Level 8
,
Lesson 15
Resolved
keep
4/9/20
1013
views
3
comments
0
Riya
Level 15
Indore
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
not satisfies 3rd and 4th condition
my code gives output correct
7/18/20
463
views
2
comments
0
Aashita Saxena
Level 4
Bhopal
Question about the task
Price of apples
Java Syntax
,
Level 4
,
Lesson 1
Under discussion
Why Apple.addPrice needed in addPrice method?
According to the lesson, static method can not access non-static variables. However, addPrice is a static method and applePrice variable of Apple class is also static. Why then we needed to use Apple.applePrice to access the variable in addPrice method?
7/17/20
709
views
2
comments
0
Shaik Azharuddin
Level 20
Question about the task
Five winners
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
what is the issue with my code?
what is the issue with my code
7/18/20
551
views
1
comment
0
Comific
Level 3
Plymouth
Under discussion
Cant disable my subscription
No disable button????
7/18/20
558
views
1
comment
0
Seferi
Level 22
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Resolved
This works fine but doesn't pass..
I tested it and it works fine but for some reason last step fails...
7/7/20
656
views
3
comments
1
Riya
Level 15
Indore
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
What I did wrong don't know
it prints nothing
7/18/20
569
views
2
comments
0
Shaik Azharuddin
Level 20
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
why am I getting out of memory error on java heap
I am getting out of memory error on java heap help me resolving the issue
7/13/20
621
views
4
comments
0
hidden #10625598
Level 23
Question about the task
Task about algorithms
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
why do i get a Nullpointer here?
7/18/20
663
views
0
comments
0
hidden #10625598
Level 23
Question about the task
Going national
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
how do i make this uppercase?
java:22: error: char cannot be dereferenced \\ << because of toUpperCase() why does that happen and how can i solve this?
7/18/20
842
views
1
comment
0
Anonymous #10410173
Level 22
Delhi
Question about the task
A scary fairy tale
Java Syntax
,
Level 9
,
Lesson 11
Resolved
Help Please !!
i can't find the actual solution of this story
1/14/20
1759
views
5
comments
0
Lazyman
Level 7
Omaha
Question about the task
Minimum of two numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
use of brackets
Hey, i have done a few other java courses before and previously in those courses we had a bunch more of these "{ }" we used them in such places as: if(2<1) { System.out.println("what is this shit?"); else { System.out.println("this is weird"); } } When now in t
7/8/20
782
views
4
comments
0
R S ROHITH KRISHNAN
Level 6
Chennai
Question about the task
Create a Dog class
Java Syntax
,
Level 5
,
Lesson 7
Under discussion
what did i miss
did i miss something
8/3/19
1323
views
2
comments
0
Henry Yao
Level 22
Pasadena
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
not be able pass the last requirement but output correct, pls help!
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 if((this.age < anotherCat.age)
3/11/20
1509
views
6
comments
0
Dinesh
Level 7
Delhi
Question about the task
Price of apples
Java Syntax
,
Level 4
,
Lesson 1
Under discussion
What i am failing to understand about static variables and methods and about this keyword please explain
Understanding on the task :- The static variable applePrice Line 17 has been accessed by the class name Apple.applePrice at Line no 22 Line 16 Apple Class method addPrice() also static Line 19 2 objects of the Apple class Line 9 apple and Line 11 apple2 which is calling the static addprice () m
5/25/20
1063
views
4
comments
2
tony
Level 20
Nis
Question about the task
Dividing by zero
Java Syntax
,
Level 9
,
Lesson 11
Resolved
why this code it's not verified?
why this code it's not verified? I have tried in Eclipse and it's work If I put (10,2) in line 12, I get 5 as a result In case (10, 0) result is error, but this is the point, isn't it?
12/30/18
2144
views
3
comments
0
Marek Pasierbek
Level 9
Poznań
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Why getMonth() method is deprecated ?
public static void removeAllSummerPeople(HashMap map) { Iterator> iterator = map.entrySet().iterator();//write your code here while (iterator.hasNext()) { Map.Entry entry = iterator.next(); if (entry.getValue().getMonth() >= 5 && entry.getValue(
7/17/20
758
views
3
comments
0
Nithin
Level 35
Hyderabad
Question about the task
Hippodrome (part 6)
Java Multithreading
,
Level 1
,
Lesson 16
Resolved
anyone please help me what i am missing here ?
I think i am missing something in conditions .please help me
6/26/19
1421
views
5
comments
0
Antonia
Level 10
Question about the task
Seeing dollars in your future
Java Syntax
,
Level 4
,
Lesson 10
Under discussion
help
help
7/9/19
2229
views
12
comments
0
Show more
1
...
167
168
169
170
171
...
374
Please enable JavaScript to continue using this application.