Promotion
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
Zach
Level 22
Fort Collins
Question about the task
We don't need repeats
Java Syntax
,
Level 8
,
Lesson 8
Under discussion
Why an concurrent error even though I'm using an Iterator
I don't know why I am getting this error with an iterator. If I didn't have to use the other method I could probably solve this. Thanks for your help. package com.codegym.task.task08.task0817; import java.util.HashMap; import java.util.Map; import java.util.Iterator; /* We don't need repeats
24.02.2021
397
views
1
comment
0
Anthony Chalk
Level 30
London
Question about the task
Refactoring, anonymous classes
Java Multithreading
,
Level 4
,
Lesson 9
Under discussion
Completely lost
I have 12 errors in my code and I just have no idea how to do this one
24.02.2021
662
views
4
comments
0
Vincenzo Seggio
Level 28
Question about the task
Phone number verification
Java Multithreading
,
Level 2
,
Lesson 13
Resolved
How does it work?
Hi people, i try to check the 3. Verification criteria of the task: 3) the number may contain 0-2 non-consecutive '-' characters with public class Test { public static void main(String[] args) { String s = "+3805012f3-45-67"; //s = "A"; String regex = "[-]{0,2}";
24.02.2021
520
views
2
comments
0
Tangerin
Level 27
Chongqing
Question about the task
Clocks
Java Core
,
Level 6
,
Lesson 7
Under discussion
Infinite loop? Can't figure it out
CodeGym gives me this warning but in IDEA everything worked just fine. The program quits itself as soon as "Double Check" shows up. Also please remove the "Thread.stop()", that's not part of my code. Thanks!
16.07.2019
1394
views
4
comments
0
Molly Garnett
Level 1
Under discussion
Why does 'return' in this case exit the loop?
This is an example from Java in Two Semesters 6.8.3 static boolean containes(int[] arrayIn, int valueIn) { for (int currentElement : arrayIn) { if (currentElement == valueIn) { return true; // exit loop early if value found } } return false; // value not present } It says that the RETURN TRUE wi
23.02.2021
643
views
2
comments
0
Gellert Varga
Level 23
Szekesfehervar
Question about the task
Robot wars
Java Core
,
Level 3
,
Lesson 11
Resolved
Robot wars: wars with the verifier
I have yet to practice interpreting the logic of the verifier = I have not the faintest idea what its problem is.
23.02.2021
526
views
5
comments
0
Damian
Level 18
Lublin
Under discussion
What does it mean?
What is this notation of numbers? 1234_564_890L 0b1000_1100_1010 110_987_654_6299.123_34 What are these spaces for? What is 0b for at the beginning? What is going on here?
23.02.2021
421
views
1
comment
0
Goran
Level 41
Belgrade
Question about the task
Read online about the median of a sample
Java Multithreading
,
Level 6
,
Lesson 2
Resolved
I solved task but there is some strange situation
I have passed task but when I tested my code I had wrong output. If you run code from below you will get results like there was no sort(test); command. Can some one explain why is this happening ? Integer[] test = {13, 8, 15, 5, 17}; sort(test); for (int i = 0; i < te
21.02.2021
493
views
4
comments
0
sergio
Level 8
Bogota
Question about the task
Streets and houses
Java Syntax
,
Level 7
,
Lesson 4
Archived
This tasks keeps showing me this message: EditorConfigTokenType.SEPARATOR expected, got '.'
This tasks keeps showing me this message: EditorConfigTokenType.SEPARATOR expected, got '.' on lines 33 and 35, is it an issue with Intelijj Idea?
22.02.2021
455
views
2
comments
0
Anthony Chalk
Level 30
London
Question about the task
Black box
Java Multithreading
,
Level 4
,
Lesson 4
Resolved
Matches example output
I also tried removing the "\n" from the SecondClass's SPECIFIC_ACTION_FOR_ANONYMOUS_SECOND_CLASS_PARAM. When I did that, it passed the first condition but still failed the other two Edit: I overrode the anonymous FirstClass's someAction() method and called the parent class method This solved the 3
23.02.2021
474
views
0
comments
0
MoJo
Level 23
Cairns
Question about the task
Word search
Java Core
,
Level 10
,
Lesson 10
Resolved
Last condition "Retruned List is not the right size"
First of all, sry my code looks like a mess. So i know that it might be possible that a word starts on the same letter but i thought once a letter is used in a found word it is used up. Example: a b c d ef g hi 1 x x x x x x l x x 2 x x x x o x x x x 3 x x o x x x x x x 4 x c x x x x x x x 5 x x
19.02.2021
648
views
4
comments
0
Daniel Whyte
Level 17
Question about the task
Returning a stack trace
Java Syntax
,
Level 9
,
Lesson 2
Under discussion
Thread.currentThread()
What is the significance of Thread.currentThread() I've tried looking it up but I'm not sure what it's actually doing.
22.02.2021
527
views
1
comment
0
Maxim Raitin
Level 20
Tomsk
Question about the task
Longest sequence
Java Syntax
,
Level 8
,
Lesson 6
Under discussion
This code works in intellij idea
Don't know how to count 1, if all numbers are equal. Any clue, please?
23.02.2021
567
views
1
comment
0
Sinisa
Level 11
Banja Luka
Question about the task
Console-based piggy bank
Java Syntax
,
Level 5
,
Lesson 12
Resolved
Scanner input
Hello, I want to solve this task via using Scanner, however it is not catching the exception i.e. input of the string 'sum' properly. Any suggestions?
22.02.2021
650
views
1
comment
1
Anatoly
Level 17
Question about the task
Writing to a file from the console
Java Core
,
Level 3
,
Lesson 11
Resolved
Validator is wrong with that
Code works perfectly fine! public class Solution { public static void main(String[] args) throws IOException { // write your code here BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String st = br.readLine(); File file = new File(st);
22.02.2021
414
views
2
comments
0
Letenyei Ádám
Level 16
Bakonyszombathely
Question about the task
Snake (Part 11/20)
Games
,
Level 0
,
Lesson 1
Under discussion
I can't find the right answer. Please help me.
The last condition is not right. Please help me to find the problem.
15.09.2019
1452
views
2
comments
0
Satya Vath
Level 31
Vijayawada
Question about the task
Snake (Part 11/20)
Games
,
Level 0
,
Lesson 1
Resolved
Help ME
Please Help
10.09.2019
1717
views
16
comments
0
Steve Bennett
Level 18
Stoneleigh
Question about the task
Snake (Part 7/20)
Games
,
Level 0
,
Lesson 1
Under discussion
Why do none of the UTF-16 Codes show actual images in the Game Screen?
I've done these games twice over to get my practice in , but whats doing my nut is the images that are supplied from CodeGym only appear as 5 lines when testing the games. Is this a setting issue or an out of date issue? Many thanks for any info guys .
18.02.2021
556
views
2
comments
0
Andrei
Level 41
Question about the task
Contextual advertising
Java Core
,
Level 9
,
Lesson 11
Resolved
How does this work? I can't understand ... Please explain the logic
OK, so I copied the code from Johannes in hopes that I would be able to understand it and rewrite it myself, from memory. But no matter how I tried, I couldn't figure out the logic. Let me explain what puzzles me: In line 10 we are attributing out a new stream. But that stream isn't configured abov
22.02.2021
662
views
5
comments
0
Wojtek
Level 23
Solec-Zdroj
Question about the task
Long words
Java Core
,
Level 9
,
Lesson 11
Under discussion
What is wrong?
Input: politechnika,autonomia,wojtas,gra,polistanczysk jareksamoraj,cc,chingismog,uu,tttttttt Output: politechnika,autonomia,polistanczysk,jareksamoraj,chingismog,tttttttt
05.04.2019
1304
views
4
comments
0
wissem hajbi
Level 7
Under discussion
secret key
i had a mistake in entering the secret key in the plugin when i started using it . how can i re enter the secret key again please ? urgent
22.12.2020
502
views
1
comment
0
Angelika
Level 25
Budapest
Question about the task
Replacing numbers
Java Core
,
Level 9
,
Lesson 11
Archived
Could anyone help me?
My solution seems good to me, but not for codegym. what's the problem?
29.01.2020
924
views
5
comments
0
sergio
Level 8
Bogota
Question about the task
One large array and two small ones
Java Syntax
,
Level 7
,
Lesson 4
Resolved
I’ve been trying, but last condition not met, thanks in advance
I’ve been trying, but last condition not met, thanks in advance
19.02.2021
592
views
2
comments
0
Jason
Level 26
Rancho Cucamonga
Question about the task
Serialization is prohibited
Java Core
,
Level 10
,
Lesson 10
Resolved
I don't know any other way to throw an exception...
ummm... yeah... IDK
04.12.2019
1263
views
6
comments
0
Daniel Whyte
Level 17
Question about the task
Cat code won't compile
Java Syntax
,
Level 7
,
Lesson 12
Under discussion
@Override
Why apply @Override at the end? What is the risk of error?
20.02.2021
802
views
8
comments
0
BlueJavaBanana
Level 37
Question about the task
Fibonacci numbers using recursion
Java Collections
,
Level 4
,
Lesson 2
Resolved
Does this need to be solved with one method?
Do I need to solve this task within this method? public int fibonacci(int n) { return 0; } Or will I need to make a helper method that uses arrays to keep track of the n-1, n-2?
21.02.2021
503
views
3
comments
0
Max
Level 5
Stamford
Question about the task
Adding
Java Syntax
,
Level 4
,
Lesson 16
Under discussion
Need help
I can't find the error.
20.02.2021
564
views
4
comments
0
TaoLu
Level 20
泾县
Under discussion
An error occurred: APP_PUBLISH_ERROR
An error occurred during verification when i run task of Minesweeper (Part 16/16)
21.02.2021
569
views
0
comments
1
TaoLu
Level 20
泾县
Under discussion
Task number and link of task page
how to Enter the number or link to the task page is it https://codegym.cc/tasks/com.codegym.games.minesweeper.part16 or some code? How to view details for task number or page of link ?
21.02.2021
403
views
1
comment
1
Raed Saleh
Level 25
Amman
Question about the task
Tracking changes
Java Core
,
Level 9
,
Lesson 11
Under discussion
this task wont verify
why this task wont verify I would be grateful if some one help me out thanks
20.02.2021
689
views
2
comments
0
Show more
1
...
83
84
85
86
87
...
371
Please enable JavaScript to continue using this application.