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
Kent Hervey
Level 19
Question about the task
Somehow average
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
Correct, but too many lines
I found a solution, but it seems to be too long...needs refactoring? After I checked for duplicates, I had 7 more checks to catch them all. Seems like three should be enough?
15.10.2019
1008
views
1
comment
0
Patrick freeman
Level 14
Buffalo
Question about the task
Maximum of four numbers
Java Syntax
,
Level 4
,
Lesson 6
Resolved
Is there an easier way for this?
So, this was my solution for this problem, and I feel I may have over complicated this a little bit. My output from entering 1,2,9,9 comes out as 1, which is incorrect. What I tried to do was break down all the logic required to both come up with a maximum number between the 4, and only display 1 in
28.09.2019
1147
views
4
comments
0
Soham
Level 5
Kitchener
Question about the task
Seasons on Terra
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
what is wrong here?
getting uneven output, autumn winter spring autumn something like that, if someone can please explain
15.10.2019
913
views
4
comments
0
Anthony Chalk
Level 30
London
Question about the task
Console-based piggy bank
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
I don't understand
I'm really not sure where I've gone wrong, please help.
15.10.2019
1037
views
2
comments
0
Aswini
Level 5
Irving
Question about the task
Repetition is the mother of all learning
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Cant use system.out.println method
Hi, Im trying to reun the above task in IntelliJ idea and I cant use System.out.println in print3 method in intelli j idea, Im getting error as follows My program: package com.codegym.task.task02.task0218; /* Repetition is the mother of all learning */ public class Solution { public static
14.12.2018
3141
views
2
comments
0
ывапролд
Level 19
Moscow
Question about the task
Symbol frequency
Java Core
,
Level 8
,
Lesson 11
Under discussion
What should be fixet?
I don't understand, why it thinks i do not create the stream, do not sort bytes and even do not close the stream.
15.10.2019
1248
views
3
comments
0
sachin thakur
Level 8
Addanki
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
Need Help
Please see what is wrong in my code. Thank you
15.10.2019
1028
views
3
comments
0
Dedcom
Level 19
Lahore
Question about the task
Family census
Java Syntax
,
Level 7
,
Lesson 12
Resolved
help
whats wrong in this code
17.11.2018
2348
views
4
comments
0
Mishra
Level 3
Lansing
Question about the task
Our first converter!
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
My answer is corerct, but compiler keeps giving the error
Compiler Error Message: "The convertCelsiusToFahrenheit method must correctly convert degrees Celsius to degrees Fahrenheit and return the result."
15.10.2019
945
views
2
comments
0
Soham
Level 5
Kitchener
Question about the task
Seasons on Terra
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
what is wrong with this code.
can someone please explain in simple language since i am not a pro in java, why both if else and switch statements are failing the last condition of the code.
15.10.2019
2093
views
1
comment
0
Alexandru Ovcinicov
Level 15
London
Question about the task
GCD
Java Core
,
Level 4
,
Lesson 8
Resolved
Help Please
Last validation fails . The results are fine.
12.10.2019
1119
views
8
comments
2
Dominik
Level 1
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Resolved
requirements are not right
I don't know why it doesn't work. I checked it few times, didn't find any error and results are right, but still requirements are not fulfill
10.10.2019
1447
views
12
comments
0
Mike McKenna
Level 25
Wilmington
Question about the task
Static cats
Java Syntax
,
Level 6
,
Lesson 11
Archived
compile error ?
i am dealing with a compile error . from line 25 of task 0614. i do not understand since the error is from code provided to complete task . file com/codegym/task/task06/task0614/ Cat.java/line 25/position 353. illegal start of expression. public static void printCats() ^ Thanks
14.10.2019
1085
views
1
comment
0
Michael Connolly
Level 5
Castlereagh
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Getting error?
Don't understand why im getting an error?
14.10.2019
919
views
1
comment
0
John
Level 27
Washington DC
Question about the task
Chicken factory
Java Core
,
Level 4
,
Lesson 6
Under discussion
Keep getting error message that can't reference non-static method in static context
Keep getting error message that can't reference non-static method in static context
14.10.2019
1002
views
1
comment
0
Sourav Gunner
Level 19
Birtamode
Question about the task
Most frequent bytes
Java Core
,
Level 8
,
Lesson 3
Under discussion
What am i doing wrong here????
I don't seem to correct the problem here. 3rd acondition is not satisfied
13.10.2019
914
views
3
comments
0
WILLIAM WILSON
Level 3
Question about the task
Print three times
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
How can I call the method print3() twice and get three output lines?
I called print3("word") once and got three outputs"word word word", but I need to call print3("word") twice and get three output words ("word word word").
20.09.2019
1805
views
2
comments
0
SefoBe
Level 16
Paris
Question about the task
Beer
Java Core
,
Level 3
,
Lesson 2
Resolved
Can you tell me what's wrong with that ?
Not sure it's clear for me
13.10.2019
1268
views
2
comments
1
Rashaad A Crews
Level 5
Long Beach
Question about the task
Product of 10 numbers
Java Syntax
,
Level 3
,
Lesson 4
Resolved
Cant figure this out
Hi everyone, I know there is a simpler way to execute the requirement, but I wanted to take the "fancy" route to help me grasp calling variables from other methods. Any help is appreciated.
12.10.2019
1305
views
6
comments
0
shizisgood
Level 9
Yokohama
Question about the task
Shuffled just in time
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
Why my code cannot pass the verification
My code gives the correct output of the sample input. However, it cannot pass the verification. Can anyone tell me the reason?
14.10.2019
1053
views
1
comment
0
KARAN BHOITE
Level 15
Nagpur
Question about the task
In decreasing order
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
?????
m not getting out put took me 2 days
03.08.2019
1295
views
2
comments
0
hidden #10536831
Level 10
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
Could you please help me?
What's wrong?
13.10.2019
1166
views
3
comments
0
Mike
Level 9
Lublin
Question about the task
Snake (Part 2/20)
Games
,
Level 0
,
Lesson 1
Under discussion
what is wrong
I have received 3 mistakes and I can't figure out what is wrong: ---> The drawScene() method must be called in the createGame() method. ---> The createGame() method must be called in the initialize() method. ---> n the drawScene() method, call the setCellColor(int, int, Color) method on eac
12.10.2019
1901
views
3
comments
0
Ronaldo M
Level 2
Chennai
Question about the task
I think being a programmer is cool
Java Syntax
,
Level 0
,
Lesson 3
Under discussion
Im not able to complete my first code
system.out.print(" I think being a programmer is cool")
22.08.2018
1363
views
2
comments
0
Mariam
Level 0
Question about the task
I think being a programmer is cool
Java Syntax
,
Level 0
,
Lesson 3
Under discussion
I can't understand where i'm wrong!
Public class home { Public static void main (string [ ] args) { System.out.print ("I think "); System.out.print ("being "); System.out.print ("a programmer "); System.out.print ("is cool"); } }
08.03.2019
1162
views
6
comments
0
Online Learner
Level 6
Question about the task
A name is a name
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
i can't understand this error
i think this is a right program but still error was showing here
06.07.2019
902
views
5
comments
0
TONDO YOYA Ariel Christopher
Level 16
Rennes
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Archived
Please, I don't see where is the problem...?
package com.codegym.task.task07.task0708; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; import java.util.List; /* Longest string */ public class Solution { private static List strings = new ArrayList<>();
12.10.2019
825
views
1
comment
0
Laurence Chadwell
Level 4
San Antonio
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
Oook.....whats wrong with it?
I'm having a hard time with one. I thought I had everything I needed, but apparently I don't.
12.10.2019
954
views
2
comments
0
Mack
Level 20
Osiedle-Nowiny
Question about the task
Creating threads recursively
Java Core
,
Level 6
,
Lesson 13
Resolved
Where is mistake?
help, please
28.11.2018
1729
views
3
comments
0
Robert Constantinescu
Level 25
Bucharest
Question about the task
18+
Java Syntax
,
Level 4
,
Lesson 6
Resolved
Right, but wrong in the same time
Can someone help me with what i am doing wrong here? It rouns ok in intellij, but when submitting it doesn pass Thanks
11.10.2019
1308
views
1
comment
0
Show more
1
...
269
270
271
272
273
...
371
Please enable JavaScript to continue using this application.