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
Edward Rickers
Level 15
Washington
Question about the task
Player and Dancer
Java Core
,
Level 4
,
Lesson 4
Under discussion
What am I missing that calling the play() and dance() are not working?
Putting void in front says start of illegal expression which I also don't fully understand
13.08.2021
528
views
2
comments
0
Anitamalina
Level 18
København
Under discussion
Object call versus class-calls ?
I try to understand the difference between example 1 and example 2 below, and why it matters, what to call. I think, I understand that, Example 1 I call the class Idea and Example 2 I call the object of Idea-class. But why does it matter, and when to prefer the example 1 over example 2, and the othe
16.08.2021
299
views
2
comments
0
Nami
Level 10
Burwood
Question about the task
In decreasing order
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
My code works and conditions satisfied , but why we do not need return statement ?
public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int[] array = new int[20]; for (int i = 0; i < 20; i++) { array[i] = Integer.parseInt(reader.read
17.08.2021
392
views
2
comments
0
Dominik
Level 27
Warsaw
Question about the task
MVC (part 2)
Java Multithreading
,
Level 4
,
Lesson 14
Resolved
Package does not exist
I have a problem, compilator is saying that my package does not exist: Error in com/codegym/task/task36/task3608/view/View.java on line 3 package com.codegym.task.task36.task3608.controller does not exist. But it's definitely there. I don't know what is the problem. It's strange that I see no other
17.08.2021
882
views
12
comments
0
Shashikant Sharma
Level 8
Surat
Question about the task
StringHelper class
Java Syntax
,
Level 6
,
Lesson 8
Resolved
😭 Can Anybody Explain Me This..........?
I Am Not Able To UnderStand What This Task Actually Want Me To Do???? I Have No Idea Where To Begin With????? Please Assist, No Direct Answers. OK.
15.08.2021
644
views
10
comments
0
wasnt me
Level 4
United Kingdom
Question about the task
Come on, lucky seven!
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
What's wrong with my solution?
public class Solution { public static void main(String[] args) { checkInterval(60); checkInterval(112); checkInterval(10); } public static void checkInterval(int a) { if(a < 50 || a > 100){ System.out.println("The number a is n
12.08.2021
510
views
3
comments
0
Zach
Level 22
Fort Collins
Question about the task
Factory method pattern
Java Core
,
Level 6
,
Lesson 13
Under discussion
Any help is appreciated.
Not sure where to put the Factory to allow it to access the enum...
17.08.2021
323
views
1
comment
0
Harrison Tran
Level 14
Anaheim
Question about the task
Cat code won't compile
Java Syntax
,
Level 7
,
Lesson 12
Resolved
I don't understand what this method : @Override public String toString() role in this code, don't see it getting call anywhere
@Override public String toString() { return "Cat's name: " + name + ", age: " + age + ", weight: " + weight + ", tail: " + tailLength; package com.codegym.task.task07.task0726; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; imp
01.04.2020
1179
views
3
comments
1
Vlad
Level 29
Khon Kaen
Question about the task
MVC (part 3)
Java Multithreading
,
Level 4
,
Lesson 14
Resolved
please help
my code seems to be working fine and i get the right output
15.08.2021
425
views
2
comments
0
Andrei
Level 41
Question about the task
Encryption
Java Core
,
Level 8
,
Lesson 11
Under discussion
Here is a simple version of how you can achieve a basic Caesar Cypher - you can study it to understand the algorithm but I recommend to write the program from your memory!
package com.codegym.task.task18.task1826; /* Encryption */ import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; public class Solution { public static void main(String[] args) throws IOException { FileInp
28.01.2021
408
views
2
comments
0
Rex
Level 3
Columbus
Under discussion
Is Apple Silicon Compatible with This Program?
I already purchased a $50 membership, and immediately afterwards the site has me download Intellij IDEA, a software for coding in Java. Although there is a download option for Apple Silicon, it does not look like the codegym plugin works at all. HELP!!
16.08.2021
383
views
1
comment
1
Anitamalina
Level 18
København
Question about the task
Task about algorithms
Java Syntax
,
Level 9
,
Lesson 11
Resolved
NullPointerException at line18
I don't understand why. It works fine in my IDE - but not on codeJudge?
05.01.2021
834
views
6
comments
0
jerry
Level 16
Earth C-137
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Resolved
shorty
A quick look on whats wrong here ? OUTput is correct except for "each value on a new line" QUESTION: How to guide an array to print elements on a new line? its just randomly happens task to task. lol google solutions " list.forEach(System.out::println); " and " for (String element : list) {
16.08.2021
473
views
2
comments
0
Indranil Chakraborty
Level 3
United Kingdom
Question about the task
Repetition is the mother of all learning
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Why is this not compiling🙃
🙃🙂🙃🙂🙃🙂🙃🙂
15.08.2021
617
views
1
comment
0
Anitamalina
Level 18
København
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Resolved
Can't pass the last requirement
Hey, I wonder what is wrong with my code. It gives the right result as far as I can tell, but I don't pass the last requirement. Anyone who can help me ?
13.08.2021
536
views
7
comments
0
Gytis Laukaitis
Level 6
Marijampole
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
What's wrong ?
Console input 2.5. Console output green.
13.08.2021
523
views
2
comments
0
Anitamalina
Level 18
København
Question about the task
Big salary
Java Syntax
,
Level 10
,
Lesson 11
Resolved
I don't understand why this isn't accepted?
What am I doing wrong? :)
07.02.2021
635
views
1
comment
0
jerry
Level 16
Earth C-137
Question about the task
StringHelper class
Java Syntax
,
Level 6
,
Lesson 8
Resolved
WhyResult
Had to delete some parts of the solution so i can post here. Question is solved after just 27 tries but still have some questions = 🤡 1🤡 what is with String result, whats the purpose if anyway result *= s. 2🤡 why first i = 1 and second i = 0 ? it gives same 5 outputs with first and second i (
13.08.2021
481
views
2
comments
0
Edward Rickers
Level 15
Washington
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
Don't know how to set the max to nothing
Do I need to initialize the max to something else? Setting it to zero doesn't work either. Don't know how to do this without making another method.
12.08.2021
397
views
2
comments
0
BigRatBaby
Level 20
Washington
Question about the task
Chicken factory
Java Core
,
Level 4
,
Lesson 6
Under discussion
NullPointerException
I'm getting a null pointer exception and i dont know why. Any help is appreciated. Thank you.
13.08.2021
413
views
1
comment
0
AlfredW
Level 23
Denver
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Under discussion
I decided to dig in and try to understand the code everyone seems to be using to pass this.
I am pretty sure that this will pass verification once I change the return to the correct result array. I really wanted to understand what this code did before I used it to pass verification. I dug into it as well as I could and tried to parse out how it was working. I had already written my own cod
10.11.2020
472
views
5
comments
0
Mateusz
Level 31
Gdańsk
Question about the task
Thread priorities
Java Multithreading
,
Level 8
,
Lesson 6
Under discussion
What's wrong with this solution?
Output is good, can anyone tell me what's wrong?
12.08.2021
450
views
1
comment
0
Tamas Horcsak
Level 18
Leeds
Question about the task
Different methods for different types
Java Core
,
Level 5
,
Lesson 12
Under discussion
my solution worked fine but it doesn't pass here (:
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; /* Different methods for different types */ public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(Sy
12.08.2021
714
views
2
comments
0
Rex
Level 3
Columbus
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
I entered the right solution, but that darn s is throwing me off
public static void print(String s) { System.out.println(s); why s, why s, why s? could it just as easily have been some other letter? like: public static void print(String f) { System.out.println(f); It is so strange to me that this wasn't explained.
12.08.2021
503
views
2
comments
0
Anne Kooijman
Level 2
Amsterdam
Question about the task
Amigo is very smart
Java Syntax
,
Level 0
,
Lesson 2
Under discussion
Amigo is very smart VS Amigo is real smart?
How come this did not verify correctly for the output "Amigo is real smart"? According to what im reading for the checks and balances (nr of chars, first word and last word) it should have worked too.
04.01.2021
443
views
5
comments
0
Indranil Chakraborty
Level 3
United Kingdom
Question about the task
Let's change the code
Java Syntax
,
Level 1
,
Lesson 4
Resolved
What is wrong here 🙃
String s = help System.out.println(s)
11.08.2021
284
views
2
comments
0
anupam jha
Level 7
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
string
which string it is about?? there r three in the main method.
15.10.2020
618
views
5
comments
0
Peter Gray
Level 20
Compiegne
Question about the task
Mercantile intentions
Java Syntax
,
Level 3
,
Lesson 12
Under discussion
Every single Java course. Why?!
Why does every Java course has to include exercises with material unknown to the student? First modulo, now loops. If this continues I'm gonna set up a blog with solutions to those particular tasks.
17.12.2019
1233
views
6
comments
1
Edward Rickers
Level 15
Washington
Question about the task
Display numbers in reverse order
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
Why am I failing the first requirement
I tried simplifying the initialization and it still runs and reverses but doesn't pass that requirement.
09.08.2021
373
views
1
comment
0
Edward Rickers
Level 15
Washington
Question about the task
Corrections are needed
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
Why is it outputting null for the first one?
Changing the size and the initial i value did not correct it.
09.08.2021
271
views
1
comment
0
Show more
1
...
55
56
57
58
59
...
367
Please enable JavaScript to continue using this application.