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
ImDevin
Level 15
Old Town
Question about the task
Fixing bugs
Java Core
,
Level 4
,
Lesson 8
Under discussion
interface or abstract class?
here, Orca class extends SeaCreture(abstract class with an abstract method) & implements CanSwim(has one method). The solution shows one method that is being overridden (@Override - CanSwim). It looks like it's the abstract method that is getting implemented, which it should. However, shouldn
6/10/21
1160
views
5
comments
0
Hafsah Jilanee
Level 10
Karachi
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 7
Resolved
Please help
please help i'm getting all the correct results but it won't pass testing
11/2/19
1352
views
2
comments
0
Reyaz Ahmad Bhat
Level 4
Anantnag Jammu And Kashmir
Question about the task
High accuracy
Java Syntax
,
Level 3
,
Lesson 7
New
Solution
Scanner sc = new Scanner(System.in); double a = sc.nextDouble(); double b = sc. nextDouble(); if(Math.abs(b - a) < 0.000001 ){ System.out.println("The numbers are equal"); }else{ //write your code here System.out.println("The
2/20/23
474
views
0
comments
0
Reyaz Ahmad Bhat
Level 4
Anantnag Jammu And Kashmir
Question about the task
Triangle
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
Solution
if((a+b)<=c || (b+c)<=a || (a+c)<=b){ System.out.println(TRIANGLE_DOES_NOT_EXIST); }else{ System.out.println(TRIANGLE_EXISTS); }
2/19/23
443
views
1
comment
0
hendra gunawan
Level 9
tebing tinggi
Question about the task
Binary to hexadecimal converter
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
please help ...
I'm stuck with the first and second requirement task....for binarynumber input ,I tried to use null as input....the result is null pointer exception....how to solve this task...some advice please
2/20/23
342
views
2
comments
0
Kiran Kumar Alisam
Level 1
Erie
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
triangle isnt possible not getting executed
i have added the code when triangle is possible and added else with the conditions mentioned when triangle isnt possible .. how to get the text printed for triangle isnt possible
3/31/22
822
views
2
comments
0
Reyaz Ahmad Bhat
Level 4
Anantnag Jammu And Kashmir
Question about the task
Three numbers
Java Syntax
,
Level 3
,
Lesson 5
Under discussion
Solution
public class Solution { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int number1 = scanner.nextInt(); int number2 = scanner.nextInt(); int number3 = scanner.nextInt(); if (number1 == number2) { if (number1
2/19/23
490
views
1
comment
0
Reyaz Ahmad Bhat
Level 4
Anantnag Jammu And Kashmir
Question about the task
Quadrants
Java Syntax
,
Level 3
,
Lesson 6
New
Solution
Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(a > 0 && b > 0){ System.out.println("1"); } if(a < 0 && b > 0){ System.out.println("2");
2/19/23
381
views
0
comments
0
Reyaz Ahmad Bhat
Level 4
Anantnag Jammu And Kashmir
Question about the task
To work or not to work? That is the question
Java Syntax
,
Level 3
,
Lesson 6
New
Solution
Scanner sc = new Scanner(System.in); int age = sc.nextInt(); if(age < 20 || age > 60){ System.out.println("You don't have to work"); }
2/19/23
344
views
0
comments
0
NsoundarMCA
Level 18
Coimbatore
Resolved
Playing with MAX Value
int x = Integer.MAX_VALUE; long y = Long.MAX_VALUE; System.out.println(x); System.out.println(y); System.out.println(x*2); // result -2 System.out.println(y*2); // result -2 Why I'm getting -2 as result when multiplying maximum value by 2, also I'm not evening
2/19/23
348
views
2
comments
0
EugeneEmory
Level 8
San Antonio
Question about the task
Minesweeper (Part 1/16)
Games
,
Level 0
,
Lesson 0
Under discussion
Help?
I believe I did exactly what the instruction laid out but I'm getting and unknown error?
3/2/21
876
views
1
comment
0
NsoundarMCA
Level 18
Coimbatore
Under discussion
Index of Array
Why don't array starts with 1 ? Why java creators designed to starts with 0 rather than 1
2/19/23
367
views
1
comment
0
Opeyemi Olaleye
Level 5
Question about the task
18+
Java Syntax
,
Level 4
,
Lesson 6
Under discussion
Coding Structure
I read the supplemental information on the scanner function and took a try at it. It seems to work but I was curious why the solution still uses things like BufferedReader when scanner is shorter. Does this have to do with proper coding structure or something? Currently the code doesn't meet the tas
2/14/21
603
views
2
comments
0
Filip
Level 4
Karlovac
Question about the task
Repetition is the mother of all learning
Java Syntax
,
Level 2
,
Lesson 8
Resolved
Please I need your support with this task!
Please I need your support with this task!
11/12/18
2195
views
7
comments
0
Mahendra Reddy
Level 2
CodeGym University in India
Question about the task
Uh... Happy New Year!
Java Syntax
,
Level 1
,
Lesson 6
Under discussion
java
how to coding
11/8/22
533
views
2
comments
0
Kasia
Level 22
Zabrze
Question about the task
Minesweeper (Part 2/16)
Games
,
Level 0
,
Lesson 0
Resolved
import com.codegym.engine.cell.*; doesn't want to import in IntelJi.
Hello, if any of you found it that import com.codegym.engine.cell.*; doesn't want to import in IntelJi there is an easy solution(works for my anyway). Close intellij and remove manually folder where you have your codegym code. After restarting Intellij it will ask you to choose a folder to downloa
11/4/20
1338
views
4
comments
2
hidden #10759343
Level 2
Question about the task
Pay raise
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
Need help! Please
This code I created, but still have issue. Please, help! package com.codegym.task.task02.task0205; /* Pay raise */ public class Solution { public static void main(String[] args) { hackSalary(7000); } public static void hackSalary(int a) { int b = 1000 + 7000;
6/24/21
826
views
5
comments
0
ilian44
Level 30
Veliko Turnovo
Question about the task
Overriding serialization in a thread
Java Core
,
Level 10
,
Lesson 10
Resolved
Strange
It seems all conditions are met but still cant pass the test ?
1/14/20
1399
views
5
comments
0
Andrei
Level 41
Question about the task
No mistakes
Java Core
,
Level 4
,
Lesson 4
Resolved
Huh?
Hello, according to the computation done my the MyBrain Quantum Computer somewhere in Europe, the following result should be displayed when using the printClasses method: Jerry; - for obj Mouse; - for mouse; obj being downcasted to mouse GrayMouse; - for grayMouse as it was downcasted to GrayMouse
12/1/20
782
views
9
comments
4
Justin Smith
Level 41
Greenfield, USA
Question about the task
Log parser (part 7)
Java Collections
,
Level 7
,
Lesson 15
New
Possible date parameter conflict
Consider the following query, which is viable given how we have built the project so far: "get ip from date = \"1.1.2012 12:12:12\" and date between \"11.12.2013 0:00:00\" and \"03.01.2014 23:59:59\"" It is not clear what should happen given a query like this. Should it ignore the date = ? Or shoul
2/15/23
355
views
0
comments
0
Carbune George
Level 22
Iasi
Question about the task
Find the bugs
Java Core
,
Level 10
,
Lesson 10
Resolved
Need help
I can't figure out what's the problem. Edit: Problem solved.
6/22/19
2307
views
8
comments
0
Bupal Junior
Level 5
Bristol
Question about the task
Describing numbers
Java Syntax
,
Level 4
,
Lesson 7
Archived
Please Help out . What am i doing wrong, I cant satisfy the last req?
package com.codegym.task.task04.task0427; /* Describing numbers */ import java.util.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here Scanner input = new Scanner(System.in); int n = input.nextInt(); /* "
5/26/19
1567
views
5
comments
0
Павел Артеменко
Level 41
Krasnodar
Question about the task
Log parser (part 1)
Java Collections
,
Level 7
,
Lesson 15
Under discussion
Bugged!
Validation of Condition 6 is bugged. Or description of condition is not correct.
6/16/19
1393
views
4
comments
0
Andrei
Level 41
Question about the task
Currencies
Java Core
,
Level 4
,
Lesson 8
Under discussion
Why do I also have to create the abstract constructor to be able to extend an abstract class?
In USD, Euro and Ruble class.
12/3/20
754
views
20
comments
1
Andrei
Level 41
Question about the task
Log parser (part 1)
Java Collections
,
Level 7
,
Lesson 15
Under discussion
This is probably one of the stupidest tasks so far... such little information... It's ridiculous.
1.2.2. The getUniqueIPs() method must return a set of all unique IP address. Store each IP address in a String. - cool from where? I had a look at the solution, the mentor creates a new class, new methods, in all about 230 lines of code. So far I have 39. How does CodeGym expect of me to come up w
7/27/21
509
views
1
comment
0
Tomek
Level 11
Gdansk
Question about the task
Logging stack traces
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
What's wrong with my code? (Same output)
Hi, what's wrong with my solution? Output seems to be the same. Kind Regards
2/13/23
309
views
1
comment
0
Profj
Level 20
Lagos
Question about the task
Restaurant
Java Core
,
Level 7
,
Lesson 10
Under discussion
Help a friend please.
What can I do on this task? I've checked and checked and checked.
6/26/19
1765
views
4
comments
0
ugabuga
Level 39
Question about the task
Restaurant (part 21)
Java Multithreading
,
Level 9
,
Lesson 15
New
Second Requirement will not pass, even though my code is identical with solution...!!
package com.codegym.task.task27.task2712; import com.codegym.task.task27.task2712.kitchen.Cook; import com.codegym.task.task27.task2712.kitchen.Order; import com.codegym.task.task27.task2712.statistics.StatisticsManager; import java.util.Observable; import java.util.Observer; import java.util.Set
2/12/23
502
views
0
comments
0
Richard Han
Level 4
Lipa
Question about the task
Closest to 10
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Help! I can't understand this. This lesson did not explain how to do this exactly, and it's expecting us to answer this ;-;
I'm not giving hate to codegym, I just wish they teached us how to do this before they gave us the tasks. ok ok now. I don't understand this. Please help. And ok, I'll say it, I copied the solution below from another help section. I understand the lesson, but that doesn't mean I understand the tasks
9/10/18
2197
views
6
comments
4
Andrei
Level 41
Question about the task
Overriding serialization
Java Core
,
Level 10
,
Lesson 7
Resolved
What is the point of creating a new thread in the readObject method and starting that thread if that is done already when we create a new object?
package com.codegym.task.task20.task2015; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; /* Overriding serialization */ public class Solution implements Serializable, Runnable { private transient Thread runner;
2/26/21
1007
views
4
comments
0
Show more
1
...
32
33
34
35
36
...
374
Please enable JavaScript to continue using this application.