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
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
19.02.2023
284
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");
19.02.2023
181
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"); }
19.02.2023
154
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
19.02.2023
144
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?
02.03.2021
625
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
19.02.2023
163
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
14.02.2021
372
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!
12.11.2018
1863
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
08.11.2022
321
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
04.11.2020
1072
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;
24.06.2021
453
views
5
comments
0
matemate123
Level 50
Kraków
Question about the task
Find the bugs
Java Core
,
Level 10
,
Lesson 10
Under discussion
I have one question
I had problem with this. task, I surfed a little in help section and I did it like below, but today I read whole day articles on Serialization topic, and now I rereaded this task and I commented one line in writeObject() method and one in readObject() becouse I thought that two maybe are redundant.
15.02.2023
215
views
4
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 ?
14.01.2020
1135
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
01.12.2020
508
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
15.02.2023
126
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.
22.06.2019
1939
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(); /* "
26.05.2019
1225
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.
16.06.2019
1143
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.
03.12.2020
538
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
27.07.2021
341
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
13.02.2023
143
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.
26.06.2019
1497
views
4
comments
0
ugabuga
Level 32
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
12.02.2023
260
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
10.09.2018
1852
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;
26.02.2021
517
views
4
comments
0
Henrique
Level 41
São Paulo
Question about the task
Serializable Solution
Java Core
,
Level 10
,
Lesson 7
Under discussion
One question about MAIN METHOD and one about TRANSIENT MODIFIER
1. I was able to pass this task, but I have a question about the "Write the verification code yourself in the main method:". I followed the steps and came up with the code bellow: Steps: 1) create a file, open an input stream and an output stream; 2) create an instance of the Solution class (savedO
08.07.2020
715
views
7
comments
0
Radosław Dziura
Level 16
Question about the task
Turnip
Java Core
,
Level 3
,
Lesson 11
Under discussion
I don't have a clue how to do it
Can anybody help?
15.04.2020
987
views
4
comments
1
Ryan
Level 14
Ashburn
Question about the task
Building and School
Java Core
,
Level 4
,
Lesson 4
Under discussion
Worked but still questions
I passed but I'm still a bit confused on why. The default code said to "write code" in the Building class but I never did because everything already seemed attached to the Building class (after writing code for School class). I've also never seen class method written outside the class code block. My
24.03.2019
1270
views
4
comments
2
Mike S
Level 28
Saint Louis
Question about the task
Threads and bytes
Java Core
,
Level 8
,
Lesson 11
Resolved
Failing second condition...
I was surprised to have gotten this right on the first try except for the second condition. But I don't understand how it can be right every other way except for the second one. Any insights?
10.02.2023
165
views
3
comments
0
hendra gunawan
Level 9
tebing tinggi
Question about the task
Binary converter
Java Syntax
,
Level 9
,
Lesson 2
Resolved
please help
what's wrong with my code? the first and second task requirement make me so confuse
06.02.2023
199
views
2
comments
0
Show more
1
...
23
24
25
26
27
...
367
Please enable JavaScript to continue using this application.