Promotion
CodeGym University
Learning
Course
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
Aleksander
Level 18
Katowice
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Resolved
What i s wrong with this code ?
In my opinion the program compiles correctly because the returned values are consistent with the actual ones
30.01.2020
1275
views
2
comments
0
krystian
Level 9
Kozle
Question about the task
Remove and insert
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
Help pls. I can not pass the last Requirements
30.01.2020
739
views
2
comments
0
Pandora
Level 17
Stockholm
Question about the task
More Sam-I-Am
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Why is this not passing?
I do have the string "Ham" after each word, on a new line. This is my output: Sam Ham I Ham Am Ham I don't understand why the condition "After each word, add the string "Ham" to the list" isn't passing, can someone explain this to me please?
30.01.2020
1228
views
2
comments
0
Vicente
Level 9
Argentina
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
Do i really need to create 6 cat objects with different names?
PS: i know it's a complicated way to get the job done, but i didn't want to system print 80 billion times
15.11.2019
1339
views
3
comments
1
季军
Level 38
Shanghai
Question about the task
Snake (part 11)
Java Multithreading
,
Level 2
,
Lesson 18
Under discussion
Why the validator forces us to use Math.random()?
The validator only accepts Math.random() and reject any other implemention, even though Math.random() is a delegation of random.nextDouble()
30.01.2020
623
views
1
comment
0
SIDDHARTHA BISWAS
Level 9
Bhubaneshwar
Question about the task
Boss, something weird is happening
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
whats the problem ?
getting this error message. "The program should display a string that ends with the sum of the entered numbers."
07.02.2019
1293
views
4
comments
0
Fabian Andiel
Level 25
Vienna
Under discussion
Input Stream
Guys can you help me with the following detail. Why does the following example work. I dont get my head around the following line: " int data = inputStream.read(); " get the bytes of the file c:/data.txt concetinated automatically in the vaiable data or does inputStream.read() read the file
30.01.2020
725
views
1
comment
0
Arko Sarkar
Level 8
Mumbai
Question about the task
Max constructors
Java Syntax
,
Level 5
,
Lesson 9
Under discussion
What does this error mean?
public class Circle { public double x; public double y; public double radius; //write your code here public Circle(double x) { this.x = x; } public Circle(double x, double y) { this(x); this.y = y; } public Circle
28.08.2018
1757
views
5
comments
0
Charlie Branson
Level 12
Wytheville
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
not sure why this isnt working!
any help!
29.01.2020
1101
views
1
comment
0
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
29.01.2020
1155
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?
29.01.2020
642
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
23.01.2020
1177
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?
29.01.2020
1531
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?
29.01.2020
1152
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
29.01.2020
800
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?
28.10.2019
1242
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
28.01.2020
845
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
24.01.2020
935
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.
10.01.2020
1242
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.
18.01.2020
991
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
09.10.2018
1585
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
28.01.2020
1020
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?
27.01.2020
845
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?
23.01.2020
989
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?
18.09.2019
1053
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)); } } }
14.04.2019
1140
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.
27.01.2020
985
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<>();
27.01.2020
900
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.
17.12.2018
2785
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.
26.01.2020
811
views
4
comments
0
Show more
1
...
229
230
231
232
233
...
366
Please enable JavaScript to continue using this application.