Promotion
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
Nathan Samson
Level 5
United States of America
Question about the task
Positive and negative numbers
Java Syntax
,
Level 3
,
Lesson 7
Under discussion
What am i doing wrong here?
What am i doing wrong here?
26.06.2023
187
views
2
comments
0
Kiran Kumar Alisam
Level 8
Erie
Under discussion
duplicates
public class Solution { public static void main(String[] args) throws Exception { // Read strings from the console and declare an ArrayList here ArrayList list = new ArrayList(); BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); for(int i=0;
20.03.2024
78
views
1
comment
0
Java coffee
Level 4
Under discussion
Help with this code
Can someone help with this and constructively criticize.. I have also included the program I wrote which is very basic but I'm trying to solidify my knowledge on if else statements and loops. I want to write a program that: - takes the user's input - Both integers must be greater than 0. - accepts
18.03.2024
89
views
3
comments
0
Ailana
Level 2
San Carlos
Question about the task
One cat isn't enough
Java Syntax
,
Level 2
,
Lesson 3
Under discussion
Help plz as fast as u can
it says that I didn't make 2 variables but everything else is correct.this is my code public class Solution { public static void main(String[] args) { Cat kitty = new Cat();
11.08.2020
415
views
3
comments
0
Rich Piske
Level 30
United States of America
Question about the task
Make a word chain
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
I was really happy with my solution. HOW is it wrong?
This has been probably the most frustrating chapter yet with validation. I've tested numerous data sets with my algorithm. It tries starting with all words in the list and returns the longest result. It's worked with everything I've thrown at it, even the ones you guys have suggested. I think th
06.03.2024
87
views
4
comments
2
PQK
Level 6
United States of America
Question about the task
Conscription
Java Syntax
,
Level 3
,
Lesson 0
Resolved
Is this code acceptable ?
I wrote this code for this question and it achieved the desired output stated in the question. But when I verify it, the code was wrong as the last requirement was not met even though the input age (22) is within the specified range. My code also shows that nothing will be displayed if the input age
03.03.2024
269
views
3
comments
2
Yomi Addey
Level 8
Baltimore
Question about the task
Arithmetic mean
Java Syntax
,
Level 5
,
Lesson 5
Under discussion
I'm having trouble passing tasks 3,4,and 7
Not sure if it's the way I organized my code or...? But, any help will be greatly appreciated!
19.02.2021
549
views
2
comments
0
Jack Winning
Level 6
Nottingham
Question about the task
Reverse
Java Syntax
,
Level 6
,
Lesson 3
Under discussion
Help on if statement
I've tried a few ways now, but it seems whatever I put inside the if statement, doesn't get recognised when I try to run it. it either says symbol not found or 'n may not have been initialized '. Any advice please?
27.02.2024
55
views
3
comments
0
Justin Smith
Level 41
Greenfield, USA
Question about the task
Archiver (part 13)
Java Multithreading
,
Level 7
,
Lesson 15
Under discussion
Can you move the copyData line outside of the while loop?
I already completed the task, but after that I was looking at the code and I thought it seems really inefficient to be writing the entire ZipInputStream to a dummy copy on every iteration of the while loop. If it's a large archive this could really bog down the process. I was wondering if it would w
24.04.2022
339
views
1
comment
0
Bashka
Level 4
Russia
Question about the task
Maximum of entered numbers
Java Syntax
,
Level 4
,
Lesson 5
Under discussion
I need help!)))
I can't solve this problem....)
26.02.2024
53
views
1
comment
0
Niki Niki
Level 2
banglore
Under discussion
what is the error in this program
import java.io.*; public class main{ public static void main(String[] args) throws IOException { FileReader file =new FileReader("C:\\a.txt"); BufferedReader fileInput = new BufferedReader (file); for( int counter=0;counter<3;counter++) System.out.pr
25.02.2024
44
views
1
comment
0
FelixUjo
Level 35
Gijón
Question about the task
Black box
Java Multithreading
,
Level 4
,
Lesson 4
Under discussion
I don't know what else to try.
I don't know what else to try.
18.02.2024
93
views
6
comments
0
Jack Winning
Level 6
Nottingham
Question about the task
Second smallest number entered
Java Syntax
,
Level 4
,
Lesson 5
Under discussion
I seem to be getting the correct output but not passing all the requirements.
can any shed some light on this?
24.02.2024
48
views
1
comment
0
Jack Winning
Level 6
Nottingham
Under discussion
Why is the while argument !isExit on the correct solution?
I can understand the rest of the solution, but I don't understand why the argument for 'while' is !isExit. if boolean isExit = false, then surely !isExit = true and therefore the while loops stops straight away? Can someone clarify for me please?
22.02.2024
48
views
1
comment
0
Aditya Sinha
Level 17
Bangalore
Question about the task
Going national
Java Syntax
,
Level 8
,
Lesson 11
Resolved
Failing in last condition
I am checking if last word is going to print ,then don't print extra space,still it is failing.Can someone check
23.01.2019
2189
views
11
comments
1
solewap
Level 3
Poland
Question about the task
Triangle
Java Syntax
,
Level 3
,
Lesson 6
Under discussion
Why my ternary bugs out after ":" ?
System.out.println( isTriangle ? TRIANGLE_EXISTS : TRIANGLE_DOES_NOT_EXISTS );
18.02.2024
63
views
2
comments
0
Amantai
Level 46
Shymkent
Question about the task
Getting rid of labels
Java Multithreading
,
Level 7
,
Lesson 2
Resolved
For your information
The solution using the contains() method does not pass the verification of points 3 and 4. The contains() method probably uses break and continue statements.
05.10.2023
141
views
1
comment
0
Andrew
Level 29
Seattle
Question about the task
Getting rid of labels
Java Multithreading
,
Level 7
,
Lesson 2
Resolved
Brain stuck in box
I can't think of how to preserve the while loop logic without a continue. Hint please!
06.06.2019
1641
views
7
comments
0
Rajesh Yadav
Level 17
Delhi
Question about the task
Summation
Java Syntax
,
Level 4
,
Lesson 0
Under discussion
first try yourself if stuck then apply this solution
package en.codegym.task.pro.task04.task0403; import java.util.Scanner; /* Summation */ public class Solution { public static void main(String[] args) { //write your code here Scanner sc = new Scanner(System.in); int sum = 0; boolean flag = true; while(f
29.12.2023
163
views
1
comment
0
Bashka
Level 4
Russia
Question about the task
Sum of numbers not divisible by 3
Java Syntax
,
Level 4
,
Lesson 4
Under discussion
Help!)
Where is my wrong?)
18.02.2024
61
views
4
comments
0
Jo88
Level 4
Boston
Question about the task
Square of a number
Java Syntax
,
Level 1
,
Lesson 8
Under discussion
square of number
I do not understand why the system.out.println(sqr(5)); part is so early in the code? why isn't it at the end instead of being in the main method? I am asking be cause the a*a part comes after the print statement..so how is it printing before it gets the answer??? maybe I am looking at this the w
14.01.2020
926
views
4
comments
0
ALice
Level 1
Fremont
Under discussion
alice
alice
19.02.2024
35
views
0
comments
0
Bob
Level 1
Under discussion
bob
bob
19.02.2024
33
views
0
comments
0
Shriyansh Budhori
Level 6
CodeGym University in India
Question about the task
Positive and negative numbers
Java Syntax
,
Level 3
,
Lesson 10
Under discussion
What is wrong?
What is Wrong in this:?
11.02.2024
59
views
1
comment
0
Ryan
Level 5
Srinagar
Question about the task
Quadrants
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
I can't clearly understand what it wants me to do. Can anyone help me?
It asks me to do something i can't clearly understand..... Please explain what it is saying.
03.11.2022
373
views
3
comments
0
raj patil
Level 4
Question about the task
Pets need people
Java Syntax
,
Level 2
,
Lesson 5
Resolved
Level 2 lesson 5
how to do this task. i am not able to understand how to define the owner
31.07.2018
4539
views
18
comments
3
FelixUjo
Level 35
Gijón
Question about the task
Refactoring Rectangle
Java Multithreading
,
Level 4
,
Lesson 4
Resolved
I don't see the problem.
I don't see the problem.
17.02.2024
55
views
1
comment
0
Isma
Level 41
Madrid
Question about the task
Eliminating deadlock using open calls
Java Multithreading
,
Level 7
,
Lesson 6
Under discussion
Solved it but I don't really know what I've done
Someone to explain this task?
02.03.2021
635
views
3
comments
1
Alexandre Desbois
Level 10
Chamarandes-Choignes
Question about the task
HashMap of cats
Java Syntax
,
Level 8
,
Lesson 3
Resolved
NullPointerException
I don't understand why the code doesn't compile due to a NullPointerException. Thanks for your help.
26.12.2021
359
views
3
comments
1
matemate123
Level 50
Kraków
Question about the task
Wildcards
Java Collections
,
Level 5
,
Lesson 8
Under discussion
Someone could tell me about difference?
I added wildcards: Previously code looks: I understand that here occur relationship producer-consumer or something similar. Wildcard ? with super give me sureness that this List have ancestors and I can safely adding to it. Wildcard ? with extends give me reliability that this list is descendan
11.10.2023
271
views
5
comments
0
Show more
1
2
3
4
5
6
...
367
Please enable JavaScript to continue using this application.