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
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
447
views
1
comment
0
Dyrits
Level 1
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
628
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
749
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
1981
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
420
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
478
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
705
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
597
views
3
comments
0
Raj Mishra
Level 15
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
684
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
1853
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
417
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
2281
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
1789
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
547
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
407
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
961
views
9
comments
2
Raj Mishra
Level 15
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
477
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
526
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
902
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
367
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
590
views
2
comments
0
Shaik Azharuddin
Level 2
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
18.07.2020
452
views
1
comment
0
Comific
Level 3
Plymouth
Under discussion
Cant disable my subscription
No disable button????
18.07.2020
460
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...
07.07.2020
555
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
18.07.2020
483
views
2
comments
0
Shaik Azharuddin
Level 2
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
13.07.2020
513
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?
18.07.2020
549
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?
18.07.2020
718
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
14.01.2020
1629
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
08.07.2020
664
views
4
comments
0
Show more
1
...
164
165
166
167
168
...
371
Please enable JavaScript to continue using this application.