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
Praveen Reddy
Level 5
Hyderabad
Question about the task
Drawing a rectangle
Java Syntax
,
Level 4
,
Lesson 13
Resolved
Please suggest: Getting the following error - You displayed a m x n rectangle, but we're looking for an n x m rectangle.
import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { //write your code here Scanner scanner = new Scanner(System.in); int m = scanner.nextInt(); int n = scanner.nextInt(); for(int i=1; i<=n; i++)
02.05.2020
842
views
2
comments
1
George
Level 15
Question about the task
Minimum of three numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
Result is correct but verification fails
This seems to be working for all examples but verification fails. Any tips?
07.08.2020
565
views
3
comments
0
Husain Kothari
Level 20
Mumbai
Question about the task
Consecutive threads
Java Core
,
Level 6
,
Lesson 13
Resolved
Cant satisfy condition 5
I tried interrupting threads in the code and it does print Thread Interrupted but the code wont verify.
19.07.2019
1568
views
5
comments
3
Maxine Hammett
Level 19
San Diego
Question about the task
Beer
Java Core
,
Level 3
,
Lesson 2
Resolved
Not passing task
As far as I can tell all the interfaces methods have been accounted for. I don't understand why it's not passing verification.
06.08.2020
362
views
2
comments
0
Lawson
Level 29
Lagos
Question about the task
Rule of the triangle
Java Syntax
,
Level 4
,
Lesson 4
Resolved
pls..this question is confusing me
I got everything right...pls what's my error
26.07.2020
358
views
2
comments
0
Yuvavimal
Level 12
coimbatore
Question about the task
Cat relations
Java Syntax
,
Level 6
,
Lesson 11
Under discussion
output is correct but task not required?
package com.codegym.task.task06.task0621; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Cat relations */ public class Solution { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(n
07.08.2020
299
views
1
comment
0
hidden #10625598
Level 23
Question about the task
Make a word chain
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
what does this mean? >> (String... words)
what are these dots for ? and how is my tactic to find the solution here? i try to use 2 for-loops to compare one word of the list with the next (i = 0 & j = i +1) is this approach useful, or is there a better way to do so? thanks
05.08.2020
659
views
1
comment
0
Sanjeevkumar
Level 22
Mumbai
Question about the task
Threads and bytes
Java Core
,
Level 8
,
Lesson 11
Resolved
Frustrated as fuck
I don't know where the issues whether it with thread or the method help me if you find tha issue
06.08.2020
336
views
3
comments
0
Jo88
Level 4
Boston
Question about the task
Our first converter!
Java Syntax
,
Level 2
,
Lesson 2
Under discussion
what am I doing wrong?
here is my code? what am I doing wrong? I feel so dumb with all of this...am I close???
15.01.2020
1027
views
3
comments
0
shovan
Level 22
Kolkata
Question about the task
Fixing bugs
Java Core
,
Level 4
,
Lesson 8
Under discussion
plss help
i cannot understand
23.08.2019
1340
views
5
comments
0
Bill Wu
Level 29
Wellington
Question about the task
The world doesn't change, we change
Java Multithreading
,
Level 6
,
Lesson 10
Resolved
code not executed
I tried a few times with different code, it seems that the run() of producer somehow doesn't execute to the end. The print was never shown nor map updated. So in the run() of consumer, the map.isEmpty() always true. I can't figure out why. They have different threads, but the thread for Producer's r
29.04.2019
1334
views
1
comment
1
Angel Stefan Arjoca
Level 26
Bucharest
Question about the task
One for all, all for one
Java Core
,
Level 6
,
Lesson 10
Resolved
How i kill all threads??? Tk you!
🤔
15.07.2020
651
views
4
comments
1
Satya Vath
Level 31
Vijayawada
Question about the task
The world is boring for boring people
Java Multithreading
,
Level 6
,
Lesson 10
Resolved
Please Help
Cant Understand
10.09.2019
1244
views
3
comments
1
Balen Asangbeh
Level 23
Douala
Question about the task
No interrupt, no dice?
Java Core
,
Level 6
,
Lesson 10
Resolved
please what am I missing
please what am I missing
13.03.2019
1576
views
3
comments
2
John
Level 27
Washington DC
Question about the task
A wise man thinks once before speaking twice
Java Multithreading
,
Level 6
,
Lesson 8
Under discussion
I don't understand why this code worked haha
I used a synchronized block in the Solution constructor for all that logic, used a synchronized (this) in the first method and a synchronized (Solution.class) in the second method and the answer validated. What is the point of using both "this" and "Solution.class"?
30.03.2020
914
views
2
comments
2
Robert
Level 27
Lombard
Question about the task
Counting seconds
Java Core
,
Level 6
,
Lesson 10
Resolved
Sorry to Interrupt you...
When I run the code it appears it is printing AFTER the interrupt. Any ideas why this is not passing validation?
28.06.2019
1516
views
2
comments
3
Dyrits
Level 22
Question about the task
Moon Lander (Part 9/23)
Games
,
Level 0
,
Lesson 4
Resolved
What am I doing wrong?
@Override public void onKeyPress(Key key) { switch (key) { case LEFT: this.isRightPressed = false; this.isLeftPressed = true; case RIGHT: this.isLeftPressed = false; this.isRightPressed = true;
06.08.2020
501
views
4
comments
0
Niladri pradhan
Level 33
Mumbai
Question about the task
Read online about the median of a sample
Java Multithreading
,
Level 6
,
Lesson 2
Resolved
last condition not verifying
Error suggest to modify the programme to even number of array element
05.11.2019
1570
views
6
comments
0
Husain Kothari
Level 20
Mumbai
Question about the task
Stopwatch
Java Core
,
Level 6
,
Lesson 7
Resolved
What am i doing wrong here. I tried verifying on both intellij and codegym and get the same problem.
My doStep method is technically running for 1/4th of a second where speed is 4 but the 4th requirement is still not satisfied. What is the issue with my code?
14.07.2019
1123
views
3
comments
1
Diana Salvador
Level 26
Sintra
Question about the task
Introducing tags
Java Core
,
Level 9
,
Lesson 11
Resolved
The output is correct but can't pass the last requirement
I've tried with different inputs and it works just fine. Can someone help me? Thaaaanks!
13.02.2020
941
views
5
comments
2
Geethika medidi
Level 18
Hyderabad
Under discussion
Regarding codegym plugin in IntelliJ IDEA
The plugin doesn't work no matter how many times I disabled and enabled it and restarted the IDE!!! Initially, it asked for security key but I don't remember putting it. So, I tried a few things and from then onwards whenever I try to access those 6 icons, it is showing the same error "Error while s
19.07.2019
1901
views
6
comments
2
Ivan
Level 22
Nope
Question about the task
Let's talk music
Java Core
,
Level 6
,
Lesson 3
Resolved
Help from Admins
Hi, My output is 1001 ms and 1002ms is the output from the example. I get this could be due to HW but it is correct :) Funny though.
17.12.2019
1282
views
4
comments
1
Daniel
Level 15
Colnbrook
Question about the task
Who's that smarty?
Java Core
,
Level 3
,
Lesson 2
Resolved
What am I doing wrong?
I checked and a newly created Manager object is an instance of Person and also an instance of HasManagementPotential.
16.04.2020
923
views
4
comments
0
Jamie Pyette
Level 9
Sault Ste. Marie
Question about the task
Multiplication table
Java Syntax
,
Level 4
,
Lesson 10
Under discussion
Just saying..Id call this hard moreso than medium
That is all :p
07.05.2020
401
views
4
comments
0
Lawson
Level 29
Lagos
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
Help
pls ..I can't get past the last requirement
27.07.2020
601
views
3
comments
0
George
Level 6
Chiajna
Question about the task
Positive and negative numbers
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
different approache
Hi I tried making an array that stores the integers and then comparing them to 0. But I have an output error. can someone tell me what I did wrong here?
30.07.2020
269
views
2
comments
0
haseeb jan
Level 3
Bahawalpur
Question about the task
Implement the print method
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
help me to solve this task?
package com.codegym.task.task02.task0201; /* Implement the print method */ public class Solution { public static void main(String[] args) { print("Java is easy to learn!"); print("Java opens many opportunities!"); } public static void print(String s) { //write
16.09.2018
2660
views
8
comments
0
dhanush
Level 30
Chennai
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Under discussion
help me
last condition is not verifying :(
05.08.2020
381
views
1
comment
0
Brad Reed
Level 19
Hartford
Question about the task
CRUD
Java Core
,
Level 7
,
Lesson 10
Resolved
All but the third
What I have looks like it Should work....it does not. help?
02.08.2020
388
views
1
comment
0
Sanjeevkumar
Level 22
Mumbai
Question about the task
Rounding numbers
Java Core
,
Level 8
,
Lesson 11
Under discussion
frustrated as fuck!!*
pls clear me out of this!
05.08.2020
533
views
5
comments
0
Show more
1
...
148
149
150
151
152
...
366
Please enable JavaScript to continue using this application.