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
Guadalupe Gagnon
Level 37
Tampa
Question about the task
Tracking changes
Java Core
,
Level 9
,
Lesson 11
Resolved
Has anyone solved this?
I get the same results as they do with their examples, at least I think i do, the requirements are a convoluted mess. Anyone have any suggestions?
12/20/18
2401
views
6
comments
1
TheLordJackMC
Level 39
Princeton
Under discussion
why is my accuracy random?
I've completed almost every task in under 3 attempts, but my accuracy score keeps changing randomly. why is this happening?
8/6/21
531
views
4
comments
0
Edward Rickers
Level 15
Washington
Question about the task
R or L
Java Syntax
,
Level 7
,
Lesson 9
Under discussion
What am I missing? Error message also very confusing
package com.codegym.task.task07.task0716; import java.util.ArrayList; /* R or L */ public class Solution { public static void main(String[] args) throws Exception { ArrayList list = new ArrayList(); list.add("rose"); // 0 list.add("love"); // 1 list.add("ly
8/6/21
848
views
2
comments
0
Dinesh
Level 7
Delhi
Under discussion
What is wrong with my print statement .
import java.util.Scanner; public class IterativeFactorial{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); System.out.println(" Enter number: "); int num =sc.nextInt(); } private static int IterativeFact(int num){ //System.out.prin
8/4/21
462
views
5
comments
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
Fixing bugs
Java Core
,
Level 3
,
Lesson 11
Under discussion
Just looking for some explanation about what the code is doing
I had no problem passing the validation (IDEA makes it easy by underlining errors) so there's no attached code here. I just want to ask for some clarification about what the code is doing in this task. Why does the interface create an object of the class that implements it? Is this normal practice?
8/3/21
863
views
6
comments
0
Toka
Level 11
Dugo Selo
Under discussion
Can someone explain me what is wrong ?tnx
package com.codegym.task.task07.task0712; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; /* Shortest or longest */ public class Solution { public static void main(String[] args) throws Exception { //write you
8/5/21
833
views
1
comment
0
Anonymous #10775689
Level 14
United Kingdom
Question about the task
Catching unchecked exceptions
Java Syntax
,
Level 9
,
Lesson 8
Under discussion
If you're stuck, look at RuntimeException
This task puzzled me for a while. You need to... In the handleExceptions method, handle all unchecked exceptions. You can only use one try-catch block. If you're stuck, know that NullPointerException, IndexOutOfBoundsException and NumberFormatException are all subclasses of RuntimeException.
8/2/21
593
views
1
comment
2
Piyush Mahajan
Level 9
Mesa
Question about the task
Minimum number of statics
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
Can i access static variable from non static function. My below program is working but i have confusion for method 4 accessing a static variable.
package com.codegym.task.task06.task0616; /* Minimum number of statics */ public class Solution { public static int step; public static void main(String[] args) { method1(); } public static void method1() { method2(); } public static void method2() {
1/8/20
1103
views
1
comment
0
ron_villela
Level 28
Miami
Question about the task
Task about algorithms
Java Syntax
,
Level 5
,
Lesson 12
Under discussion
not seeing where this is incorrect....sample input is output correctly on IntelliJ....
package com.codegym.task.task05.task0532; import java.io.*; /* Task about algorithms */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int num = Integer.parseInt(
8/3/21
621
views
4
comments
0
Chris
Level 19
Newark
Question about the task
Static cats
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
Unsure of how to solve the last step.
If someone can walk me through the last step it would be greatly appreciated.
5/2/21
970
views
3
comments
0
Andrei
Level 41
Question about the task
Rollback
Java Collections
,
Level 9
,
Lesson 9
Resolved
Is there something wrong with my logic? Because it does what the requirements are.
I have even compared it to the solution , and they seem quite similar in output. Maybe I am missing something?
8/2/21
506
views
2
comments
0
Josephine
Level 1
Normal
Question about the task
Snake (Part 18/20)
Games
,
Level 0
,
Lesson 1
Resolved
I have no idea why UP and DOWN Direction not passing...
I have no idea why UP and DOWN Direction not passing....Someone please help .I am stuck at part18 of snake game
11/5/20
905
views
2
comments
0
Сергей
Level 24
Kryvyy Rih
Question about the task
Word search
Java Core
,
Level 10
,
Lesson 10
Under discussion
Can somebody help me?
I've got the right answer, but still not pass verification.
7/28/21
614
views
2
comments
0
Ryan Palmer
Level 20
Philadelphia
Question about the task
Fix the bugs
Java Core
,
Level 8
,
Lesson 5
Under discussion
Another Comprehension check
Would someone be willing to see if my explanation of what is happening is accurate? 1. if (inputStream.available() > 0) { // Read the entire file in one batch 2. byte[] buffer = new byte[inputStream.available()]; 3. int count = inputStream.read(buffer); 4.
8/1/21
628
views
1
comment
0
Ryan Palmer
Level 20
Philadelphia
Question about the task
Maximum byte
Java Core
,
Level 8
,
Lesson 3
Resolved
Comprehension question
Could someone help understand these lines of code? int[] byteCountArray = new int[256]; try (FileInputStream fileInputStream = new FileInputStream(fileName)) { while (fileInputStream.available() > 0) { byteCountArray[fileInputStream.read()] += 1;
7/31/21
518
views
5
comments
0
Shashikant Sharma
Level 8
Surat
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Resolved
What's The Problem Here?🤨
Why Does The Last Condition Doesn't Met Even Though The Output Is Correct?
7/31/21
579
views
4
comments
0
#mr.coder
Level 5
Question about the task
2048 (Part 1/18)
Games
,
Level 0
,
Lesson 2
Under discussion
java
where is java use?
7/21/21
640
views
2
comments
0
Michaela Obertova
Level 30
Palo Alto
Question about the task
MVC (part 4)
Java Multithreading
,
Level 4
,
Lesson 14
Resolved
Last condition no verifying
Hi, does someone please know why the last condition isn't verifying for me? Thanks
7/28/21
758
views
2
comments
0
NNAMDI HENRY
Level 6
ABUJA
Question about the task
Improving functionality
Java Syntax
,
Level 5
,
Lesson 12
Resolved
CONFUSED!
what is wrong with my code? It issues an error saying: ")" expected in line 31 position 861. I need solution to this peoblem.
7/29/21
664
views
2
comments
0
Jomar Tayactac
Level 5
Winnipeg
Question about the task
Crossing the road blindly
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
What's wrong with my code? I seem to satisfy all the requirements but it won't give me all the check marks.
import java.io.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); double num = Double.valueOf(reader.readLine()); double time = num % 5; if (time <=
7/28/21
974
views
2
comments
0
Zach
Level 22
Fort Collins
Question about the task
Constructor
Java Syntax
,
Level 5
,
Lesson 9
Under discussion
Why am I getting a nullpointer exception?
The class inside of a class is confusing me. Thanks in advance. package com.codegym.task.task05.task0523; /* Constructor */ public class Circle { public Color color; public static void main(String[] args) { Circle circle = new Circle(); circle.color.setDescription("Re
3/14/21
1018
views
5
comments
0
Daniel
Level 41
Rybnik
Question about the task
Log parser (part 1)
Java Collections
,
Level 7
,
Lesson 15
New
Looks good but validator won't let me go on!
Hi guys! Actually I have no idea what is wrong with my solution as I checked it with various logs in file - could you take a look please ? Any help would be appreciated!
7/29/21
511
views
1
comment
0
Andrei
Level 41
Question about the task
Let's recall inheritance
Java Multithreading
,
Level 4
,
Lesson 9
Resolved
Logic halp ples
Solution class extends C, i know, I just deleted the inheritance so I can verify the code so it shows here. Anyway, I solved the problem but I don't understand the following: 1. How is CCB printed considering that nothing from C class is called. Is it because when a Solution class objec
4/12/21
1354
views
3
comments
0
Alexander Lieder
Level 7
Leipzig
Resolved
Change course language to English
Hello. Is it possible to change the language for the course and the tasks? I started the course in German, but I'd like to continue in English, however, there seems to be no option for that in the settings. I tried setting the interface language in the bottom right corner to English, that does not c
10/23/20
1101
views
3
comments
1
Darko Jakimovski
Level 18
Kriva Palanka
Question about the task
Creating threads recursively
Java Core
,
Level 6
,
Lesson 13
Resolved
Can't see my mistake
I only get one line of output. I revisited each line a couple of times and can't find what's the problem. It only creates one object WhyTheFace?!
5/22/19
2013
views
6
comments
1
NOBODY
Level 5
Question about the task
Initializing objects
Java Syntax
,
Level 5
,
Lesson 7
Under discussion
still trying
anybody?
10/27/20
691
views
4
comments
0
Vlad
Level 29
Khon Kaen
Question about the task
CRUD 2
Java Core
,
Level 7
,
Lesson 10
Resolved
i dont see anything wrong with this but 5 & 6 wont pass
please help
7/28/21
838
views
2
comments
0
Abdelrahman
Level 5
Amman
Question about the task
Initializing cats
Java Syntax
,
Level 5
,
Lesson 7
Under discussion
help
I haven't continued yet but I have run into an issue so since I already have public void initialize(String name, int weight, int age) Typed in line 18 I cant type public void initialize(String name, int age, int weight) On line 23 but its what its asking from me so any hint on what to do
3/14/21
953
views
2
comments
0
Andrei
Level 41
Question about the task
The long forgotten Array
Java Collections
,
Level 7
,
Lesson 10
Under discussion
What is the difference between returning the solution and returning an initialized array ?
In line 20, I wanted to return return new Number[]{4,5,6}; but the mentor wouldn't accept my version. Why is that? package com.codegym.task.task37.task3706; import java.util.Arrays; import java.util.List; /* The long forgotten Array */ public class Solution { public static void ma
7/26/21
703
views
5
comments
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
2048 (Part 11/18)
Games
,
Level 0
,
Lesson 2
Resolved
This is a tough one
I am having a harder time with this than any other task. I want to do this with a loop, but I had to find a pattern first so I wrote out all 16 parts of the rotation. It seems like I found the pattern but it still won't validate. In the example, I am assuming that gameField[0] is the first array, {
7/26/21
647
views
2
comments
0
Show more
1
...
65
66
67
68
69
...
374
Please enable JavaScript to continue using this application.