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
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
1576
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
1266
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
919
views
2
comments
0
Pedzi
Level 1
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
1053
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
1082
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
1436
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
1348
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
1117
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
1021
views
2
comments
0
Ferdz
Level 2
Makati
Question about the task
Our first converter!
Java Syntax
,
Level 2
,
Lesson 2
Resolved
What went wrong
public static double convertCelsiusToFahrenheit(int celsius) { double Fahrenheit = 9/5 * celsius + 32; //write your code here
1/2/19
2627
views
6
comments
0
Joseph Haynes
Level 2
United States of America
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
The code works, but fails the tasks... Why?
The code works, but fails the tasks... Why?
1/26/20
1552
views
1
comment
0
Joseph Haynes
Level 2
United States of America
Question about the task
Checking the order
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Why does this not work? Fails last condition...
package com.codegym.task.task07.task0718; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; public class Solution { public static void main(String[] args) throws IOException { Buffered
1/25/20
1028
views
1
comment
0
Jonah Poulson
Level 5
New Haven
Question about the task
Describing numbers
Java Syntax
,
Level 4
,
Lesson 7
Archived
Last task will not verify
Some will help will be greatly appreciated, Thank you
1/25/20
956
views
2
comments
0
Aleksander
Level 18
Katowice
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
help me find a solution to this task
the program compiles correctly
1/25/20
1016
views
1
comment
0
Neil
Level 5
Hyderabad
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
what is the error?
1/25/20
1047
views
1
comment
0
Adam Maichrzik
Level 22
Katowice
Question about the task
In decreasing order
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
Can you help me to pass the conditions? Because program works correctly.
Hi. I know that the loop is only for 5 times and this is because when I am trying the program it's just waste of time to try in every time with 20 examples. And my program work correctly but I have to delete the lines of code: for (int x : array) { System.out.println(x); } So
1/25/20
1375
views
7
comments
0
Mark Shuttleworth
Level 5
Lanercost
Question about the task
A name is a name
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
Typo on validation which I can't spot
Can anyone help me spot the typo?
1/25/20
1219
views
1
comment
0
Kamalakanth G R
Level 5
Tiruchchirappalli
Question about the task
Escaping characters
Java Syntax
,
Level 3
,
Lesson 6
Resolved
Help me figure out the error. The second line shows me a error
System.out.println("This is a Windows path: \"C:\\Program Files\\Java\\jdk1.8.0_172\\bin\" "); System.out.println("This is a Java string: \\\"C:\\\\Program Files\\\\Java\\\\jdk1.8.0._172\\\\bin\\\" "
11/23/19
1445
views
3
comments
0
Ethan
Level 7
Hannover
Question about the task
Jen or Jen?
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
what is wrong here?
package com.codegym.task.task04.task0421; /* Jen or Jen? */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
11/26/19
1429
views
2
comments
0
Andrei
Level 26
Liverpool
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Resolved
Could You help me, Guys. I give up.
package com.codegym.task.task05.task0507; /* Arithmetic mean
1/24/20
1356
views
4
comments
0
Stefan Maric
Level 22
Frankfurt
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Wrong spelling message?
Hi guys, After running the code I am getting message "Carefully check the displayed text. It looks like you made a typo or forgot to add 1000.". Can someone help me to solve this, because I am getting correct result.
1/20/20
1381
views
3
comments
0
Ailin
Level 3
Saint Louis
Question about the task
Minesweeper (Part 7/16)
Games
,
Level 0
,
Lesson 0
Resolved
Why is it not working?
I'm declaring the isOpen boolean in the public MinesweeperGame class and it's not working at line 80! And if you find anything else that is wrong or missing then pls help!
1/24/20
1082
views
0
comments
1
S V Aditya
Level 4
Delhi
Question about the task
Snake (Part 1/20)
Games
,
Level 0
,
Lesson 1
Resolved
Why isn't my import working?
I get this error: com/codegym/games/snake/part01/SnakeGame.java:2: error: package com.codegym.engines.cell does not exist import com.codegym.engines.cell.*; Is this path wrong?
10/31/19
1927
views
3
comments
0
Džemal
Level 11
Tuzla
Question about the task
Drawing lines
Java Syntax
,
Level 4
,
Lesson 13
Under discussion
A program should display a vertical line of 10 eights
public class Solution { public static void main(String[] args) throws Exception { for(int i = 1; i <= 10; i++) { for(int j = 1; j <= 10; j++) { System.out.print("8"); } System.out.println(); } } }
6/16/19
3475
views
2
comments
0
Jeremy Hornick
Level 16
Question about the task
Snake (Part 17/20)
Games
,
Level 0
,
Lesson 1
Resolved
Verification is failing and I don't think it should
I'm failing the task with this error: The onKeyPress(Key) method must call the createGame() method if the passed argument is Key.SPACE and the game is stopped (isGameStopped == true). Be sure that the onKeyPress(Key) method calls the createGame() method if the SPACE bar was pressed and isGameStoppe
8/9/19
1416
views
1
comment
1
Jacek
Level 4
Warsaw
Resolved
Results are correct but exercise is not passed
Hi, I need a little help with this. My program works correctly, but I can't pass this exercise. Do you know where is "mistake"? package pl.codegym.task.task07.task0703; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; class Exercice { public static voi
1/22/20
1509
views
3
comments
0
Adam Maichrzik
Level 22
Katowice
Question about the task
Expressing ourselves more concisely
Java Syntax
,
Level 7
,
Lesson 6
Archived
I don't get it. When I run the program everything is working.
Hello. As I said in the title. Imho everything should work, when I am testing it, the program show the shortest string. Can someone look at my code and try to help me understanding the problem?
1/23/20
1607
views
3
comments
0
MaGaby2280
Level 41
Guatemala City
Question about the task
One for all, all for one
Java Core
,
Level 6
,
Lesson 10
Resolved
Help with understanding why the threads won´t stop!!!
A little help needed!!! I have been trying to figure this out for hours... could someone help me figure out why the outInterrupt(); method won´t stop the threads? Thank you!!!
1/22/20
1252
views
5
comments
0
Pedzi
Level 1
Cape Town
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Help help help
My code seems to be giving the required screen output and satisfying all the conditions required but somehow the test fails....please help...what am I missing
1/9/20
1378
views
3
comments
0
Bartuswislak
Level 16
Cracow
Under discussion
Bug in polish version - task date 09 lvl 11 lesson
package pl.codegym.task.task09.task0922; import java.io.BufferedReader; import java.io.InputStreamReader; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; /* Jaka dzisiaj jest data? */ public class Solution { public static void main(String[] args) throws Exc
1/22/20
1099
views
1
comment
0
Show more
1
...
238
239
240
241
242
...
374
Please enable JavaScript to continue using this application.