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
All quests
All levels
Any status
Questions about tasks
Hot
Evgeniia Shabaeva
Level 35
Budapest
Question about the task
Phone number verification
Java Multithreading
,
Level 2
,
Lesson 13
Resolved
The code verifies the given numbers correctly, but the last requirement is still not met
Well, I'm still following the creepy path of using regexes, as I'm interested in this topic and trying to master it this way:). I've tried to make my code account for all the suggested cases and tested it with all the suggested phone numbers plus some of mine. It finally produces the expected output
14.01.2025
43
views
4
comments
0
Evgeniia Shabaeva
Level 35
Budapest
Question about the task
Make a word chain
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
My output is as expected, but not approved by the validator
This code I've written reads the words from a certain file and connects them into a chain in accordance with the given principle. Without the last snippet (the one after the last comment line), it would just output the longest chain possible, composed from the input words. Then the code would meet
09.01.2025
75
views
7
comments
2
Evgeniia Shabaeva
Level 35
Budapest
Question about the task
Phone number verification
Java Multithreading
,
Level 2
,
Lesson 13
Resolved
I've got all the suggested phone numbers false:)
I might've got thins too complicated, so I'll publish my staff here. All the numbers I'm testing in the main method are marked as false. Is it the way I'm using regexes wrong, or my whole logic? I'd be grateful for some guidance:)
10.01.2025
64
views
6
comments
0
Evgeniia Shabaeva
Level 35
Budapest
Question about the task
Prices 2
Java Core
,
Level 8
,
Lesson 11
Resolved
How to deal with the incoming arguments properly
I've been actually doing this task with pleasure, as it's similar to what I've done before. At this stage, it meets all the requirements except the 2nd one, which is: When you run the program without arguments, the product list must remain unchanged. At the moment the line checking for that in my c
16.09.2024
96
views
2
comments
0
Evgeniia Shabaeva
Level 35
Budapest
Question about the task
Counting words
Java Core
,
Level 9
,
Lesson 5
Resolved
Not enough or too many (why?)
I'm counting how many times the word "world" occurs in a certain file. I've tried to ways: 1) if (words[i].equalsIgnoreCase("world")) count++; In this case my program does not find all the instances of "world" in the file. As there are probably words in the file that contain "world" but are not eq
17.09.2024
87
views
3
comments
0
Evgeniia Shabaeva
Level 35
Budapest
Question about the task
Duplicate text
Java Core
,
Level 9
,
Lesson 8
Resolved
Why am I not writing to a file?
This code I've written passes all the requirements except the last but one. The validator adds a message, "Be sure that the program writes data to the file". According to my understanding, the program does write data to the file (fileName) in line 26: fos.write(baos.toByteArray()); (where fos is
25.09.2024
69
views
2
comments
0
Evgeniia Shabaeva
Level 35
Budapest
Question about the task
Prevent cloning
Java Multithreading
,
Level 1
,
Lesson 8
Resolved
Why are C class objects still not cloned successfully?
I'm wondering why my code still doesn't meet the last requirement and the validator outputs that "C objects should be cloned successfully". I thought they were...
02.12.2024
71
views
2
comments
0
Evgeniia Shabaeva
Level 35
Budapest
Question about the task
Inverted words
Java Multithreading
,
Level 2
,
Lesson 9
Under discussion
The output is correct, what's missing?
Well, this code of mine produces the expected output when tested. However, it doesn't meet the last requirement, which is actually about getting the pairs right. What am I missing?
06.01.2025
63
views
3
comments
0
Salih Diril
Level 19
Istanbul
Question about the task
2 arrays
Java Syntax
,
Level 6
,
Lesson 4
Under discussion
Can't pass validation for 2 Arrays task, pls help
My solution is fine I think but it doesn't pass the verification. Could you tell me why?
05.01.2025
48
views
2
comments
0
Sandeep
Level 14
Greensboro
Question about the task
Chess board
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
Able to print chessboard in both odd and even cases
Able to print chessboard in both odd and even cases, but its throwing The program needs to display the elements of the array on the screen error
23.07.2024
146
views
6
comments
0
Kingpvz
Level 23
Under discussion
This is a certified <введенная строка> moment.
Good job translators.
21.12.2024
104
views
0
comments
0
William Caesar
Level 7
United States of America
Question about the task
Price of apples
Java Syntax
,
Level 3
,
Lesson 4
Under discussion
My solution does not pass the requirements
The requirements are: ✅ The program should display text on the screen. ❌The Apple class's addPrice method should not display text on the screen. ✅ The Apple class's applePrice variable must be a static int initialized to zero. ❌ The main method should call the addPrice method only twice. ❌ The Apple
22.12.2024
63
views
1
comment
0
Henrique
Level 41
São Paulo
Question about the task
Autoboxing features (part 2)
Java Multithreading
,
Level 9
,
Lesson 7
Resolved
no idea help pls
a
18.08.2020
683
views
7
comments
0
Shubham Patil
Level 5
Kolhapur
Question about the task
Getting the length of a string
Java Syntax
,
Level 2
,
Lesson 3
Under discussion
help
what actually do in this can we need to add new strings or not
19.11.2022
609
views
3
comments
0
Muhammad Umar
Level 1
-
Question about the task
I think being a programmer is cool
Java Syntax
,
Level 1
,
Lesson 2
Under discussion
i didn't understand how to code
11.09.2024
124
views
5
comments
0
nickyy
Level 18
Diou
Question about the task
Creating threads recursively
Java Core
,
Level 6
,
Lesson 13
Under discussion
I got smth wrong?
I d'ont understand it it seems to me that the output is correct, the checks are in place and I use the run method as a recursive threag generator. I am not very clear on what I am missing here. Could you give a hand? :)
11.09.2020
3759
views
4
comments
0
tanaka
Level 6
Tokyo
Question about the task
Chess board
Java Syntax
,
Level 6
,
Lesson 5
Under discussion
I can NOT complete the fourth "Requirements".
I can't complete the fourth "Requirements". I don't know what I'm doing wrong. If you enter an even number, it will be displayed as follows: 6 # # # # # # # # # # # # # # # # # # Odd number: 5 # # # # # # # # # # # # # Could you help me identify what's causing this?
23.11.2024
97
views
3
comments
0
Christy
Level 5
Question about the task
Working with elements of an array
Java Syntax
,
Level 5
,
Lesson 0
Under discussion
Are the values in the array changed?
Are the values in this array changed when the sign is changed? I believe once you declare an array, you can't change the values in it.
20.11.2024
82
views
3
comments
0
Christy
Level 5
Under discussion
Mantissa- why is the first digit not included?
I'll put the link to the page and the issue I'm querying right here as the system won't let me put the link in the first field. Link : https://codegym.cc/quests/lectures/en.questsyntaxpro.level04.lecture07 (Number 3). My question is not re: a task but the theory part of this lesson (specifically nu
19.11.2024
72
views
2
comments
0
Augusto Ghio
Level 4
Question about the task
Drawing a triangle
Java Syntax
,
Level 4
,
Lesson 7
Under discussion
code is ok, but compilier goes nuts
int n=8 ; int m=1 ; int s=1 ; for(int i=1; i<11; i++){ System.out.println(n*s) ; m=m*10 ; s=s+m ; } output goes well until the last loop, where it goes something like 23564365 for no reason
18.11.2024
61
views
1
comment
0
A Man
Level 2
-
Question about the task
My young friend
Java Syntax
,
Level 1
,
Lesson 4
Under discussion
Should we stick to procedure?
I think it doesn't matter if you know how to do it the complex way... for instance public class Solution { public static void main(String[] args) { int x = 3126 int y = 8 int z = (x-y) System.out.println("My Friend's Birth Year: " + z); } } I think the app
05.11.2024
91
views
1
comment
0
A Man
Level 2
-
Question about the task
No comments needed
Java Syntax
,
Level 1
,
Lesson 7
Under discussion
Logic?
Wow! Lots of questions on how to solve this. It requires logic. Your x and y changes as you apply the math and adhere to the task conditions. Now, sometimes you need to take things one at a time. int x = 2; //This clearly tells you the variable x is 2 int y = 12; //This also tells you the va
05.11.2024
71
views
0
comments
0
ewhwj
Level 1
Under discussion
dnsna an sode!
samera(__6__) SERA app SGrla8 { { { { {.exe/sons-in-law((the best//
31.10.2024
70
views
0
comments
0
Dinesh
Level 7
Delhi
Question about the task
Minimum of two numbers
Java Syntax
,
Level 2
,
Lesson 8
Under discussion
whats wrong with my if else condition?
package com.codegym.task.task02.task0214; /* Minimum of two numbers */ public class Solution { public static int min(int a, int b) { //write your code here int minimum; if (a < b) { minimum=a; else minimum=b; }return
29.02.2020
1365
views
12
comments
0
Evgeniia Shabaeva
Level 35
Budapest
Question about the task
Reading and writing to a file: CodeGym
Java Core
,
Level 10
,
Lesson 2
Resolved
Why is my "users" list still empty after all I've done?
It's probably time to ask for help. Below is the code I've written. I keep getting the 2nd requirement wrong, and the tip from the validator is, "Check why the users list is empty after the file has been read". I understand that the problem must be with the load method that doesn't do what I'm makin
06.11.2024
124
views
16
comments
0
Sam
Level 2
Delhi
Question about the task
Where does a Person come from?
Java Syntax
,
Level 2
,
Lesson 2
Resolved
I don't get it ..isn't it right? still says: In the main method, create a Person object and immediately assign a reference to it to the variable person. ??
package com.codegym.task.task02.task0202; /* Where does a Person come from? */ public class Solution { public static void main(String[] args) { //write your code here Person Person = new Person(); } public static class Person { //write your code here
19.08.2018
3156
views
17
comments
0
Christy
Level 5
Under discussion
Please critique the code below and explain how and why I can write it better...
I understand that the variable names can be a bit more concise and relevant and also that the 'b' variable is redundant. However if I delete the b variable and I run the code, I get a multiplication table that prints up to num * 9 (it should print up to num * 10). At the end of the code, if I remove
02.11.2024
68
views
5
comments
0
SOUFIANE DAHIMI
Level 32
Marrakech
Question about the task
A switch for threads
Java Multithreading
,
Level 5
,
Lesson 5
Under discussion
Please what's wrong with this code
I don't know why the requirements are not met
10.04.2020
897
views
7
comments
0
mortarz
Level 1
Ceske Budejovice
Question about the task
Amigo is very smart
Java Syntax
,
Level 1
,
Lesson 1
Under discussion
What am I doing wrong? I don't understand the error message
Why is the following code wrong? I copied it from the article that was supposed to teach me. public class Solution //swapped "house" for "solution { public static void main (String[] args) //there is never explained what exactly this line do ... { System.out.println("Amigo is very smart");
02.11.2024
117
views
1
comment
0
Michal
Level 26
Lodz
Question about the task
New functionality!
Java Multithreading
,
Level 5
,
Lesson 2
Under discussion
This entire course is a joke
11.06.2020
485
views
3
comments
0
Show more
1
2
3
4
...
371
Please enable JavaScript to continue using this application.