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
Marek Pasierbek
Level 9
Poznań
Question about the task
Catching unchecked exceptions
Java Syntax
,
Level 9
,
Lesson 8
Under discussion
Why I can't understand it?
Theme try/catch/exceptions is not dificoult so why I can't understand what I should to do in this task? My code is OK but not acceptable. I should catch all exceptions without Null, Index and Number?
21.07.2020
622
views
4
comments
0
Maxine Hammett
Level 19
San Diego
Question about the task
Let's make the code do something useful!
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
So Lost
I'm just not getting this task assignment. It's not passing verification on the copy tasks. Your help is appreciated.
21.07.2020
265
views
1
comment
0
Ian De Bie
Level 28
Austin
Question about the task
Snake (Part 17/20)
Games
,
Level 0
,
Lesson 1
Resolved
Why isn't my SnakeGame onKeyPress() method passing?
The failing message is: The onKeyPress(Key) method must call the createGame() method if the passed argument is Key.SPACE and the game is stopped (isGameStopped == true). Recommendation from mentor is: Be sure that the onKeyPress(Key) method does not call the createGame() method if the key pressed w
21.07.2020
315
views
1
comment
0
Rebekah H
Level 8
Gothenburg
Question about the task
Calculator
Java Syntax
,
Level 6
,
Lesson 8
Resolved
is this int to double conversion not correct?
It runs fine but it does not accepted this solution. Is the division done before the conversion or why do I not pass? public static double divide(int a, int b) { //write your code here double div=a/b; return div;
21.07.2020
430
views
2
comments
0
Brad Reed
Level 19
Hartford
Question about the task
Bridges
Java Core
,
Level 4
,
Lesson 8
Resolved
not sure how it wants me to fix that...
the failure is because the println method doesn't have a public access modifier, which is clearly there. help??
20.07.2020
419
views
6
comments
0
Maxine Hammett
Level 19
San Diego
Question about the task
What's today's date?
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Output is alwasy January
I'm not sure what's wrong with my code. When I run it the output is always set to January regardless of what input date is entered. Your help is appreciated.
21.07.2020
411
views
3
comments
0
hidden #10625598
Level 23
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
can somebody tell me my mistake?
21.07.2020
329
views
3
comments
0
andy 6473
Level 9
Bangalore
Question about the task
Setting the number of cats
Java Syntax
,
Level 4
,
Lesson 2
Under discussion
Kindly let me know how code 1 is diferent from code 2
code 1) public class Cat { private static int catCount = 0; public static void setCatCount(int catCount) { //write your code here } public static void main(String[] args) { } } code 2) public class Cat { private static int catCount = 0; public void setCatCoun
19.03.2020
1098
views
2
comments
1
fifi deng
Level 22
Paris
Question about the task
Symbol frequency
Java Core
,
Level 8
,
Lesson 11
Under discussion
help, using casting type methods
output is right,but not verfying
19.07.2020
363
views
10
comments
0
Yuvavimal
Level 12
coimbatore
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Resolved
please check my code. it's print output is correct. but task not to meet ,what is a wrong
package com.codegym.task.task05.task0532; import java.io.*; import java.util.*; /* Task about algorithms */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); // Scanner
21.07.2020
381
views
1
comment
0
Dyrits
Level 22
Question about the task
Snake (Part 14/20)
Games
,
Level 0
,
Lesson 1
Resolved
I don't know what I'm doing wrong...
The move(Apple) method must call the checkCollision(GameObject) method with the new head as the argument before the new snake segment is added to the snakeParts list. Isn't it what I'm doing ? public void move(Apple apple) { GameObject newHead = createNewHead(); boolean outOfA
17.07.2020
549
views
2
comments
0
Jaxsen Chew
Level 29
Question about the task
Let's make the code do something useful!
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Can't seem to figure out where the copying goes wrong
Tried looking at the other questions on this task but to no avail. Someone recommended using a for loop with the try-catch inside but it seems redundant to me. Anyone has any ideas on what to change to get my code working?
06.05.2020
670
views
2
comments
0
Iasu
Level 18
Question about the task
Time conversion
Java Syntax
,
Level 3
,
Lesson 5
Resolved
Do i have to convert to double datatype to pass requirement 2?
I don't understand why I'm getting an error on req.2? I have tried "hour = hour/36000", I get the same error.
30.11.2018
1868
views
3
comments
0
jake taylor
Level 17
Lisbon
Question about the task
GCD
Java Core
,
Level 4
,
Lesson 8
Under discussion
what is wronggggg
task 2 is very poorly written please can somebody assist?
02.07.2020
339
views
3
comments
0
Ryan
Level 16
Ashburn
Question about the task
GCD
Java Core
,
Level 4
,
Lesson 8
Resolved
Everything Works but 2nd Condition Still Fails
I'm not sure why this is not passing. I meet all of the conditions except #2 and I meet that one I as through an exception if the numbers are not positive after attempting to convert them to positive. Any advice is appreciated.
20.07.2020
391
views
1
comment
0
Joel Pearce
Level 22
Birmingham, UK
Question about the task
Going national
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Programme works, but can't meet third condition
Hello all, My programme meets the task requirements in that it capitalises the first letter of every string, but for some reason it can't pass the 3rd condition. I have inputted a bunch of difference sentences to see if it would work and it's perfect every time. Could anyone let me know why my code
16.07.2020
603
views
2
comments
1
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.
20.07.2020
477
views
3
comments
0
Raj Mishra
Level 14
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?
10.05.2020
608
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?
09.04.2019
1537
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
20.07.2020
353
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; } }
15.05.2019
2065
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
02.11.2018
1624
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
19.07.2020
479
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?
18.07.2020
336
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.
27.05.2020
802
views
9
comments
2
Raj Mishra
Level 14
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.
18.07.2020
405
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?
18.07.2020
442
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
09.04.2020
753
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
18.07.2020
300
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?
17.07.2020
477
views
2
comments
0
Show more
1
...
158
159
160
161
162
...
366
Please enable JavaScript to continue using this application.