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
hu-zza
Level 22
Budapest
Question about the task
Pharmacy
Java Core
,
Level 7
,
Lesson 10
Archived
Do not dig too deep...
You should call buy() in the Pharmacy class and sell() in the Person class. It's quite obvious, if you read only the methods' names. However, if you read this two (or see the output), the other pairing is more logical.
04.07.2020
811
views
6
comments
1
Onur Bal
Level 27
Istanbul
Question about the task
Let's count
Java Core
,
Level 7
,
Lesson 10
Under discussion
Can someone explain the logic of this one
I was able to solve this one correctly but I can't say I understood what I did too well. So each thread is modifying the array, adding plus 1 to the current index, which initially starts out as 0 for each element. Why, then, after 5 threads going over it, is the value equal to 1? Shouldn't each el
21.09.2020
571
views
4
comments
0
Stephen Meyer
Level 16
Fort Collins
Question about the task
Duplicating words
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
Accepting input forever?
My code just seems to accept input strings forever, and I cannot for the life of me figure out why. Can someone help?
22.09.2020
338
views
1
comment
0
Oliver Heintz
Level 18
Mustang
Question about the task
Number of letters
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
Last Requirement not met
Like so many other people, it looks just like it's supposed to. I even tested it with numbers and I still get what appears to be the correct output. I haven't the slightest idea what the hold up is, which sucks as I thought I had this on the first try, and now I've tried it like 4 times.
21.08.2020
537
views
11
comments
0
Chris
Level 19
Newark
Question about the task
Expressing ourselves more concisely
Java Syntax
,
Level 7
,
Lesson 6
Archived
Im unsure of how to finish this.
I have spent over a day on this particular problem and I can't find out what I should do. This is the closest I have gotten to a workable solution. Can someone please help me?
21.09.2020
420
views
2
comments
0
Marvin Ellis
Level 7
Peoria
Question about the task
Man and woman
Java Syntax
,
Level 5
,
Lesson 12
Resolved
Constructor illegal start of the expression? I am not sure what it is telling me here
Its stating that the constructor Man and Woman have an illegal start of the expression. But I am not sure why.
22.09.2020
343
views
1
comment
0
Marvin Ellis
Level 7
Peoria
Question about the task
Man and woman
Java Syntax
,
Level 5
,
Lesson 12
Resolved
Why would it expect a interface?
What is an interface or a enum? I am not there yet. class, interface, or enum expected. file com/codegym/task/task05/task0526/Solution.java, line 43, position 1083
14.07.2020
386
views
5
comments
0
Marvin Ellis
Level 7
Peoria
Question about the task
Creating cats
Java Syntax
,
Level 5
,
Lesson 9
Resolved
I don't understand whats wrong
I thought I was getting the hang of this
14.07.2020
411
views
3
comments
2
Cam
Level 15
Bogota
Question about the task
Shortest or longest
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
I don't understand what is failing.
Hey guys. I'm a little bit confused. In my mind, this program should be working. But it is not passing the last verification. Can someone please tell me what I am doing wrong?? public static String compare (ArrayList original) { ArrayList sorted = sord(original); int min = 0, max
21.09.2020
474
views
6
comments
0
John Raets
Level 3
Not in list
Question about the task
Task with percentages
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
What's wrong with this code?
public class Solution { public static double addTenPercent(int i) { double c = 100 * 1.1; return c; } public static void main(String[] args) { System.out.println(addTenPercent(9)); } }
19.09.2020
331
views
2
comments
0
Chris
Level 19
Newark
Question about the task
Remove and insert
Java Syntax
,
Level 7
,
Lesson 6
Resolved
Please help.
Can someone help me finish this?
21.09.2020
341
views
2
comments
0
Carli Eubanks
Level 15
San Diego
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
I can't find my mistake
I've managed to satisfy all but the last two requirements. I've tried multiple variations and read over my work to try to find my mistake, but whatever it is it's managed to elude me. Any advice would be greatly appreciated.
21.09.2020
373
views
2
comments
0
Youngsan
Level 41
Seoul
Question about the task
Hippodrome (part 10)
Java Multithreading
,
Level 1
,
Lesson 16
Resolved
Pls help
"Oh, and display 10 empty lines after the loop (using System.out.println()) to make it more beautiful.". Seems to be simple, but I seems to misunderstand the problem. Please help me.
22.09.2020
417
views
5
comments
0
Mariam
Level 9
Columbus
Question about the task
Going national
Java Syntax
,
Level 8
,
Lesson 11
Resolved
The program DOES change the first letter of each word to uppercase but compiler says it does NOT. Please help
The program DOES change the first letter of each word to uppercase but compiler says it does NOT. Please help
16.09.2020
357
views
4
comments
0
Lawson
Level 29
Lagos
Question about the task
Snake (part 12)
Java Multithreading
,
Level 2
,
Lesson 18
Resolved
Help
this isn't supposed to be hard na
17.09.2020
393
views
0
comments
0
Jac
Level 7
Birmingham
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Resolved
I'm getting an output of 'NaN'. Can someone clarify?
package com.codegym.task.task05.task0507; /* Arithmetic mean */ import java.io.BufferedReader; import java.io.InputStreamReader; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.i
22.09.2020
319
views
1
comment
0
Satya Vath
Level 31
Vijayawada
Question about the task
Space Invaders (Part 9/34)
Games
,
Level 0
,
Lesson 6
Resolved
Where is the mistake
Help
10.09.2019
1088
views
9
comments
0
Manish Sinha
Level 26
london
Question about the task
Find a substring
Java Multithreading
,
Level 2
,
Lesson 5
Resolved
not sure what is the issue . very eager to know the issue since output is as per the expectation i believe. there must be something minor i guess. pls. help
not sure what is the issue . very eager to know the issue since output is as per the expectation i believe. there must be something minor i guess. pls. help
21.09.2020
364
views
3
comments
1
143_Ritik Awachat
Level 4
Question about the task
Escaping characters
Java Syntax
,
Level 3
,
Lesson 6
Resolved
help me guys
what is the error here can you guys help me
21.09.2020
444
views
2
comments
0
David
Level 26
Bucharest
Question about the task
Find a substring
Java Multithreading
,
Level 2
,
Lesson 5
Resolved
Need help!! I have the required output
I really don't know what to do anymore
04.08.2020
469
views
2
comments
2
Davedabull
Level 22
New York City
Question about the task
CRUD 2
Java Core
,
Level 7
,
Lesson 10
Resolved
Can someone take a look for me please?
Cannot verify 3-6, i think i did it right tho?
21.09.2020
298
views
3
comments
0
Bohdan
Level 8
Milan
Question about the task
Sorting three numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
What is the problem?
it does all that they requested.
21.09.2020
421
views
1
comment
0
sourav bamotra
Level 20
jammu
Question about the task
Static modifiers: part 2
Java Core
,
Level 5
,
Lesson 9
Under discussion
task completed. first wrote it on IDE. But why my Ide throws compile error if i directly close the resources in finally block.
try{ A = Integer.parseInt(reader.readLine()); B = Integer.parseInt(reader.readLine()); } catch(IOException e){ e.getStackTrace(); } finally{ try{ /*why try catch in final block as well?*/ reader.close(); } catch(IOException e){ e.printStackTrace(); } }
20.09.2020
302
views
2
comments
0
Timothy Strong
Level 4
San Diego
Question about the task
This age doesn't work for me…
Java Syntax
,
Level 4
,
Lesson 1
Under discussion
Can someone help me with this code. Is the person.adjustAge(person.age) method in the Class Solution. Calling the public void adjustAge(int age) in class Person? How do these two methods tie together?
package com.codegym.task.task04.task0401; /* This age doesn't work for me… */ public class Solution { public static void main(String[] args) { Person person = new Person(); System.out.println("Age is: " + person.age); person.adjustAge(person.age); }
30.10.2019
2167
views
5
comments
0
Denis
Level 22
Kharkiv
Question about the task
Incorrect lines
Java Core
,
Level 3
,
Lesson 11
Under discussion
HEEEEEEEEELP
I need your help, team
24.06.2019
1171
views
7
comments
1
Koushik Kintali
Level 9
Rayagada
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 7
Resolved
Unable to identify the error
Unable to identify the error
09.10.2018
2015
views
4
comments
0
Tom ford
Level 15
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Resolved
Code works but task not verified
My code does exactly as requested. Any suggestions?
20.09.2020
436
views
2
comments
0
John Raets
Level 3
Not in list
Question about the task
As simple as 2+2
Java Syntax
,
Level 1
,
Lesson 8
Under discussion
My coding is correct but if no value is assigned to the variables a & b how do you know it's 2 + 2?
public class Solution { public static void main(String[] args) { //write your code here } public static void sum(int a, int b) { int c = a + b; System.out.print(c); } }
20.09.2020
480
views
2
comments
0
Henrique
Level 41
São Paulo
Question about the task
Read online about the median of a sample
Java Multithreading
,
Level 6
,
Lesson 2
Under discussion
Code throws exception, don't know how to solve
This code is probably completely wrong, but that's what I was able to do. Message: "Be sure that the sort(Integer[] array) method correctly sorts the data in an array with an even number of elements." When testing, this is the message of the Exception: Exception in thread "main" java.lang.ClassCas
06.08.2020
429
views
1
comment
0
Anthony Chalk
Level 30
London
Question about the task
Snake (part 12)
Java Multithreading
,
Level 2
,
Lesson 18
Resolved
No idea why this isn't validating
Only other question on this task seems to have the same problem with no answer. Please can someone help
16.09.2020
430
views
9
comments
0
Show more
1
...
127
128
129
130
131
...
366
Please enable JavaScript to continue using this application.