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
All quests
All levels
Any status
Questions about tasks
Hot
Davedabull
Level 22
New York City
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
But I am already showing the longest string?
Can someone help me find out what I did wrong here?
18.11.2019
1298
views
9
comments
0
Alexander Shtunder
Level 41
San Francisco
Question about the task
Prices 2
Java Core
,
Level 8
,
Lesson 11
Resolved
Hm, do not pass by, but help...
My code works flawlessly. I checked it on my computer 100500+ times. But the test does not want to pass ... strange. Who will say why?
26.08.2019
1057
views
5
comments
0
Anthony Chalk
Level 30
London
Question about the task
Exception when working with Map collections
Java Syntax
,
Level 9
,
Lesson 6
Resolved
Please help
The program works with the output: "NullPointerException null", but the third requirement is still not validating. Is there a specific type of NullPointerException for Maps?
18.11.2019
1336
views
7
comments
0
Deborah Wenrich
Level 7
Pembroke Pines
Question about the task
Financial expectations
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
Can someone check my code?
I'm not sure what the problem is. The compiler doesn't seem to like the BufferedReader code.
12.11.2019
1181
views
2
comments
0
Carlos Cortázar
Level 17
Madrid
Under discussion
please, why this code doesn't compile?
package com.company; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.ArrayList; public class Main { public static void main(String[] args) throws IOException { MyClass myObject = new MyClass(); OutputStream outStream
18.11.2019
852
views
2
comments
0
Lukasz
Level 14
Wrocław
Question about the task
Ten cats
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Where is problem?
I pass the data from Map to Set
25.01.2019
1576
views
2
comments
1
towelie8
Level 16
Darmstadt
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
Last condition?!
meow.
18.11.2019
844
views
1
comment
0
chinchillo
Level 6
Question about the task
Number of days in the year
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Guess it's right but still not sure.
Any idea whats the problem here?
17.11.2019
782
views
2
comments
0
nikhil singla
Level 9
Chandigarh
Question about the task
Static cats
Java Syntax
,
Level 6
,
Lesson 11
Archived
I am not able to figure out what to print here in printCatS()..? Please help me..
public static void printCats() { System.out.println(cats); } // What's wrong with this? Please watch my solution..
21.07.2019
1293
views
2
comments
2
Davedabull
Level 22
New York City
Question about the task
StringHelper class
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
So I guess we cannot use the str.repeat(times) method
public class practice3_string_multiplication { public static String multiply(String s) { String result = ""; //write your code here result = s.repeat(5); return result; } public static String multiply(String s, int count) { String result = "";
17.11.2019
1303
views
4
comments
0
Nico
Level 17
Tyrol
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
I think, the output is correct, but i failed the last task, and i dont know why. Thanks for your help in advance! :)
Failed: "The displayClosestToTen method should display a number on the screen in accordance with the task conditions."
17.11.2019
774
views
2
comments
0
Neha Anjum
Level 6
Hyderabad
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
.....?????
import java.util.Scanner; import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.ne
17.09.2018
1630
views
4
comments
0
Tian Pro
Level 23
Cape Town
Question about the task
Adding
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
Why doesnt it work if the output shows it works?
Im so confused :'D
07.11.2019
890
views
2
comments
0
Maria
Level 7
Berlin
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Help please??
What is wrong in my solution?? Thank you :D
17.11.2019
1061
views
2
comments
0
Manish Sinha
Level 1
london
Question about the task
HashMap of 10 pairs
Java Syntax
,
Level 8
,
Lesson 3
Resolved
my code throws error dont know what is the issue. Intellij shows the correct output.
package com.codegym.task.task08.task0802; /* HashMap of 10 pairs */ import java.util.HashMap; import java.util.Map; public class Solution { public static void main(String[] args) throws Exception { HashMap hasmap = new HashMap<>(); hasmap.put("watermelon","melon");
17.11.2019
1088
views
1
comment
0
Ankita Patra
Level 5
Bhubaneshwar
Question about the task
Initializing cats
Java Syntax
,
Level 5
,
Lesson 7
Under discussion
Everything looks fine.Still don't know what's wrong here!!
05.07.2019
1273
views
3
comments
0
Stanislav Mayer
Level 15
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Resolved
Separate file for each class
In one of the previous tasks, there was the following info provided: For each class, a separate file is created. The name of the file matches the name of the class. However, in this particular exercise, I can see three different classes: Solution, Man and Woman within one file. Can you please ex
05.08.2019
1248
views
2
comments
0
jawad
Level 10
Lahore
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
what wrong in my code
whats worng in my code
02.08.2019
1071
views
2
comments
0
Pooja Gujjer
Level 2
Mumbai
Question about the task
Family relations
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
What is wrong with my code
I cant understand?? Plzz help
15.06.2019
1387
views
7
comments
0
Ilia Kalugin
Level 25
Novara
Question about the task
You can't have too much of a good thing
Java Syntax
,
Level 4
,
Lesson 10
Under discussion
I don't understand. Where here an error?
what's wrong with it?
16.11.2019
989
views
2
comments
0
Wei Cui
Level 39
Newark
Question about the task
What's in the folder?
Java Collections
,
Level 1
,
Lesson 4
Resolved
help to solve problem
I test the code and meet the goal. display the directory number, file number and size. where wrong?
13.11.2019
1267
views
3
comments
0
null
Level 13
Question about the task
Correct inheritance chain: part 5
Java Core
,
Level 1
,
Lesson 11
Resolved
The title may not appear completely on the page
It doesn't specify who inherits who. but in the Android app,it has hits.
16.11.2019
1386
views
1
comment
0
Marcin
Level 9
Birmingham
Under discussion
Exception Quest.QUEST_JAVA_SYNTAX_PL
Hi, I have a problem with using intelij plugin. Here is the exception: ava.lang.IllegalArgumentException: No enum constant com.homework.plugin.dialog.TheNewTaskChooserDialog.Quest.QUEST_JAVA_SYNTAX_PL at java.base/java.lang.Enum.valueOf(Enum.java:240) Could you please, help me with this. Regards,
11.11.2019
1160
views
4
comments
0
Patson
Level 4
Kampala
Question about the task
Minimum of four numbers
Java Syntax
,
Level 2
,
Lesson 8
Resolved
PLEASE.. how do I use the second min(int a, int b) in the first min(int a, int b, int c, int d)
package com.codegym.task.task02.task0217; /* Minimum of four numbers */ public class Solution { public static int min(int a, int b, int c, int d) { int m; if (a <= b && a <= c && a <= d) m = a; else if (b <= a &
03.11.2018
3830
views
7
comments
0
sabrine RA
Level 12
Paris
Under discussion
Connecting IntelliJ IDEA ERROR Plugins
14.11.2019
1112
views
4
comments
0
Krunoslav Krainović
Level 16
Question about the task
Let's talk music
Java Core
,
Level 6
,
Lesson 3
Resolved
Why does this not work with System.nanoTime();
long startTime = System.nanoTime(); startPlaying(); sleepNSeconds(1); stopPlaying(); long endTime = System.nanoTime(); long totalTime = endTime - startTime; System.out.println(totalTime / 1000000); it does not want
16.11.2019
1825
views
5
comments
0
唐浩文
Level 2
San Jose
Under discussion
please use Java programming language to answer these questions
16.11.2019
982
views
1
comment
0
Miha Čelešnik
Level 9
Ilirska Bistrica
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Why verification fails?
Hello I would like to report a bug in task0708. It seems that verification is broken. After program reads from input, it takes first string from list as longest and stores it in list of max strings, enters loop at second position. If next string is longer, max list resets and next string gets stor
16.11.2019
1045
views
1
comment
0
hidden #10515202
Level 20
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
solution
in print method: add this 4 times, it works System.out.println(s); System.out.println(s); System.out.println(s); System.out.println(s);
10.11.2019
1251
views
1
comment
0
Satya Vath
Level 31
Vijayawada
Question about the task
AmigoOutputStream
Java Core
,
Level 8
,
Lesson 8
Under discussion
Please Help
Where is the Problem
19.04.2019
1591
views
5
comments
2
Show more
1
...
255
256
257
258
259
...
372
Please enable JavaScript to continue using this application.