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
Dinesh
Level 7
Delhi
Under discussion
I am unable to print the null value programmatically of the following statement.
If a variable of a reference (composite) type isn't storing a reference to an object, then it stores what is known as a 'null reference'. IF String s; & String s=null; are same than why i am not getting null as output. Tried 2 Ex as follows but didn`t get null as output. 1. class Person{
06.01.2021
324
views
5
comments
0
Dinesh
Level 7
Delhi
Under discussion
I want output upto 2 decimal place only. 31.40
//The output is 31.400000000000002 public class Codegym { public static void main(String[] args) { printCircleCircumference(5); } public static void printCircleCircumference(int radius) { //write your code here double result = 2*3.14*radius; System.out.p
07.01.2021
459
views
5
comments
0
Solanki Dhruv
Level 18
Surat
Question about the task
Identical words in a list
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
I got right result...but still fail on website.
?
02.12.2018
1407
views
6
comments
0
Ivan Duka
Level 22
Winnipeg
Question about the task
Array of string lists
Java Syntax
,
Level 10
,
Lesson 11
Under discussion
How to Create an Array of Parameterized Types
Hi! Please help, I am not sure why it does not pass the tests. I strongly suspect that it is about line 20: ArrayList[] result = (ArrayList[])new ArrayList[size]; I tried several ways to declare this array but no luck. As per Oracle's documentation, we Cannot Create Arrays of Parameteriz
07.04.2019
2496
views
5
comments
5
Gellert Varga
Level 23
Szekesfehervar
Under discussion
Reference conversions: widening and narrowing
From the Oracle's website: "A widening reference conversion exists from any reference type S to any reference type T, provided S is a subtype of T. " "Narrowing reference conversions: From any reference type S to any reference type T, provided that S is a proper supertype of T. " 1.) On base of th
06.01.2021
513
views
4
comments
0
Odeh Osayande Vincent
Level 1
Limerick
Under discussion
algorithm
Design an Algorithm for the following Java application that asks a customer to: enter the quantity of items requested from a mail-order catalogue, and the price of each item. The program will then return & display the totalCost of the required items. The results are formatted to
01.05.2020
582
views
0
comments
0
Odeh Osayande Vincent
Level 1
Limerick
Question about the task
Improvements in Java 7 (multiple exceptions)
Java Collections
,
Level 8
,
Lesson 6
Under discussion
write a method called positive values which will calculate and return the number of positive numbers in array
write a method called positive values which will calculate and return the number of positive numbers in array
01.05.2020
778
views
0
comments
0
Syed
Level 1
Bolton
Under discussion
what is subscription fees?
Hi what is subscription fees?
03.05.2020
787
views
0
comments
0
fzw
Level 41
West University Place
Question about the task
Caching
Java Collections
,
Level 4
,
Lesson 8
Under discussion
Why is my code not validating last two requirements?
I can get exactly the same result as the expected output. Thanks.
05.05.2020
737
views
0
comments
0
anele
Level 0
Under discussion
Online teaching
Does online teaching enhance the learning of Business studies at this time of covid 19
06.05.2020
336
views
0
comments
0
myqms
Level 33
Landshut
Under discussion
What is wrong with the markTile method ?
Please help, I can't find the mistake.
06.05.2020
370
views
0
comments
0
Vadim
Level 8
Hounslow
Under discussion
it's something new for me, who can explain me that? Thanks a lot
public class Solution { public static int step; public static void main(String[] args) { method1(); } public static void method1() { method2(); } public static void method2() { new Solution().method3(); } public void method3() { me
14.05.2020
318
views
0
comments
0
Dima Faraj
Level 0
Question about the task
Snake (Part 20/20)
Games
,
Level 0
,
Lesson 1
Under discussion
Help with Snake Collision
I've just finished the course, and am doing bug-fixes. I have no idea how to make the snake move correctly, here's the code relating to my issue: //snake.java package com.codegym.games.snake; import com.codegym.engine.cell.*; import java.util.ArrayList; import java.util.List; public class Snake ex
15.05.2020
521
views
0
comments
0
Arthur
Level 8
Céron
Under discussion
Hello
I don't understand why it doesn't work...
18.05.2020
413
views
0
comments
0
Angus McDonald
Level 5
Sydney
Question about the task
Minesweeper (Part 16/16)
Games
,
Level 0
,
Lesson 0
Under discussion
Final step and code has been adjusted (not by me) which now doesn't function correctly.
Hi team, I've just completed step 15 of the Minesweeper project successfully, moved into step 16 being very pleased with myself seeing that the game is complete and it appears that a bunch of code has been removed / updated when moving from step 15 to 16. The game isn't functioning as it should. I'
19.05.2020
307
views
0
comments
0
Lisa THAZAR
Level 1
Francheville
Under discussion
Hi everyone..This is my code, and the error is the createGame don't call in the initialize.. Can you help me please?
package com.codegym.games.minesweeper; import com.codegym.engine.cell.*; public class MinesweeperGame extends Game { private GameObject[][] gameField = new GameObject[SIDE][SIDE]; // check spelling of GameObject[][] variable above private static final int SIDE = 9; public void ini
20.05.2020
417
views
0
comments
0
BlueJavaBanana
Level 37
Question about the task
Debug everything under the sun
Java Core
,
Level 6
,
Lesson 13
Resolved
Hints/Tips on this Task
I don't want the solution to this task, but I'm really struggling to grasp how to approach this problem. Has anyone got any tips/subtle hints?
14.05.2020
551
views
2
comments
0
Katerina Brookshaw Petranova
Level 5
Parque la reina-Cho
Question about the task
Currency exchange
Java Syntax
,
Level 3
,
Lesson 3
Resolved
please help
can you please tell me where I'm going wrong and what have I forgotten? Please be clear as this is the first time I'm trying to learn programming language, thanks.
15.12.2020
504
views
5
comments
0
Dinesh
Level 7
Delhi
Question about the task
Minimum of two numbers
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Can not find symbol num1 and num2
package com.codegym.task.task04.task0418; /* Minimum of two numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
06.01.2021
434
views
2
comments
0
Lex Medeiros
Level 18
San Jose
Question about the task
Debug everything under the sun
Java Core
,
Level 6
,
Lesson 13
Under discussion
The program must use OurUncaughtExceptionHandler's uncaughtException method to display 2 messages.
As far as I understand this I am setting the default exception handler OurUncaughtExceptionHandler. Placing it inside the TestedThread class definition. It outputs the two lines correctly. Thus, it must be using "OurUncaughtExceptionHandler to display the two messages. Please help!
11.07.2019
1437
views
5
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Debug everything under the sun
Java Core
,
Level 6
,
Lesson 13
Under discussion
need some hint
If i properly understand Interface Thread.UncaughtExceptionHandler it should be invoke when RuntimeException is throw.
28.02.2019
1208
views
4
comments
0
Dinesh
Level 7
Delhi
Question about the task
Do we have a pair?
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
What went wrong in displaying all the 3 equal nos. at line 27
import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader reader = new BufferedReader (new InputStreamReader(System.in)); String fnum = reader.readLine(); int num1 = Integer.parse
29.11.2020
554
views
4
comments
0
Lex Icon
Level 17
Sofia
Question about the task
Task about algorithms
Java Syntax
,
Level 9
,
Lesson 11
Resolved
Splitting-sorting has implemented correctly, the problem is to populate the final ArrayList contains the sorted data.
Hi Java warriors, Just to make some of my actions more clear: I called isGreaterThan() just to cover the requirement, in fact - my code doesn't need this check (maybe I'm wrong, it's possible tho). So, I'd highly appreciate it if anyone would help me to fix my code, by editing: //populating the fina
05.01.2021
419
views
5
comments
0
Jennifer Peters
Level 3
Brisbane
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
Help - Explanation of for loop
Hi all, I was just wondering if anyone could explain why my function prints 5 times. My understanding is that the loop would stop before index 5 because of the for loop condition i<5. Would anyone please explain this to me? Thanks 😀
06.01.2021
431
views
1
comment
0
joe
Level 27
London
Question about the task
Building a file
Java Core
,
Level 8
,
Lesson 11
Under discussion
Stuck on last validation "Copy all the bytes from the *.partN files to the new file."
Any tips on what I'm doing wrong?
05.01.2021
307
views
3
comments
0
Thasi
Level 10
Cape Town
Question about the task
Task about algorithms
Java Syntax
,
Level 9
,
Lesson 11
Under discussion
Confused as to what I am getting wrong...
Tested it with both numbers/strings only - still works but my code is not verified as correct, where did I go wrong?
08.07.2019
1064
views
4
comments
0
anupam jha
Level 7
Question about the task
Sum of the digits of a three-digit number
Java Syntax
,
Level 3
,
Lesson 12
Resolved
help plz
public static int sumDigitsInNumber (int number) { } what to write inside this method n more importantly why ??? when you write System......print..(method (546))... you are nt done?? why??
05.01.2021
603
views
3
comments
0
Chandan Thapa
Level 22
Dubai
Question about the task
Prices
Java Core
,
Level 8
,
Lesson 11
Resolved
how and where am I doing wrong?
Any help would be great.
04.01.2021
434
views
5
comments
0
Dinesh
Level 7
Delhi
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Unable to approach in proper way
Please refer line number 16 tried with real numbers 1.5 and 2.5. It is working with 2.5 and hope if I do so it will work for rest But its a Big O(n) type approach its not so good please help
28.11.2020
606
views
10
comments
0
Sendhur Muthu
Level 2
Mumbai
Under discussion
Need to continue my learning quest..
I am at level 2..Idont have any more dark matter to move forward..stuck in here ,can you give me a solution..And also i have completed all my free tasks. Moreover I cant afford to buy premium. Need help to finish my quest.
29.04.2020
573
views
0
comments
0
Show more
1
...
93
94
95
96
97
...
366
Please enable JavaScript to continue using this application.