Promotion
CodeGym University
Java FullStack
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
Christopher Render
Level 12
Question about the task
Even and odd digits
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
What do I change?
The output is correct, however, I miss conditions 2, 3, and 5.
5/29/20
578
views
2
comments
0
BlueJavaBanana
Level 37
Question about the task
Punctuation
Java Core
,
Level 9
,
Lesson 5
Resolved
Won't pass.
I've refactored this code about 8 times. Tried several methods. What am I missing?
5/30/20
607
views
0
comments
0
Sabine Meijran-Prins
Level 7
Enschede
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Use the min(a, b) method??
I am busy for a long time with this task, but I cannot figure out how the min(a, b, c, d) method can use the min(a, b) method.
11/30/18
2330
views
7
comments
1
Michael Martin
Level 2
Arlington
Question about the task
Adapting multiple interfaces
Java Core
,
Level 9
,
Lesson 3
Resolved
Format of phone Number
Does the format of the returned phone number have to match the sample exactly (with + and () and spaces)?
12/17/18
2282
views
4
comments
2
Nehal Abubakar
Level 7
Karachi
Question about the task
Pets need people
Java Syntax
,
Level 2
,
Lesson 5
Resolved
i can't Understand
Plzz help me out with this
8/8/18
2931
views
9
comments
0
Stephen Haokip
Level 8
imphal
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
hey anyone accessing codegym thru mobile
i can access codegym premium content thru mobile phone. but when i access it thru the web on a laptop its not available. i m afraid i might so something illegal. or did the creators do this on purpose.
5/29/20
578
views
1
comment
0
Angel Stefan Arjoca
Level 26
Bucharest
Question about the task
The end
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
OMG!!! This arrayList 😡
Can anybody help me, pls? I am so stuck...
5/28/20
1062
views
4
comments
0
Dinesh
Level 7
Delhi
Question about the task
Number of days in the year
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Condition not satisfied
package com.codegym.task.task04.task0414; /* Number of days in the year */ 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))
5/29/20
544
views
1
comment
1
Onome Brownly-Otiede
Level 9
Galway
Question about the task
Roy G. Biv…
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
heeelp meeeee ppppppppplllllllllllsssssssss
i dont know answer
5/26/20
603
views
4
comments
0
Onome Brownly-Otiede
Level 9
Galway
Question about the task
Escaping characters
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
pls help pls
its String d = "This is a Windows path: \"C:\\Progam Files\\Java\\jdk1.8.0_172\\bin\""; String a ="This is a Java string: \"C:\\\\Program Files\\\\Java\\\\jdk1.8.0_172\\\\bin\\\""; System.out.println(d); System.out.print(a); } } not the code down below
5/27/20
1138
views
4
comments
0
David
Level 26
Bucharest
Question about the task
Shall we play?
Java Core
,
Level 6
,
Lesson 13
Under discussion
Help!! I dont understand
I get the right output but it doesn't pass Smith:Start game Jones:Start game Gates:Start game Gates:Gather resources Smith:Gather resources Gates:Grow economy Gates:Kill enemies Smith:Grow economy Gates:won! Jones:lost! Smith:lost!
5/29/20
610
views
1
comment
0
Leonard Basag
Level 7
Iasi
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
Good output but last 2 conditions are not met
I have good output, but it does'n met last 2 conditions. Can you check it out, please?
5/29/20
433
views
1
comment
0
Jaxsen Chew
Level 29
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Under discussion
Can't figure out whats wrong
Hi, Tried using different inputs to debug but all seems ok. Sometimes wish that codegym would show you what situations your code is failing at so that you can work on it
5/29/20
533
views
1
comment
0
Azamat Aminov
Level 1
Tashkent
Question about the task
Sokoban (part 15)
Java Collections
,
Level 10
,
Lesson 15
Resolved
Please help
Where is the problem. I don't understand
5/28/20
666
views
4
comments
0
Show How
Level 13
Manchester
Question about the task
Functionality is not enough!
Java Syntax
,
Level 10
,
Lesson 11
Resolved
Last two tests are not passing
After trying so many times I am forced to ask for help. My code produce the correct results I think with ==, isEmpty() and str.equals("") but tests are not passing. Can anyone point to me what's wrong with my code? Thank you.
5/29/20
570
views
2
comments
0
Odd
Level 6
Clarksdale
Question about the task
Multiplication table
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
Why is this not working?
My code should form a 10x10 multiplication table with a space between each number...and it does. What could the problem be?
5/8/20
931
views
3
comments
0
AnnemiekFF
Level 41
Breda
Question about the task
Hippodrome (part 6)
Java Multithreading
,
Level 1
,
Lesson 16
Resolved
I don't get the problem?
The task looks simple enough, but for whatever reason it is not working and I don't know why? As far as I can see I do what they ask. There is a game field initialized in the main, horses added to horses and speed and distance set correctly. I tried it with adding the horses to the existing list, to
3/13/20
1171
views
3
comments
0
Ibrahim Sharif
Level 2
Trenton
Question about the task
Max, Bella, and Jack
Java Syntax
,
Level 2
,
Lesson 3
Under discussion
Neeed help with problem
How do I assign each object to a name.
7/31/19
1453
views
5
comments
0
hidden #10529213
Level 19
Question about the task
Finding data inside a file
Java Core
,
Level 8
,
Lesson 11
Resolved
The output is right!!!
Can someone help me The output is right.
5/22/20
847
views
3
comments
0
Belinda
Level 4
Portland
Question about the task
Financial expectations
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
The code below works in Intellij, but it doesn't work when I cut and pasted into the task with code gym....no idea why it works one place and not the other.
The code below works in Intellij, but it doesn't work when I cut and pasted into the task with code gym....no idea why it works one place and not the other. package com.codegym.test; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Solution
5/29/20
560
views
2
comments
0
Balen Asangbeh
Level 23
Douala
Question about the task
Hippodrome (part 6)
Java Multithreading
,
Level 1
,
Lesson 16
Resolved
pls what`s wrong
pls help
4/17/19
1451
views
5
comments
0
Dinesh
Level 7
Delhi
Question about the task
Seasons on Terra
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
completed the task but again unable to understand how line no 16 is working
how int month the passed argument passed inside checkSeason(int month) is working for all of the checkSeason() inside main()
5/27/20
653
views
6
comments
0
Tahsin Anam
Level 12
Helsinki
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
Which part I am making the mistake.
The verification is saying " Be sure that the length of the longest sequence is calculated correctly when it is located at the end of the list of entered numbers." But I thing I took care of this issue.
5/28/20
578
views
1
comment
0
I.A
Level 7
unknown city
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
what is wrong
what is wrong?
10/11/18
1458
views
5
comments
0
Alex
Level 2
New York
Question about the task
Minimum of two numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
I keep getting java overflow?
package com.codegym.task.task02.task0214; public class Solution { public static int min(int a, int b) { int m2; int min = min(a,b); if (a < b) m2 = a; else m2 = b; return m2; } public static void main(String[] args) thro
4/4/20
1526
views
5
comments
1
JianQiu Hwang
Level 35
Washington
Question about the task
Useful methods of the DateTime API
Java Collections
,
Level 10
,
Lesson 10
Resolved
What's the problem of the isBefore?
What's the problem of the isBefore?
5/28/20
893
views
2
comments
0
Szymon
Level 41
Warsaw
Question about the task
Maximum in an array
Java Syntax
,
Level 7
,
Lesson 4
Resolved
max() method problem
Hey guys, maybe I'm blind or sth but i cant see whats wrong with it. It seems to work with negative numbers though.
5/27/20
708
views
4
comments
1
dhanush
Level 30
Chennai
Question about the task
Describing numbers
Java Syntax
,
Level 4
,
Lesson 7
Archived
help!
tell me pls why the last condition is not satisfying
5/27/20
546
views
3
comments
0
Derrick Shema
Level 14
Bethany
Question about the task
Adding
Java Syntax
,
Level 4
,
Lesson 16
Resolved
Struggling with the logic part of this question.
I am getting an output of 0000 and I am not sure what I am doing wrong. while (true) { int n=Integer.parseInt(cbeu.readLine()); if (n==-1) { sum+=n; break; } System.out.print(sum);
5/27/20
811
views
3
comments
0
AnnemiekFF
Level 41
Breda
Question about the task
Fill 'er up
Java Collections
,
Level 9
,
Lesson 9
Resolved
Where is the problem? The output appears to be correct when tested
I don't know where the problem is. I check for the 4 adjoining cells as the diagonal joining ones don't count (I think?) and change them if they are the same color as the original. Then I check for each of those changed cells if their adjoining are different and so on. I safe the changes to a variab
5/8/20
657
views
1
comment
0
Show more
1
...
189
190
191
192
193
...
374
Please enable JavaScript to continue using this application.