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
Roman Grygorczuk
Level 19
Cracow
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
NullPointerException
Hi all, I cannot display last two lines and get NullPointerException. Any clue please? Thanks, Roman
11/8/20
532
views
3
comments
0
Dinesh
Level 7
Delhi
Under discussion
Why out put as 0.0 ?
public class TenPerIncrease { public static double addTenPercent(int i) { //write your code here double incInPer = (10/100)*i; return incInPer; } public static void main(String[] args) { System.out.println(addTenPercent(9)); } }
11/10/20
442
views
2
comments
0
AlfredW
Level 23
Denver
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Resolved
STILL Wont Verify.
I got the time out fixed and my results numbers are good. Still won't verify....? Keeps saying: "The getNumbers method must return the array of numbers that satisfy the task conditions." Here are the results I get with 1000 and 1000000. But I have also run a couple of bigger numbers as well. So I
11/8/20
788
views
17
comments
0
AlfredW
Level 23
Denver
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Resolved
Still keeps timing out...
I have gotten the right results but I get timed out. I tried using an array to hold the factored values to speed up calculating the bigger numbers. but it still times out. ??
11/8/20
653
views
1
comment
0
Alexandre Lalancette
Level 41
Quebec
Question about the task
Aggregator (part 13)
Java Collections
,
Level 8
,
Lesson 15
Under discussion
Stuck with 2 requirements not passing. This big task is toughhh
From the 5 people that actually passed this, can you give me a small hint? Thank you!!
2/18/20
1264
views
3
comments
0
MoJo
Level 23
Cairns
Question about the task
Creating threads recursively
Java Core
,
Level 6
,
Lesson 13
Resolved
I got the taks right, but i don't quiet understand the behavoir
So, i don' want to give the answer here, but i first tried this: while (createdThreadCount < count) { System.out.println(new GenerateThread());} } and that this: if (createdThreadCount < count) The while loop didn't validate ("too many l
11/8/20
790
views
2
comments
0
Kaiyr Shayakhmetov
Level 22
Question about the task
Introducing tags
Java Core
,
Level 9
,
Lesson 11
Under discussion
Cant fulfill the last condition
Could you plz help me with the final condition: have tried many different options, still cant pass the validation
11/10/20
482
views
1
comment
0
Andrei
Level 41
Question about the task
Software update
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Output is correct but the task is not validated. Please help!
I have run the program with various combinations and it worked as expected. Even so, it won't validate. public class Solution { static String family; static String city; static String cityByUser; public static void main(String[] args) throws IOException { BufferedReader r
11/9/20
569
views
11
comments
0
raulGLD
Level 8
Cluj-Napoca
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
Why isn't last condition validated?
Hey, I can't seem to figure out why the last condition is not validated, I know doing the comparison of i and i+1 doesn't return the right number, but lastly I increase it by 1 and it should get it right. The output is correct for the input given. Thank you!
11/10/20
825
views
3
comments
0
Kasia
Level 22
Zabrze
Question about the task
Set of cats
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Seems ok, but doesn't pass the last validation
As in the title - when I run the code in the Intellij I got two objects (of the three originally). Hopefully, if more wise eyes look into the code, the better chance to see where is the mistake :) Thank you^^
11/10/20
817
views
5
comments
0
Dinesh
Level 7
Delhi
Under discussion
Error actual and formal argument differ in length..
public class SolEscape { public static void main(String[] args) { SolEscape solescape = new SolEscape("Dinesh"); System.out.println("This is Escape Sequence Example " + solescape); System.out.println("This is Escape Sequence Example " + solescape.toStrin
11/8/20
426
views
5
comments
0
Andrei
Level 41
Question about the task
Task about algorithms
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Maybe I am not understanding something?
For the bit of code below, won't it basically compare the same indexes (ex. array[0] with array[0]) ? It's not clear for me. public static void sort(String[] array) { //write your code here for (int i = 0; i < array.length; i++){ for (int j = i; j < array.length;
11/9/20
474
views
3
comments
0
Valuev Nutt
Level 4
Chiba
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Not sure where to go
I know there's a bit of code that could be compacted
11/7/20
645
views
9
comments
0
Ági Kerékgyártó
Level 7
Budaörs
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
What's wrong? Please help!
What's wrong?
11/9/20
755
views
2
comments
0
Ian De Bie
Level 28
Austin
Question about the task
Make a word chain
Java Multithreading
,
Level 2
,
Lesson 9
Resolved
What am I doing wrong?
My output for "Okinawa Washington Auckland Kalamazoo Norfolk" is "Washington Norfolk Kalamazoo Okinawa Auckland".
11/9/20
553
views
2
comments
0
Noob_Coder
Level 22
Springfield
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
dk how to correct my answer
idk if my idea is correct,but I really like it,if mine could be correct,plz give me the solution how to fix it,thx.
11/9/20
627
views
4
comments
0
Andrei
Level 41
Question about the task
Make a family
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Task is verified but I don't understand 2 things. Pls advise
Hello, I had difficulties finishing this task because I could not wrap my head around on how to add object to various arraylists. But I checked other questions and answers to them and saw that I only need 1 array list, of children. My questions are: 1. How does the following expression work: object
11/9/20
1128
views
7
comments
0
Andrew
Level 29
Seattle
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Resolved
My time is down to less than 2 seconds for 100 million, still not fast enough.
I don't really understand the result Guadalupe posted on Bill's question. I found a resource here: https://github.com/shamily/ArmstrongNumbers that should be fast enough but I can't understand his process either. Some guidance would be appreciated.
3/18/19
2380
views
7
comments
0
Youngsan
Level 41
Seoul
Question about the task
CashMachine (part 13)
Java Collections
,
Level 9
,
Lesson 15
Under discussion
Help!
Failed to initialized res field in DepositCommand, ExitCommand & InfoCommand. Additionally failed to use the appropriate resources in the execute() method in those classes.
11/7/20
470
views
3
comments
0
Шарох
Level 12
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Resolved
Hi Coders!
What is my wrong?
11/9/20
777
views
14
comments
0
Wei Cui
Level 39
Newark
Question about the task
Chat (part 5)
Java Multithreading
,
Level 6
,
Lesson 15
Under discussion
question
4/15/20
1168
views
2
comments
0
Andrei
Level 41
Question about the task
Working with dates
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Output is like in the questions, but apparently not good ? :(
public class Solution { public static void main(String[] args) throws ParseException { System.out.println(isDateOdd("November 9 2020")); } public static boolean isDateOdd(String date) throws ParseException { SimpleDateFormat sdf = new SimpleDateFormat("MMMMM dd yyyy"
11/9/20
637
views
4
comments
0
Anthony Chalk
Level 30
London
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Resolved
Please help
Mentor recommendation is: "The array returned by the getNumbers method is either missing elements or has extra elements." I pretty much used the code from this question, but corrected it for N ==0
3/19/20
1561
views
7
comments
0
Anitamalina
Level 18
København
Question about the task
Calculator
Java Syntax
,
Level 6
,
Lesson 8
Resolved
Divide and percentage ?
Do you know why this isn't working?
11/9/20
1510
views
6
comments
0
Tony Roy
Level 41
Victorville
Question about the task
CashMachine (part 12)
Java Collections
,
Level 9
,
Lesson 15
Resolved
Straightforward task. Seems to work. Won't pass.
It works for me. . . Some simple mistake?
6/15/20
752
views
1
comment
2
Ian De Bie
Level 28
Austin
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Resolved
What can I do to my code to keep it from timing out?
not sure if i can pass this one, because it keeps timing out.
11/6/20
610
views
7
comments
0
Maria
Level 7
Berlin
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
I can not find the mistake!!
Hello everyone, can you help me to find the mistake? I think the program is working good, but unfortunately is not validating the third condition. Thank you for your help, I really appreciate it :) Greetings, Maria :)
11/8/20
806
views
2
comments
0
Maryem Vickers
Level 7
HT...
Question about the task
Snake (Part 6/20)
Games
,
Level 0
,
Lesson 1
Under discussion
Hey there can I have some help?! What's wrong, Idk how to fix this, been stuck for days.
What is wrong so far?! I have tried different ways to solve this, nothing works...?!?!?!
11/5/20
753
views
3
comments
0
Denis
Level 22
Kharkiv
Question about the task
Prices
Java Core
,
Level 8
,
Lesson 11
Under discussion
pls help me
One condition left
6/29/19
1497
views
2
comments
0
Van Ha
Level 41
Bodegraven
Question about the task
Fork/Join
Java Multithreading
,
Level 10
,
Lesson 6
Resolved
What's wrong?
Both function return the same binary string, but task won't validate? Can't really tell what's wrong
3/17/20
924
views
1
comment
1
Show more
1
...
117
118
119
120
121
...
374
Please enable JavaScript to continue using this application.