CodeGym
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
  • Anthony Chalk
    Level 30
    London
    Question about the task Refactoring, anonymous classes
    Java Multithreading, Level 4, Lesson 9
    Under discussion
    Completely lostI have 12 errors in my code and I just have no idea how to do this one
    • 2/24/21
    • 812views
    • 4comments
    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}";
    • 2/24/21
    • 610views
    • 2comments
    0
  • Tangerin
    Level 27
    Chongqing
    Question about the task Clocks
    Java Core, Level 6, Lesson 7
    Under discussion
    Infinite loop? Can't figure it outCodeGym 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!
    • 7/16/19
    • 1568views
    • 4comments
    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
    • 2/23/21
    • 754views
    • 2comments
    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.
    • 2/23/21
    • 633views
    • 5comments
    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?
    • 2/23/21
    • 505views
    • 1comment
    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 situationI 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
    • 2/21/21
    • 591views
    • 4comments
    0
  • sergio
    Level 30
    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?
    • 2/22/21
    • 560views
    • 2comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Black box
    Java Multithreading, Level 4, Lesson 4
    Resolved
    Matches example outputI 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
    • 2/23/21
    • 575views
    • 0comments
    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
    • 2/19/21
    • 757views
    • 4comments
    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.
    • 2/22/21
    • 624views
    • 1comment
    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 ideaDon't know how to count 1, if all numbers are equal. Any clue, please?
    • 2/23/21
    • 666views
    • 1comment
    0
  • Sinisa
    Level 11
    Banja Luka
    Question about the task Console-based piggy bank
    Java Syntax, Level 5, Lesson 12
    Resolved
    Scanner inputHello, 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?
    • 2/22/21
    • 758views
    • 1comment
    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 thatCode 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);
    • 2/22/21
    • 505views
    • 2comments
    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.
    • 9/15/19
    • 1587views
    • 2comments
    0
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task Snake (Part 11/20)
    Games, Level 0, Lesson 1
    Resolved
    Help MEPlease Help
    • 9/10/19
    • 1851views
    • 16comments
    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 .
    • 2/18/21
    • 647views
    • 2comments
    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 logicOK, 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
    • 2/22/21
    • 766views
    • 5comments
    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
    • 4/5/19
    • 1428views
    • 4comments
    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
    • 12/22/20
    • 619views
    • 1comment
    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?
    • 1/29/20
    • 1031views
    • 5comments
    0
  • sergio
    Level 30
    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
    • 2/19/21
    • 701views
    • 2comments
    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
    • 12/4/19
    • 1376views
    • 6comments
    0
  • Daniel Whyte
    Level 17
    Question about the task Cat code won't compile
    Java Syntax, Level 7, Lesson 12
    Under discussion
    @OverrideWhy apply @Override at the end? What is the risk of error?
    • 2/20/21
    • 940views
    • 8comments
    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?
    • 2/21/21
    • 611views
    • 3comments
    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.
    • 2/20/21
    • 659views
    • 4comments
    0
  • TaoLu
    Level 20
    泾县
    Under discussion
    An error occurred: APP_PUBLISH_ERRORAn error occurred during verification when i run task of Minesweeper (Part 16/16)
    • 2/21/21
    • 687views
    • 0comments
    1
  • TaoLu
    Level 20
    泾县
    Under discussion
    Task number and link of task pagehow 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 ?
    • 2/21/21
    • 490views
    • 1comment
    1
  • Raed Saleh
    Level 25
    Amman
    Question about the task Tracking changes
    Java Core, Level 9, Lesson 11
    Under discussion
    this task wont verifywhy this task wont verify I would be grateful if some one help me out thanks
    • 2/20/21
    • 824views
    • 2comments
    0
  • Mohammed Alderweesh
    Level 13
    Dhahran
    Question about the task Target locked!
    Java Syntax, Level 4, Lesson 6
    Under discussion
    This should work!!!!I crossed referenced it with the solution they give and it is the same, but it says that the tasks are un-met. I would appreciate any help. Thank you.
    • 2/20/21
    • 690views
    • 4comments
    0
  • 1
  • ...
  • 86
  • 87
  • 88
  • 89
  • 90
  • ...
  • 374
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning, and a Java developer’s career.
Follow us
Interface language
English
Deutsch Español हिन्दी Français Português Polski বাংলা 简体中文 मराठी தமிழ் Italiano Bahasa Indonesia 繁體中文 Nederlands 日本語 한국어 Bulgarian Danish Hungarian Basa Jawa Malay Norwegian Romanian Swedish Telugu Thai Українська Filipino Turkish Azərbaycan Русский Vietnamese
Programmers Are Made, Not Born © 2026 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2026 CodeGym