Christmas Sale
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 32
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
33
views
5
comments
0
Evgeniia Shabaeva
Level 32
Budapest
Question about the task
Phone number verification
Java Multithreading
,
Level 2
,
Lesson 13
Under discussion
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
10
views
1
comment
0
Evgeniia Shabaeva
Level 32
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
81
views
2
comments
0
Evgeniia Shabaeva
Level 32
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
76
views
3
comments
0
Evgeniia Shabaeva
Level 32
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
55
views
2
comments
0
Evgeniia Shabaeva
Level 32
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
58
views
2
comments
0
Evgeniia Shabaeva
Level 32
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
45
views
5
comments
2
Evgeniia Shabaeva
Level 32
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
35
views
3
comments
0
Developing Badger
Level 6
Under discussion
Is anyone else having an issue with syncing the newest Codegym plugin to Intellij?
Once I updated my Codegym plugin to the newest version " 231.1.20 ", it is not syncing properly. The tasks I have already completed on the Codegym site are showing incomplete, and I have even tried to complete them again, it just tells me they have already been completed. Is there anyway to make it
04.01.2025
21
views
1
comment
0
Salih Diril
Level 15
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
30
views
2
comments
0
Sandeep
Level 9
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
109
views
6
comments
0
Kingpvz
Level 19
Under discussion
This is a certified <введенная строка> moment.
Good job translators.
21.12.2024
78
views
0
comments
0
William Caesar
Level 4
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
45
views
1
comment
0
Kingpvz
Level 19
Question about the task
Generics and students
Java Syntax
,
Level 13
,
Lesson 7
Under discussion
I have no idea
I even check the correct code and it appears mine is literally the same thing. What's wrong?
29.11.2024
99
views
2
comments
0
Ku Yew Siang
Level 30
Sekudai
Question about the task
Restaurant (part 3)
Java Multithreading
,
Level 9
,
Lesson 15
Resolved
tried almosy 40 times.
What is wrong here? It doesnt verify despite my console output is correct
23.06.2019
1547
views
6
comments
2
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
665
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
562
views
3
comments
0
Slobodianiuk Anna
Level 1
New
new password
How can I set a new password if I forget my old password?
05.12.2024
36
views
0
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
98
views
5
comments
0
Chris Hilborne
Level 26
Sanlucar de Barrameda
Question about the task
This age doesn't work for me…
Java Syntax
,
Level 4
,
Lesson 1
Under discussion
hint for everyone who is struggling
Hi guys, in the adjustAge method you need to think about what type of variable you are working with: if it's a static variable, I.e. it belongs to the CLASS of person - then it should be declared as static if it's an instance variable, i.e. it only belongs to this instance of the person class (t
16.02.2020
1594
views
5
comments
9
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
728
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
81
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
71
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
51
views
2
comments
0
Travis McKinstry
Level 9
United States of America
Question about the task
Interval
Java Syntax
,
Level 3
,
Lesson 7
Resolved
This code is correct, yet it fails. Why?
Why does the following solution not work? if(a < 100 && a > 50) { System.out.println("The number " + a + " is in the interval."); } else { System.out.println("The number " + a + " is not in the interval."); }
04.11.2021
627
views
7
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
45
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
78
views
1
comment
0
Evgeniia Shabaeva
Level 32
Budapest
Question about the task
Number algorithms
Java Core
,
Level 10
,
Lesson 10
Under discussion
Don't I return the expected array of numbers?
I have quite a story with this task. First, none of the requirements was met, even though the output was as expected. Then I changed the Math.pow(...) method for my own digitToThePower(long a, long b) to save time and space in memory (as I understood from the help section that might be the problem).
14.11.2024
72
views
4
comments
0
Jo88
Level 4
Boston
Question about the task
Currency exchange
Java Syntax
,
Level 3
,
Lesson 3
Under discussion
Over thinking ever single exercise
Will the exercises become second nature after more practice? will this website give me an opportunity for more practice? it seems I need help on every problem...only to find out these should be taking 2 minutes with simple short solutions.. I often find myself seeing the solutions to my problems an
03.06.2020
797
views
6
comments
3
ewhwj
Level 1
Under discussion
even if you want mokop!
edge {} app sera (8) email/[1/8) { {. } {. samera _. _. ™ {
31.10.2024
52
views
1
comment
0
Show more
1
2
3
...
370
Please enable JavaScript to continue using this application.