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
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.
7/18/19
1720
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.
7/19/19
1225
views
1
comment
0
Raisa Toscano
Level 27
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?
12/28/18
2136
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++) {
7/10/19
1408
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
7/10/19
1438
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
7/17/19
1159
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 */
7/10/19
1516
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
7/23/19
1237
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
7/23/19
1395
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.
7/22/19
2019
views
4
comments
0
Jay
Level 17
Washington
Question about the task
Changing functionality
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
not meeting requirements
I have the following problems with my program: 1. it's not outputting the last String entered: "I". 2. My twice and thrice duplication seems to be OK, but when I verified it said to be sure that it duplicates twice if it's even thrice if it's odd. Please help. Thanks.
7/20/19
1570
views
2
comments
0
Mihajlo
Level 18
Laktasi
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
I am getting correct result but last statement is not verified and error appears. Can someone help me?
package com.codegym.task.task07.task0705; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; /* One large array and two small ones */ public class Solution { public static void main(String[] args) throws Exception { //write your code
7/23/19
1461
views
2
comments
0
Steve
Level 15
St. John's
Question about the task
Minesweeper (Part 6/16)
Games
,
Level 0
,
Lesson 0
Under discussion
Can anyone see where the bug is?
The task fails the last three checks, but I'm unclear why the last two fail; I do call countMineNeighbors() at the end of createGame() and I use getNeighbors(...) in the countMineNeighbors() method. I cannot figure out where I am counting neighboring mines for a cell that is also a mine. if (!cell
7/21/19
1485
views
2
comments
0
Lukas Smetana
Level 10
London
Question about the task
Even numbers
Java Syntax
,
Level 4
,
Lesson 13
Resolved
Doesen't work in web enviroment
Works in InteliJ but still not passing
7/23/19
1472
views
5
comments
0
Bogdan Codreanu
Level 23
Question about the task
Maximum byte
Java Core
,
Level 8
,
Lesson 3
Resolved
??
help!
7/23/19
1536
views
0
comments
0
Nitin raj
Level 12
Mumbai
Question about the task
Changing functionality
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
I am confused
Why task Codition is not met
7/18/19
1261
views
3
comments
0
Divakar Reddy
Level 15
Nandyal
Question about the task
Remove and insert
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
can anyone explain me whats wrong with the code
what mistake am i done
7/7/19
1318
views
5
comments
1
Riya
Level 8
Karnal
Question about the task
Expressing ourselves more concisely
Java Syntax
,
Level 7
,
Lesson 6
Archived
the program running properly and showing desired output
the 3rd requirement is also done. Still not verifying.
10/16/18
2328
views
4
comments
1
hidden #10480161
Level 8
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
Is this an error?
I can't find the problem here, when I Verify, it says "Be sure that the program works correctly with negative numbers." and it does.
7/3/19
1363
views
3
comments
0
Laurap5
Level 9
Vilnius
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Please help
I'm receiving the correct answer, but verification unsuccessful.
12/4/18
2433
views
9
comments
2
Voris
Level 10
Tashkent
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
I can't find my mistake. Error : reached end of file while parsing
public class Solution { public static void main(String[] args) throws Exception { BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); int[] house = new int[15]; int even = 0; int odd = 0; for(int i = 0; i < 15; i++)
6/23/19
1894
views
2
comments
2
Dona
Level 7
Question about the task
String array in reverse order
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
not working
please someone help me to solve this code.
7/11/19
1203
views
1
comment
1
Mike McKenna
Level 25
Wilmington
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
i can not get by last condition . please help
#'s i used are 5,5,2,8 Thanks
7/22/19
1417
views
3
comments
0
Anonymous #10438472
Level 3
Question about the task
Going national
Java Syntax
,
Level 8
,
Lesson 11
Archived
Which test scenario am I missing?
Could you please help me to find which scenario I am missing here? It seems to work wit different number of spaces but still it doesn't pass.
6/11/19
1781
views
8
comments
0
SefoBe
Level 16
Paris
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
What is missing ?
Please tell me what is missing
7/11/19
1118
views
4
comments
0
José Francisco Aranda
Level 8
Question about the task
Minesweeper (Part 4/16)
Games
,
Level 0
,
Lesson 0
Resolved
Help with the task
Help with my task
7/22/19
1642
views
1
comment
0
Christian Djanea
Level 7
Mount Laurel
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
What do I do wrong?
I have tried this code into IntelliJ Idea with several inputs and it seems to be working well, but here I am getting Green and Yellow don't work. You could see my thought process in the code below. Thanks for your help
7/15/19
1310
views
3
comments
0
hidden #10484120
Level 13
Question about the task
Pets need people
Java Syntax
,
Level 2
,
Lesson 5
Resolved
Does it matter the order of the lines?
Hi, I just had a question regarding this task: I had an error when I was posting the solution like this: public class Solution { public static void main(String[] args) { Cat cat = new Cat(); cat.owner = woman; Dog dog = new Dog(); dog.owner = woman;
7/13/19
1878
views
6
comments
2
Nitin raj
Level 12
Mumbai
Question about the task
HashMap of cats
Java Syntax
,
Level 8
,
Lesson 3
Under discussion
What the problem here please help
Guyzz check whats the problem is
7/20/19
1369
views
1
comment
0
Divakar Reddy
Level 15
Nandyal
Question about the task
Correct answer: d = 2.941
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
i am able to get the output correctly but not satisying the condition
where am i done wrong
7/22/19
1129
views
2
comments
0
Show more
1
...
297
298
299
300
301
...
374
Please enable JavaScript to continue using this application.