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
Sergey Morozov
Level 5
Helsinki
Question about the task
Product of 10 numbers
Java Syntax
,
Level 3
,
Lesson 4
Resolved
The answer is correct, but the task is failed.
Do you have any ideas, why it's failed?
29.05.2019
1859
views
8
comments
2
JeRiF94
Level 22
Baku
Question about the task
Yet another adapter
Java Core
,
Level 9
,
Lesson 3
Under discussion
Guys, something wrong
What actually wrong ?
25.07.2019
1368
views
1
comment
0
Jyothi
Level 20
Question about the task
Words in reverse
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Verify failing for removing 3rd item and displaying items on the screen. Please advise.
Screen output from the program (System.out) Stays Spain Rain The Input data (System.in) The Rain In Spain Stays
27.12.2018
1579
views
5
comments
0
Ashwin
Level 6
Bangalore
Question about the task
Number of days in the year
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
I do not know what is wrong here. it is working perfectly if i am running without verification but if i try to verify, it shows correct for leap year, but incorrect for normal year.
I do not know what is wrong here. it is working perfectly if i am running without verification but if i try to verify, it shows correct for leap year, but incorrect for normal year. here is the code. import java.io.*; public class Solution { public static void main(String[] args) throws Except
12.03.2019
1714
views
3
comments
0
hidden #10462592
Level 8
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Why the last 2 conditions are not being satisfied?
Although the code runs well and it gives out the maximum of the 4 numbers the last 2 conditions are not being satisfied. help!
25.07.2019
1041
views
2
comments
0
GCPix
Level 15
Glasgow
Question about the task
Triangle of eights
Java Syntax
,
Level 4
,
Lesson 13
Resolved
Keep failing on the third requirement
When I type it into eclipse I get the output I expect. I have tried it with both String 8 and int 8, just in case, and I fails every time. I think i have gone code blind, what am I missing? Thanks in advance G
18.06.2019
1385
views
4
comments
0
Denis
Level 22
Kharkiv
Question about the task
Transactionality
Java Core
,
Level 7
,
Lesson 10
Under discussion
What i must be change
last condition pls
28.06.2019
1027
views
1
comment
0
karina abad
Level 11
Daly City
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
Why are my outputs 0's?
Can't seem to figure out why my secondArray's full of 0's
24.07.2019
1059
views
1
comment
0
KARAN BHOITE
Level 15
Nagpur
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
please???
please???
24.07.2019
1379
views
3
comments
0
Gábor
Level 14
Budapest
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Task is comply and work but one Requirements did not pass...
Failed task --> The program should display the numbers in descending order. But it is working as it should, tried it with the couple of numbers..
25.07.2019
1272
views
3
comments
0
Bhavishya Samriya
Level 8
Jaipur
Question about the task
HashMap of 10 pairs
Java Syntax
,
Level 8
,
Lesson 3
Under discussion
what the last two conditions aren't verified
what the last two conditions aren't verified
22.07.2019
1137
views
2
comments
1
hidden #10462592
Level 8
Question about the task
Day of the week
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Help!
The code is correct and It gives the solution too, but I am not able to satisfy all the conditions. why?
16.07.2019
1358
views
8
comments
0
Deepak Chandra
Level 16
Visakhapatnam
Question about the task
Safe retrieval from a list
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
I need help to improve My code
I need help to improve my code public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); ArrayList<Integer> list = new ArrayList<Integer>(); for (int i = 0;
25.06.2019
1256
views
1
comment
0
Serhii Yevtushok
Level 17
Kharkov
Question about the task
Safe retrieval from a list
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
What's wrong here?
For number from 1 to 20 Output is: 7 7 9
20.03.2019
1551
views
3
comments
0
Gábor
Level 14
Budapest
Question about the task
Minimum of two numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
and now what ???
the code is functioning perfectly, but still falling to pass the last Requirement. But when I run it with the equal number it showing both of them.
25.07.2019
1754
views
2
comments
0
Jeevan Singh
Level 3
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Resolved
i AM STUCK IN THIS PROBLEM'
import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String sAge = reader.readLine(); int nAge = Integer.parseInt(sAge); String name = reade
21.09.2018
2260
views
3
comments
0
Anusha Govindarajan
Level 7
Amsterdam
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Resolved
I get error saying infinite loop.Please help.
package com.codegym.task.task05.task0507; /* Arithmetic mean */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int
24.07.2019
1162
views
2
comments
0
Jay
Level 17
Washington
Question about the task
Greater than 10? You're not a good fit for us
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Failing on last requirement
I've tried using an iterator as well as making a copy of the set, iterating through the original and removing from the copy and then returning the copy: nothing works. Please assist.
24.07.2019
1099
views
4
comments
0
Anita Pal
Level 14
Question about the task
Do we have a pair?
Java Syntax
,
Level 4
,
Lesson 4
Resolved
plzz help me in finding error in my code
package com.codegym.task.task04.task0417; /* Do we have a pair? */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader br= new BufferedReader(new InputStreamReader(System.in)); String s1 = br.readLine();
23.07.2019
1577
views
2
comments
0
Jackgai
Level 26
Tokyo
Question about the task
Sorting even numbers from a file
Java Core
,
Level 3
,
Lesson 11
Archived
Too many lines error
The forth requirement can't be passed. The error is "too many lines", but I checked the output on eclipse. The output is the same as Example output. I hope someone could give me a help. Appreciate it.
08.07.2019
1533
views
2
comments
1
Rupa Joshi
Level 29
Tokyo
Question about the task
GCD
Java Core
,
Level 4
,
Lesson 8
Under discussion
Can anyone help me with what is expected?
I have tried many different things but it doesn't seem to be working. The final code may not be the perfect but as I said I tried many things and finally asking for the help. May be i am not been able to understand what's actually expected. Anyone can help me with verification pass.
18.07.2019
1608
views
1
comment
0
Yuchen
Level 17
Los Angeles
Question about the task
Task about algorithms
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
PLS tell me what should I do? keep telling me variable expected.
please help me to figure out why the compiler tells me variable expected. The error line is line 53, 54, and 63, 64. I am very confused that I did this algorithms before in pervious tasks, and it passed perfectly. But in this task, I don't know why it keep telling me variable expected. thank you.
19.07.2019
1108
views
1
comment
0
Raisa Toscano
Level 22
Tepic
Question about the task
In decreasing order
Java Syntax
,
Level 7
,
Lesson 12
Resolved
why does it shows the numbers in decreasing orde
r but still the answer is incorrect?
28.12.2018
2021
views
3
comments
1
hidden #10480161
Level 8
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Can't find the error
public class Solution { public static void main(String[] args) throws IOException { //write your code here ArrayList strings = new ArrayList(); BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); for (int i = 0; i < 10; i++) {
10.07.2019
1286
views
2
comments
1
hidden #10480161
Level 8
Question about the task
Duplicating words
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Why is this not working? It fails to check the display task
public class Solution { public static void main(String[] args) throws Exception { // Read strings from the console and declare an ArrayList here ArrayList strings = new ArrayList(); BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); for
10.07.2019
1259
views
3
comments
2
KARAN BHOITE
Level 15
Nagpur
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
please give me some suggestion
public class Solution { public static void main(String[] args) throws Exception {int[] array=new int[20]; int[] sarray=new int[10]; int[] ssarray=new int[10]; BufferedReader r=new BufferedReader(new InputStreamReader(System.in)); for(int i=0;i
17.07.2019
1046
views
2
comments
0
Anonymous #10410173
Level 22
Delhi
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Resolved
where i am doing mistake ?
package com.codegym.task.task04.task0416; /* Crossing the road blindly */
10.07.2019
1406
views
4
comments
0
Jay
Level 17
Washington
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
Not meeting requirements
I believe the problem with my code is that the variable longest is set to the value of the variable counter. So when the value of counter changes (specifically when it passes the longest sequence) the longest sequence (3 according to the example input) is not being stored. I can't figure out how to
23.07.2019
1117
views
2
comments
0
Mihajlo
Level 18
Laktasi
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
I am getting correct result but last condition didn't match. Whyyy???
package com.codegym.task.task07.task0706; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; /* Streets and houses */ public class Solution { public static void main(String[] args) throws Exception { //write your cod
23.07.2019
1253
views
1
comment
0
hidden #10484120
Level 13
Question about the task
Sum of the digits of a three-digit number
Java Syntax
,
Level 3
,
Lesson 12
Resolved
Please let me know what I'm doing wrong, I have tried everything but last requirement is not being fulfilled. Output is 15.
Hi all, Please let me know what I'm doing wrong, I have tried everything but last requirement is not being fulfilled. Output is 15 and I repeated it 3 times.
22.07.2019
1892
views
4
comments
0
Show more
1
...
294
295
296
297
298
...
372
Please enable JavaScript to continue using this application.