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
mr batman
Level 0
Kuala Lumpur
Under discussion
(Using the FactorialCalculator): Modify the program to allow input on what factorial is required instead of 10.
// Iterative factorial method. public class FactorialCalculator { // recursive declaration of method factorial public long factorial( long number ) { long result = 1; // iterative declaration of method factorial for ( long i = number; i >= 1; i-- ) result *= i; return result; } // end me
10/17/22
520
views
0
comments
0
Anitamalina
Level 18
København
Question about the task
Horse racing
Java Core
,
Level 6
,
Lesson 5
Under discussion
I don't fulfull the requirements ?
I don't understand why I don't pass the requirements ?
10/17/22
486
views
1
comment
0
Amber Singh Rathour Pandey
Level 8
Delhi
Question about the task
Plan to conquer the world
Java Syntax
,
Level 3
,
Lesson 8
Under discussion
Query about inputs
I thought, for every input, I have to type ''BufferedReader xyz = new BufferedReader..., so typed it two times. Then I compared it with the codegym solution, it created only one. I wonder what was happening when I created Two BufferedReader objects
10/9/22
920
views
3
comments
0
Anonymous #10785407
Level 32
Question about the task
Functionality is not enough!
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
Don't see this task in may intelliJ Task list
Hello, I use Intellij and I have installed the codegym plugin. I don't have these tasks in my task list. What do I have to do to get these tasks in intellij? Thanks
11/29/21
678
views
1
comment
0
Rohan P
Level 2
Jakarta
Under discussion
who do
can anyone teach me how want to do
10/14/22
497
views
0
comments
0
mitakshi
Level 2
Jakarta
Under discussion
convert
convert the following in Java expression (max of (a,b)+ min of (b,c)) %(a^2+b^2+ c^2)
10/14/22
496
views
0
comments
0
Adrian
Level 6
Milton Keynes
Question about the task
Second smallest number entered
Java Syntax
,
Level 4
,
Lesson 5
Under discussion
Is my code bad vs standard solution
So I wrote the code that I thought was a good one, then I checked the website's solution. Is my code flawed in some way? asking out of curiosity. My code: Website solution:
10/13/22
767
views
1
comment
0
matemate123
Level 50
Kraków
Question about the task
Summation
Java Syntax
,
Level 4
,
Lesson 3
Under discussion
I don't know what is wrong if everything doing good.
I think everything is good? I don't understand what's wrong, I suppose that every step is allright.
10/13/22
619
views
1
comment
0
William Wallace
Level 3
Bielsko-Biala
Under discussion
Why output doesnt show space?
Hi, I have below code but when I check for output even though I intentionally made space before Ellie in first row it doesnt show space. Why is that? public class Solution { public static void main(String[] args) { System.out.println(" Ellie is very smart"); System.out.println(
10/12/22
472
views
2
comments
0
Luyi
Level 31
Kosice
Question about the task
The simplest code: part 2
Java Core
,
Level 5
,
Lesson 6
Under discussion
why the contructor have to be present
public NormalCat() { } Hi, I am wondering, why the constructor have to be present in this case?
6/25/19
1698
views
4
comments
0
Amber Singh Rathour Pandey
Level 8
Delhi
Question about the task
Drawing a rectangle
Java Syntax
,
Level 4
,
Lesson 13
Under discussion
Wow!
Using Println as a newline character. It took me 8 times....... More than bloody average... Cause I didn't know to use println like this here, I thought it needs something inside the brackets to work.
10/11/22
837
views
0
comments
0
GioGTelian
Level 10
Question about the task
Three numbers
Java Syntax
,
Level 3
,
Lesson 5
Resolved
the output is correct. why am i not passing?
int m, n, c; Scanner s = new Scanner(System.in); m = s.nextInt(); n = s.nextInt(); c = s.nextInt(); if(m == n) { System.out.println(""+m + n); } if (m == c) {
10/12/22
568
views
2
comments
2
PeterC
Level 28
France
Question about the task
The simplest code: part 2
Java Core
,
Level 5
,
Lesson 6
Resolved
Why do we need an empty constructor in the NormalCat class?
The code works without a constructor, obviously.
1/1/22
672
views
3
comments
0
Suraj Adak
Level 2
mumbai
Under discussion
the condition are not getting fulfilled
what to do about it can any one please tell me
10/11/22
440
views
0
comments
0
hendra gunawan
Level 9
tebing tinggi
Question about the task
Positive and negative numbers
Java Syntax
,
Level 3
,
Lesson 10
Resolved
please help....
I 'm stuck here...some tips please
10/9/22
884
views
2
comments
0
Tasmoda
Level 28
Midrand
Question about the task
Somewhere in the middle
Java Syntax
,
Level 4
,
Lesson 10
Under discussion
Grading system faulty
Good day. The grading system is incorrectly grading my solution. It says if I enter the numbers 2, 3 and 1 I should get 2. Which is incorrect. Thanks.
5/27/22
909
views
2
comments
0
Attila Kiss
Level 8
Question about the task
Remove duplicate strings
Java Syntax
,
Level 6
,
Lesson 4
Under discussion
my idea
In my solution i used a boolean array, where i changed the boolean from false to true if the same index of the strings array was a duplicated string. Then i just replaced the original sting on the strings array with null, if the matching index on the booleans array was true. Very challenging challen
10/7/22
555
views
0
comments
0
Dillon Morgan
Level 2
London
Question about the task
High accuracy
Java Syntax
,
Level 3
,
Lesson 7
Under discussion
Certain input gives incorrect message when difference is equal to one one-millionth
Is anyone else's solution giving the message "The numbers are not equal" when the two numbers input are 1.000001 and 1.000002? It's strange as I do receive the correct message when I use 1.000002 and 1.000003 (I.e. I am using the correct comparison operator)
10/8/22
511
views
0
comments
0
Rohith
Level 3
Chennai
Under discussion
java Project
Hi Brothers and Sisters I want to Know that how to Do a project in java. what are the Advanced knowledge for java. could You share it Please
10/10/22
482
views
0
comments
0
michal9696
Level 1
Poland
Question about the task
Minesweeper (Part 6/16)
Games
,
Level 0
,
Lesson 0
Resolved
Error: JavaFX runtime components are missing, and are required to run this application
This error is display when I try to run my code on IntelliJ . Anybody know how to solve this problem. Thank you a lot for every answer.
10/6/22
1158
views
5
comments
0
Dawn( #11020889)
Level 37
Toronto
Question about the task
Janitorial services
Java Core
,
Level 4
,
Lesson 8
Under discussion
headache, can not compile
totally have no idea about static and non-static, even I have the same code as the answer
10/7/22
517
views
2
comments
0
srav
Level 2
Jakarta
Under discussion
global variable
Use static keyword for global variable declaration and try to access it from non static methods and static methods
10/7/22
410
views
0
comments
0
srav
Level 2
Jakarta
Under discussion
global variables
what happens if I use static keyword for global variable declaration and try to access it from non static methods and static methods
10/7/22
453
views
1
comment
0
David Haines
Level 13
La Crosse
Question about the task
Minesweeper (Part 14/16)
Games
,
Level 0
,
Lesson 0
Resolved
conditions 2 & 3 failing - part 2
Guadalupe - I think I understand your suggestions to clean up the code. They made sense to me and I believe I implemented them correctly. You were definitely correct - much easier to understand at a glance. THANK YOU for that input! However, I apparently did not understand what you were trying t
9/5/20
567
views
1
comment
0
aljebra school
Level 7
Under discussion
emulator: Trying to vcpu execute at elp:8d684f"
I'm trying to create a virtual device in android studio 1.5 after creating the device then launching it the device just don't come up (i.e it's state is offline) always a black device then I tried creating another using the same API 23 Nexus 5 it turns out to be the same. But at the log tab it's ke
6/4/22
680
views
2
comments
0
Олег Байбула
Level 32
Question about the task
Feature-length film
Java Syntax
,
Level 2
,
Lesson 4
Under discussion
Typo
A typo is in the word metres.
10/5/22
573
views
0
comments
0
Nadeem Ansari
Level 8
India
Question about the task
Filled rectangle
Java Syntax
,
Level 4
,
Lesson 3
Under discussion
why I'm getting only one line of Q in output?
is it compulsory to write int width in the first while loop and not in the starting if yes then why?
10/1/22
531
views
2
comments
0
Alex Tor
Level 31
Question about the task
Just not on Monday :)
Java Syntax
,
Level 17
,
Lesson 2
Resolved
The method works fine, but Judge doesn't accept it.
Hi guys, I made the method workable, and it outputs precisely what it should, but the Judge doesn't accept my solution. My assumption is this is because of try-catch block, so fine, but can anyone give me a hint on what should I focus on to resolve it correctly? Thank you in advance!
9/29/22
972
views
4
comments
0
Aska #11011302
Level 37
Ceske Budejovice
Question about the task
Binary to hexadecimal converter
Java Syntax
,
Level 10
,
Lesson 2
Resolved
The toHex(String) method is not validated, but it works in IDE,
Please help, I don't know where the problem is :(.
9/28/22
483
views
2
comments
0
Enrique Del Valle
Level 31
Mexico
Question about the task
Counting words
Java Core
,
Level 9
,
Lesson 5
Under discussion
Why is not passing the last test?
Hi community, this is my solution, I don't understand why is not passing the last condition, I'll be grateful for some help.
9/29/22
577
views
1
comment
0
Show more
1
...
40
41
42
43
44
...
374
Please enable JavaScript to continue using this application.