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
Charlie Branson
Level 12
Wytheville
Question about the task
Implement the fight method
Java Syntax
,
Level 5
,
Lesson 5
Resolved
not sure why this is failing. the last test
package com.codegym.task.task05.task0502; /* Implement the fight method */ public class Cat { public int age; public int weight; public int strength; public Cat() { } public boolean fight(Cat anotherCat) { //write your code here if (this.age + this.stren
1/29/20
1533
views
2
comments
0
HaeWon Chung
Level 17
Boston
Under discussion
I cannot run the code on IntelliJ
Run icon is disabled so I cannot run or test it before submitting for verification. Does anyone have idea how to activate run icon?
1/29/20
903
views
6
comments
0
Ailin
Level 3
Saint Louis
Question about the task
Minesweeper (Part 5/16)
Games
,
Level 0
,
Lesson 0
Resolved
What am I doing wrong?
Pls help
1/23/20
1543
views
2
comments
0
Шерзод Мирсадыков
Level 8
London
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Stuck with the last condition
Hi guys! Can't figure out what's wrong with the code - the last condition never confirms. Could someone explain the reason?
1/29/20
1873
views
1
comment
0
Michał Witek
Level 12
Warsaw
Question about the task
Working with dates
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Req 3 not met, even tho return values are fine
Should i use Calendar instead?
1/29/20
1497
views
1
comment
0
Tessa Podbury
Level 18
Melbourne
Question about the task
Console-based piggy bank
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
Output is correct but not passing
Hi, My output works perfectly and I get the correct sum printed to screen no matter how many numbers I try. However I'm not passing any of the specs. Please help
1/29/20
1071
views
2
comments
0
Shujaat Mirza
Level 3
Houston
Question about the task
Comment out the superfluous
Java Syntax
,
Level 1
,
Lesson 4
Under discussion
how to reset task?
how to reset task?
10/28/19
1548
views
3
comments
0
HaeWon Chung
Level 17
Boston
Question about the task
Min and max in arrays
Java Syntax
,
Level 7
,
Lesson 12
Resolved
Initializing issue
With this code I got an error message Error in com/codegym/task/task07/task0721/Solution.java on line 28 variable maximum might not have been initialized Since i starts with 0, I was assuming list[i] assign to maximum and minimum which would initialize 2 variables. But apparently it doesn't work t
1/28/20
1186
views
9
comments
0
Ailin
Level 3
Saint Louis
Question about the task
Minesweeper (Part 9/16)
Games
,
Level 0
,
Lesson 0
Under discussion
Explanation required
Pls can someone explain
1/24/20
1300
views
1
comment
1
honeybun$
Level 3
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
why won't it compile?
it says M(string 15) wasn't initialized.
1/10/20
1525
views
2
comments
0
Mikayla Pace
Level 27
Salt Lake City
Question about the task
Threads of a string or stringy threads? That's the question
Java Multithreading
,
Level 2
,
Lesson 5
Under discussion
How do they want the strings formatted?
I know I need to implement the other two methods as well, but I can't even get the first one to verify, a bit confused about how they want them to be formatted. Any clues would be helpful.
1/18/20
1334
views
2
comments
0
Sindhura
Level 15
Delhi
Question about the task
Task No. 1 about integer type conversions
Java Syntax
,
Level 10
,
Lesson 4
Under discussion
My output is correct but not verifying46 0 1234.0 2147483647
package com.codegym.task.task10.task1001; /* Task No. 1 about integer type conversions */ public class Solution { public static void main(String[] args) { int a = 0; int b = (byte) a + 46; System.out.println(b); byte c = (byte) (a * b); System.out.prin
10/9/18
1931
views
2
comments
0
Charlie Branson
Level 12
Wytheville
Question about the task
Drawing a rectangle
Java Syntax
,
Level 4
,
Lesson 13
Resolved
I dont understand why this isnt working?
package com.codegym.task.task04.task0436; /* Drawing a rectangle */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); i
1/28/20
1365
views
3
comments
0
Rygoken
Level 2
Yonkers
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
I got the first statement to repeat but how do I call the second statement?
I got the first statement to repeat but how do I call the second statement?
1/27/20
1086
views
3
comments
0
Elvis Lee
Level 41
Aurora
Question about the task
2048 (part 5)
Java Multithreading
,
Level 10
,
Lesson 15
Resolved
Can't pass the validation of the mergeTiles method!
I've tested the method with various cases and can give the expected results, but just can't pass the validator. Any one can help?
1/23/20
1400
views
3
comments
0
Corto
Level 15
Dublin
Question about the task
Min and max in arrays
Java Syntax
,
Level 7
,
Lesson 12
Resolved
What is wrong here with code?
What is wrong here with code?
9/18/19
1327
views
3
comments
0
Djole
Level 41
Belgrade
Question about the task
Arkanoid (part 19)
Java Multithreading
,
Level 3
,
Lesson 13
Archived
it doesn't pass first condition. any advice?
public void checkBrickCollision(){ for(Brick brick : bricks) { if (ball.intersects(brick)) { double angle = Math.random() * 360; ball.setDirection(angle); bricks.remove(bricks.indexOf(brick)); } } }
4/14/19
1457
views
3
comments
0
Rho366
Level 20
Guatemala City
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Resolved
Problme with condition "The program should display the maximum of the N entered numbers."
For some reason I'm unable to find the error. I would appreciate any help with this problem. Thanks in advance.
1/27/20
1212
views
4
comments
0
krystian
Level 9
Kozle
Question about the task
Expressing ourselves more concisely
Java Syntax
,
Level 7
,
Lesson 6
Archived
Any hints? It should be working
public class Solution { public static void main(String[] args) throws Exception { Scanner sc1 = new Scanner(System.in); ArrayListarray = new ArrayList<>();
1/27/20
1265
views
2
comments
0
Eduardo
Level 23
Coyoacan
Question about the task
Kind Emma and the summer holidays
Java Syntax
,
Level 8
,
Lesson 8
Resolved
Stuck on final requirements
Hello fellow future programmers. I'm stuck on the last requirement. I have been reading and it has helped a lot (my program finally compiles). However I can't delete the people from summer months. Could someone please point me in the right directions or tell me where i lost my way? Thanks.
12/17/18
3157
views
12
comments
3
Krystian C
Level 27
San Francisco
Question about the task
Combining files
Java Core
,
Level 8
,
Lesson 11
Under discussion
Why does it not work?
I do know what is a problem with this solution. I think it can be problem with 40 line.
1/26/20
1066
views
4
comments
0
krystian
Level 9
Kozle
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Any hints?
private static List strings;
1/26/20
1552
views
2
comments
0
Somdutt Dwivedi
Level 1
Allahabad
Question about the task
Positive number
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
i dont know what is the problem in my code i have tried all possibilites still it is not working
2 test conditions are not fulfilled 1) The program should display the number of positive numbers in the original set. 2) Note that 0 is not a positive or negative number.
1/26/20
1242
views
2
comments
0
LucGar
Level 22
Bilbao
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Why my code dont work
I solves this, but with other code because this dont work. But, why this code dont work? i think the problem is that entrada.next().getValue(); and entrada2.next().getValue(); in the first time compare the same key. public static void removeFirstNameDuplicates(Map map) { ArrayList rem
1/26/20
885
views
2
comments
0
Pedzi
Level 22
Cape Town
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
The 3rd condition is not passing, someone please help me.
package com.codegym.task.task07.task0718; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; /* Checking the order */ public class Solution { public static void main(String[] args) throws IOException { ArrayList lis
1/26/20
1027
views
2
comments
0
Michał Witek
Level 12
Warsaw
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Requirement 3 not met.
I dont understand, why dont i met no.3 when the program displays only the longest strings, or several longest strings if they are the same lenght.
1/24/20
1059
views
2
comments
0
Jeremy Simons
Level 7
Peterborough, Cambridgeshire, UK
Question about the task
String array in reverse order
Java Syntax
,
Level 7
,
Lesson 4
Resolved
achieves objectives but isn't accepted?
I do not understand what aspect of the conditions my code does not do?
11/30/19
1414
views
5
comments
0
John Jones
Level 2
Shelby
Question about the task
Our first converter!
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
not excepting my format??
I'm getting the correct result, and it will not let me use (9/5) because it just skips over them at that point and gives me the result 73.0
12/1/19
1322
views
3
comments
0
Andason
Level 13
Ijebu-Ode
Question about the task
Playing Javarella
Java Syntax
,
Level 7
,
Lesson 9
Resolved
help please! first requirement not passing verification
Program works fine and first requirement still fail to pass verification. please any help, for i don't know what i am not doing right
1/20/20
1096
views
5
comments
0
Adam Maichrzik
Level 22
Katowice
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Last condition fals and I don't know why.
When I am testing it it works correctly.
1/25/20
997
views
2
comments
0
Show more
1
...
237
238
239
240
241
...
374
Please enable JavaScript to continue using this application.