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
Vinay Bansode
Level 1
Pune
Under discussion
Can I Run Advanced Java's Program
Can I Run Advanced Java's Program On this Application
08.11.2022
190
views
0
comments
0
Sourav Kumar Rana
Level 9
Delhi
Question about the task
Price of apples
Java Syntax
,
Level 4
,
Lesson 1
Under discussion
here is the solution worked for me
package com.codegym.task.task04.task0402; /* Price of apples */ public class Solution { public static void main(String[] args) { Apple apple = new Apple(); apple.addPrice(50); Apple apple2 = new Apple(); apple2.addPrice(100); System.out.println("The cos
14.01.2019
2581
views
12
comments
0
matemate123
Level 50
Kraków
Question about the task
StringTokenizer
Java Syntax
,
Level 10
,
Lesson 6
Resolved
What's wrong?
I have read that in this exersise may be bug. I don't know what to do, because everything in this program do it's funkction.
06.11.2022
289
views
2
comments
0
Vadim “迪姆哥”
Level 35
Question about the task
Buy an elephant
Java Syntax
,
Level 15
,
Lesson 3
Resolved
My code are identical to correct solution, but validator didnt let it pass
WHY?
01.11.2022
388
views
3
comments
0
Vadim “迪姆哥”
Level 35
Question about the task
Filling an array
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
code meets requirenment of task
So, according to Console output, if array size is 20(even), it fills with : [10,10,10,10,10,10,10,10,10,10,13,13,13,13,13,13,13,13,13,13] Then if array size is 21(odd), it fills as [10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,13,13,13,13,13] According to console output, my code met the requirem
12.10.2022
567
views
10
comments
0
GioGTelian
Level 10
Question about the task
Minimum of N numbers
Java Syntax
,
Level 6
,
Lesson 3
Resolved
why it doesnt work?
i need to know i spent too much time on this!!
26.10.2022
394
views
1
comment
2
Anonymous #11149234
Level 6
United States of America
Question about the task
Comparing strings by reference
Java Syntax
,
Level 3
,
Lesson 9
Under discussion
why not equals?
why not equals() ? i tried so manny times thinking I was supposed to use equals to compare?? please
27.10.2022
399
views
2
comments
0
Weichen Ouyang
Level 25
San Jose
Question about the task
Cache based on SoftReference
Java Collections
,
Level 4
,
Lesson 6
Under discussion
Please help me out: I don't understand the requirement for the put method
I can get it right for the put method of the SoftCache. I will really appreciate anyone could offer some help.
26.09.2019
1314
views
5
comments
0
Deepanshu Pathak
Level 3
Jakarta
Question about the task
How to take over the world
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
how to input the scanner class
how to input the scanner class
18.10.2022
400
views
2
comments
0
Dawn( #11020889)
Level 37
Toronto
Question about the task
Shall we play?
Java Core
,
Level 6
,
Lesson 13
Under discussion
what's wrong with my code? Please help!
Why the code can not fit the third require? Someone give a hint? Thanks a lot!
29.10.2022
483
views
1
comment
0
Amber Singh Rathour Pandey
Level 8
Delhi
Question about the task
To the top of the list
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
General query about adding things in ArrayList
If I do this, for(int i = 0; i < 10; i++) { list.add(0, r.readLine()); } So, list is an ArrayList, I thought it will add the element on the first position, then, when It will add the second time at the same place, the previous element should've disappeared, but it didn't. Instead, it kept
27.10.2022
321
views
0
comments
0
Amber Singh Rathour Pandey
Level 8
Delhi
Question about the task
Longest string
Java Syntax
,
Level 7
,
Lesson 6
Under discussion
Regarding an loop syntax in the solution
For syntax is weird. for(string element : strings) { ... }
25.10.2022
320
views
3
comments
0
Dedcom
Level 19
Lahore
Question about the task
Clew
Java Core
,
Level 6
,
Lesson 13
Under discussion
Whats the problem here
.
02.03.2019
1781
views
10
comments
0
Raj Mishra
Level 15
India
Question about the task
Working with dates
Java Syntax
,
Level 8
,
Lesson 11
Under discussion
Dont understand why my code is failing
I don't understand why my 2 validations are failing if I already have used 2 methods in solution class and its returning true for odd number odd days. Could you please help?
19.05.2020
670
views
5
comments
0
Amber Singh Rathour Pandey
Level 8
Delhi
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Under discussion
Come on....
Out of Bounds?! What is out of bounds? lol
23.10.2022
474
views
1
comment
0
Amber Singh Rathour Pandey
Level 8
Delhi
Question about the task
Static cats
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
General Query
In the Cat constructor, I thought somethng should be here when the class is called, but in the original solution, it added nothing. I was creating the objects like this, Cat cat1 = new Cat(); Cat cat2 = ' ' ' ' '' '' '' That's why there should have been something in the construc
22.10.2022
351
views
4
comments
0
Amber Singh Rathour Pandey
Level 8
Delhi
Question about the task
Calculator
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
Why is this not working?
public static double percent(double a, double b) { return (a * b) / 100; * I changed parameters from int to double, expecting to return a decimal type number. This test only accepts parameter multiplied by 1.0, I understand this forces the compiler, but former should have worked.....
22.10.2022
331
views
3
comments
0
Maravelias Giorgos
Level 6
Heraklion
Question about the task
Cutting down the middle
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
Always failed , why ?
The results of my code are the expected . But task always failed . I have try two approaches
21.10.2022
333
views
2
comments
0
Denis
Level 22
Kharkiv
Question about the task
Airport
Java Core
,
Level 6
,
Lesson 7
Under discussion
One condition. Pls me pls
give me a code pls
27.06.2019
1200
views
4
comments
0
Nicu Bubuioc
Level 6
Question about the task
Executing a snippet of code
Java Syntax
,
Level 5
,
Lesson 7
Archived
"Cannot find local variable "loop"
after i press alt + f8 and try to execute the code i get the "Cannot find local variable "loop"
06.07.2022
995
views
3
comments
0
AG09Mex
Level 28
Question about the task
Path update
Java Syntax
,
Level 9
,
Lesson 5
Resolved
I'm not sure what the the issue with my code is.
The output seems to be fine.
19.10.2022
423
views
2
comments
0
hanshith
Level 2
guntur
Question about the task
Amigo is very smart
Java Syntax
,
Level 1
,
Lesson 1
Under discussion
why you don't telling "how to do coding" ?
I want to learn about coding perfectly?
01.10.2022
484
views
1
comment
0
Martin
Level 31
Roden
Question about the task
Snake (Part 1/20)
Games
,
Level 0
,
Lesson 1
Under discussion
Create a new project for the Snake game or not?
How to start in IDEA the development of the Snake game?
19.10.2022
370
views
1
comment
0
Vadim “迪姆哥”
Level 35
Question about the task
StringTokenizer
Java Syntax
,
Level 10
,
Lesson 6
Under discussion
PLEASE, correct the task or validator
In the task, you mentioned that maximum count of tokens must be 6. So I implemented my code within that restriction, also returned array of strings without "null" elements, but validator didn't let it pass
19.10.2022
359
views
1
comment
0
DemonzDoesCoding
Level 1
Jakarta
Question about the task
Amigo is very smart
Java Syntax
,
Level 1
,
Lesson 1
Under discussion
i don't see anything wrong
i made it right but what's the position mean?
29.09.2022
567
views
3
comments
0
SRINIVASAN MUKUNDH
Level 16
Chennai
Question about the task
Second smallest number entered
Java Syntax
,
Level 4
,
Lesson 5
Under discussion
About smallest integer
Why in this task the smallest integer is 5? Because why I am asking the question, the input 4 is smaller then input 5.....
18.10.2022
366
views
1
comment
0
William Wallace
Level 3
Bielsko-Biala
New
At which stage it will be explained how to instal Intelij and CodeGym plugin for it?
Hi, As in the subject of this question: At which stage it will be explained how to instal Intelij and CodeGym plugin for it? Thanks, W.W.
18.10.2022
319
views
0
comments
0
Amber Singh Rathour Pandey
Level 8
Delhi
Question about the task
Seeing dollars in your future
Java Syntax
,
Level 4
,
Lesson 10
Under discussion
Query
I can't multiply String like this, ''S'' * 10. Why does it give error?
11.10.2022
463
views
4
comments
0
hendra gunawan
Level 9
tebing tinggi
Question about the task
Adding
Java Syntax
,
Level 4
,
Lesson 10
Resolved
what's wrong with my code? please help
I'm still stuck with this
18.10.2022
625
views
3
comments
0
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
17.10.2022
371
views
0
comments
0
Show more
1
...
36
37
38
39
40
...
372
Please enable JavaScript to continue using this application.