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
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
1144
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
948
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
1280
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
909
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
1164
views
3
comments
0
null
Level 13
Jin'e
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
1256
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
1027
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
3708
views
7
comments
0
sabrine RA
Level 12
Paris
Under discussion
Connecting IntelliJ IDEA ERROR Plugins
14.11.2019
1028
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
1581
views
5
comments
0
唐浩文
Level 2
San Jose
Under discussion
please use Java programming language to answer these questions
16.11.2019
902
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
886
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
1175
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
1456
views
5
comments
2
Kent Hervey
Level 19
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Why does my verification need an upper bound change on condition?
See my code below Note: originalSize--; I put this in because when I remove an item I need to stop sooner than otherwise or else I will be out of bound. It works, but then I noticed others' are working without it. Why do I need it and other don't? int originalSize = list.size();
16.11.2019
770
views
1
comment
0
Mark Fernandez
Level 17
Mumbai
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
unable to get output and can we do it without using 2nd arraylist
package com.codegym.task.task07.task0716; import java.util.ArrayList; /* R or L */ public class Solution { public static void main(String[] args) throws Exception { ArrayList list = new ArrayList(); list.add("rose"); // 0 list.add("love"); // 1 list.add("lyre"
04.03.2019
1686
views
12
comments
0
Dusernajder
Level 20
Budapest
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
Can someone tell me why? SPOILER: Answer in question?!
So, I already made the task, but there was a little part of it where I don't know was going on. On the first picture, where I declare the newList like this: The for loop was decrasing the lists size, when a word that contained the letter 'r' was in the scope. So when "rose" came, the loop removed i
30.05.2019
1497
views
8
comments
0
Anita Pal
Level 14
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
I am not able to satisfy second condition
package com.codegym.task.task07.task0716; import java.util.ArrayList; /* R or L */ public class Solution { public static void main(String[] args) throws Exception { ArrayList list = new ArrayList(); list.add("rose"); // 0 list.add("love"); // 1 list.add("lyre
22.09.2019
1137
views
3
comments
0
Bill Hine
Level 9
Sarasota
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
please help has been many hours this works with test data but failes task 3 & 4 thank you
package com.codegym.task.task07.task0708; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /* Longest string */ public class Solution { private static List strings = new ArrayList(); public static void main(String[] ar
15.11.2019
1224
views
1
comment
0
KnGod
Level 1
Havana
Question about the task
Minesweeper (Part 2/16)
Games
,
Level 0
,
Lesson 0
Under discussion
what should i put to acomplish the fourth condition?
i tried game.setScreenSize(SIDE, SIDE); //but it said i cant call a non static method from a static context
15.11.2019
1229
views
1
comment
0
John
Level 7
Houston
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Resolved
Solution
public class Solution { public static void main(String[] args) { hackSalary(7000); } public static void hackSalary(int a) { int salary= a; int newSalary = salary += 1000; System.out.println("Your salary is: " + newSalary + " dollars per month."); } }
03.05.2019
1401
views
2
comments
1
Niladri pradhan
Level 33
Mumbai
Question about the task
GCD
Java Core
,
Level 4
,
Lesson 8
Under discussion
infinite loop
The code run successfully. i even got an output but at the time of verify it showing infinity loops.please help
17.08.2019
895
views
3
comments
0
Niladri pradhan
Level 33
Mumbai
Question about the task
Finding data inside a file
Java Core
,
Level 8
,
Lesson 11
Under discussion
infinity loop problem
It run as expected in intelij. please help
27.08.2019
948
views
1
comment
0
Niladri pradhan
Level 33
Mumbai
Question about the task
Prices
Java Core
,
Level 8
,
Lesson 11
Under discussion
please help
verification failed
30.08.2019
753
views
1
comment
0
Lex Medeiros
Level 18
San Jose
Question about the task
Finding data inside a file
Java Core
,
Level 8
,
Lesson 11
Under discussion
Could someone explain to me the following?
I understand what the task requires, however, I am not clear in the steps I should follow to convert the byte data to find the id and display the required information - as you can see from my code. For example, int data = inputStream.read(); is going to give me bytes. It does not give me lines, ch
01.09.2019
733
views
1
comment
0
Rupa Joshi
Level 29
Tokyo
Question about the task
Chat (part 16)
Java Multithreading
,
Level 6
,
Lesson 15
Under discussion
please help!
not been able to validate with the tow throw IOException conditions for both the methods.
15.11.2019
916
views
1
comment
0
Korab Cenaj
Level 2
Wroclaw
Under discussion
What are the costs to get the full course?
Is it free or do i need to pay after some levels?
17.12.2018
1012
views
1
comment
0
Picvajzmen
Level 20
Belgrade
Question about the task
Building a file
Java Core
,
Level 8
,
Lesson 11
Under discussion
Not good obviously, but what do you guys think about my solution
I sick and tired from this one, I know that it is no good, but wanted to know what do you guys think about it, and what is wrong, I cant look at it anymore, and I have to move on to the next one, because i am stuck at this problem for far too long..
12.11.2019
864
views
5
comments
0
Jimmy Phan
Level 7
Atlanta
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Surprisingly it works, but not how it should be...right?
Surprisingly it works, but not how it should be...right? it ran and display the line of the strings on a new line lol
14.11.2019
740
views
1
comment
0
jorge ives murillo paredes
Level 40
New York City
Question about the task
Date formatting
Java Multithreading
,
Level 2
,
Lesson 7
Under discussion
whats wrong?
what is wrong
15.11.2019
1005
views
1
comment
0
Show more
1
...
252
253
254
255
256
...
369
Please enable JavaScript to continue using this application.