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
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
10.11.2020
404
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
09.11.2020
487
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!
10.11.2020
709
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^^
10.11.2020
710
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
08.11.2020
341
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;
09.11.2020
400
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
07.11.2020
542
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?
09.11.2020
661
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".
09.11.2020
485
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.
09.11.2020
533
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
09.11.2020
933
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.
18.03.2019
2240
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.
07.11.2020
396
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?
09.11.2020
689
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
15.04.2020
1084
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"
09.11.2020
550
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
19.03.2020
1452
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?
09.11.2020
1424
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?
15.06.2020
677
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.
06.11.2020
499
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 :)
08.11.2020
700
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...?!?!?!
05.11.2020
663
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
29.06.2019
1370
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
17.03.2020
844
views
1
comment
1
Karol
Level 22
Kraków
Question about the task
Snake (Part 20/20)
Games
,
Level 0
,
Lesson 1
Resolved
Problem with running game.
Hi, I've got a problem with running my game. This is what Intellij shows. How can I fix it? Exception in Application start method Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccess
06.11.2020
392
views
2
comments
0
Drazen Jankovic
Level 11
München
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
works with positive, negative, zero, but does not pass the test ... why?
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(reader.readLine()); int b = Integer.parseInt(reader.readLine()); int c = Integer.parseInt(reader.readLine()); if (a >= b && a >= c && b >
03.11.2020
572
views
2
comments
0
Etienne Bélanger
Level 34
Longueuil
Question about the task
Palindrome?
Java Multithreading
,
Level 10
,
Lesson 2
Under discussion
Where am I wrong?
Where am I wrong? I have the illusion to have all the requirement pass, but I can't see it...
05.05.2020
500
views
2
comments
1
Luyi
Level 31
Kosice
Question about the task
Mastering the methods of the Integer class
Java Multithreading
,
Level 10
,
Lesson 2
Archived
Any tips?
Hello there, could you please advice any hints how to pass it?
13.06.2020
512
views
2
comments
2
- FniJnn -
Level 33
Paris
Question about the task
The archaic word "biathlon"
Java Multithreading
,
Level 9
,
Lesson 9
Resolved
Output is correct, only one change made
Thanks :)
27.03.2020
1208
views
4
comments
2
Etienne Bélanger
Level 34
Longueuil
Question about the task
Restaurant (part 16)
Java Multithreading
,
Level 9
,
Lesson 15
Under discussion
Can't get the third condition to work
Hi, I can't get the third condition to work. I think the problem is related to the amount per day that should be a double, but it's a long from the beginning of the exercise. I reverse my treemap display (descendingMmap()) which I think it's right, but maybe I don't get the description of the exerc
05.05.2020
685
views
5
comments
2
Show more
1
...
115
116
117
118
119
...
372
Please enable JavaScript to continue using this application.