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
catalin1989
Level 37
Question about the task
Numeral system converter
Java Multithreading
,
Level 10
,
Lesson 2
Under discussion
Is my logic wrong?
I haven't worked a lot with conversions, maybe I have some flaws in my logic. Here is my logic: 1. First I create a method that verifies if the input ins correct. It tries to parse the number to base 10 using Long.parseLong(value,radix). If the input is not correct it will throw an exception. 2.If t
26.03.2024
25
views
4
comments
0
Srividya
Level 3
Bangalore
Question about the task
As simple as 2+2
Java Syntax
,
Level 1
,
Lesson 8
Resolved
Write a program that calls the sum method with the arguments 2 and 2.
Hi, I have tried all possible command lines , but I could not find the solution, Please help. public class Solution { public static void main(String[] args) { int a=2; int b=2; int result=(c); } and then, also tried, public class Solution { pu
25.09.2018
5747
views
8
comments
0
PQK
Level 5
United States of America
Question about the task
Combining arrays
Java Syntax
,
Level 5
,
Lesson 1
Under discussion
Task Cannot Be Passed !!?
Code not working loll 🤬😭
24.03.2024
38
views
5
comments
2
Evgeniia Shabaeva
Level 7
Budapest
Question about the task
Remove duplicate strings
Java Syntax
,
Level 6
,
Lesson 4
Under discussion
What's wrong if the output's right?
The code I've written reads 6 strings from the console, finds duplicated ones among them, substitutes them with null and produces the expected output. Why does it still fail validation (in particular, does not meet the 2nd requirement)?
22.03.2024
60
views
9
comments
0
Alban Pajova
Level 3
Chicago
Question about the task
Parenthetical brainteaser
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
Help with Answer
To solve the question start with looking into the factors of 382. That will tell you where the first paranthesis goes.
03.05.2020
1211
views
6
comments
3
Seggzzy
Level 5
Lagos
Question about the task
Parenthetical brainteaser
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
Finally Resolved
I finally resolved the problem. Understanding of the condition attached to the question, is very important. especially the number of parentheses.
12.06.2020
573
views
1
comment
2
Evgeniia Shabaeva
Level 7
Budapest
Question about the task
Filling an array
Java Syntax
,
Level 6
,
Lesson 8
Under discussion
What's wrong if the output's right?
I'm wondering which particular requirements are not met by my code if it produces the expected output...
25.03.2024
15
views
3
comments
0
Fernando P Spitaliere
Level 6
Atlanta
Question about the task
Price of apples
Java Syntax
,
Level 4
,
Lesson 1
Under discussion
Just clarifying: The purpose of the method is to add up EACH new apple_object price, and not to display the price of the last apple_object.
It wasn't difficult for me to reference the Class's variable, and to assign it the variable passed as argument. My difficulty was to understand what it was asked of me to do with it from the description statement. I mistakenly thought it was to print the last known price, not to accumulate all the p
01.02.2019
2113
views
5
comments
6
Maven
Level 17
United States of America
Question about the task
Filling an array
Java Syntax
,
Level 6
,
Lesson 8
Resolved
I am filling the array according to the specifications. What is wrong here?
The error message is too general. My solution is filling the even and odd arrays according to the specifications. I'm not sure what I'm missing here.
06.03.2022
605
views
10
comments
1
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
131
views
2
comments
0
Ijaz Ahmed
Level 1
Under discussion
more programs than stories
please add more java programs than dtoties
21.03.2024
11
views
0
comments
0
PQK
Level 5
United States of America
Question about the task
Maximum of entered numbers
Java Syntax
,
Level 4
,
Lesson 2
Resolved
Confusion About The Min Value Of Integers
In the official code given by codegym, the max variable is assigned with the min value for an integer. But I don't understand why ? int max = Integer.MIN_VALUE; //max variable being intialized as the min value of integer while (console.hasNextInt()) { int x = console.ne
16.03.2024
55
views
4
comments
2
Kiran Kumar Alisam
Level 7
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
14
views
1
comment
0
Java coffee
Level 2
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
32
views
3
comments
0
Mike S
Level 28
Saint Louis
Question about the task
Racer (Part 3/28)
Games
,
Level 0
,
Lesson 5
Under discussion
1,000 Exceptions, but Code Displays Fine
I felt like I had all of the steps worked out and the code made sense to me. But when I ran and verified... it blew up in my face. A lot of exceptions and red font on the console, not a single green check, and not even a coherent-looking grid. Any hints to help me advance on this one?
04.01.2023
539
views
7
comments
9
Java coffee
Level 2
Question about the task
Last digit of a number
Java Syntax
,
Level 2
,
Lesson 1
Under discussion
Why did only 2/3 pass for the modulo task?
I wrote the following below but I got 2/3 checks passed and I'm not sure why I didn't get 3/3 checks passed. Does anyone have any insight as to why? int last digit; lastDigit = number % 10;
05.03.2024
32
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
342
views
3
comments
0
Jesú
Level 14
Madrid
Resolved
How to refresh tasks in the IntelliJ CodeGym plugin?
No new tasks appear, despite new tasks being available from advancing through the course.
07.03.2024
34
views
1
comment
0
Jesú
Level 14
Madrid
Question about the task
Changing shoes on the move
Java Syntax
,
Level 5
,
Lesson 7
Resolved
IntelliJ opens an unrelated .java when I run code.
This is annoying, and I don't know how to fix it. I am trying to run code. I even have my cursor placed in this program. However, when I decide to run the code, an unsolicited .java files comes up. Like, I didn't even ask that program to appear. How can I stop this?
07.03.2024
37
views
2
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
34
views
4
comments
2
Rich Piske
Level 30
United States of America
Question about the task
Find a substring
Java Multithreading
,
Level 2
,
Lesson 5
Under discussion
I get the exact result that we need. Why does it fail validation?
If someone wants to explain to me how my version doesn't get the exact same version CodeGym's solution generates, I would love to hear it! Thank you!
02.03.2024
37
views
2
comments
0
PQK
Level 5
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
54
views
3
comments
2
FelixUjo
Level 33
Gijón
Resolved
The methods are in the order indicated by the task. I don't know what the error is.
The methods are in the order indicated by the task. I don't know what the error is.
02.03.2024
30
views
4
comments
0
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
477
views
2
comments
0
Amalsaji
Level 2
Koovapady
Question about the task
We solemnly publish and declare these variables...
Java Syntax
,
Level 1
,
Lesson 3
Under discussion
no next level
please make this app functionable.it is not allowing to next level.
29.02.2024
29
views
0
comments
0
Niladri pradhan
Level 33
Mumbai
Question about the task
Archiver (part 8)
Java Multithreading
,
Level 7
,
Lesson 15
Resolved
last condition
The error shows "If any exception other than a NoSuchZipFileException occurs, then display "An error occurred. Please check the entered data." .please help
05.12.2019
1226
views
8
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
35
views
3
comments
0
Joseph Haynes
Level 2
United States of America
Question about the task
Initializing cats
Java Syntax
,
Level 5
,
Lesson 7
Resolved
Why do I keep failing the 1st requirement?
Why do I keep failing the 1st requirement?
22.01.2020
1097
views
9
comments
1
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
310
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
35
views
1
comment
0
Show more
1
2
3
...
366
Please enable JavaScript to continue using this application.