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
Jay
Level 17
Washington
Question about the task
Make a family
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Help me understand
I'm confused about the purpose of the array list being used in the class. Previously, we have initialized objects without using an array list as a field. So I'm wondering what's the benefit of doing it this way. Furthermore, I've seen that some people have created 3 array lists to account for each c
7/27/19
1248
views
2
comments
0
Denis
Level 22
Kharkiv
Question about the task
Like cats and dogs
Java Core
,
Level 1
,
Lesson 8
Under discussion
How i can do this exercise?
Help pls
6/22/19
1394
views
3
comments
0
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?
11/18/19
1428
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?
8/26/19
1158
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?
11/18/19
1467
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.
11/12/19
1277
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
11/18/19
968
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
1/25/19
1675
views
2
comments
1
towelie8
Level 1
Darmstadt
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
Last condition?!
meow.
11/18/19
940
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?
11/17/19
892
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..
7/21/19
1408
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 = "";
11/17/19
1415
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."
11/17/19
860
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
9/17/18
1775
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
11/7/19
987
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
11/17/19
1160
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");
11/17/19
1204
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!!
7/5/19
1397
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
8/5/19
1346
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
8/2/19
1203
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
6/15/19
1507
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?
11/16/19
1078
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?
11/13/19
1380
views
3
comments
0
Kikyo
Level 17
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.
11/16/19
1479
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/19
1274
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 &
11/3/18
3990
views
7
comments
0
sabrine RA
Level 12
Paris
Under discussion
Connecting IntelliJ IDEA ERROR Plugins
11/14/19
1211
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
11/16/19
1988
views
5
comments
0
唐浩文
Level 2
San Jose
Under discussion
please use Java programming language to answer these questions
11/16/19
1076
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
11/16/19
1213
views
1
comment
0
Show more
1
...
257
258
259
260
261
...
374
Please enable JavaScript to continue using this application.