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
  • Sidd
    Level 7
    Maple Valley
    Question about the task Bouncer policy
    Java Syntax, Level 4, Lesson 6
    Under discussion
    ??I have done this fine, it works in Intellij Id but on codegym it just throws exceptions I dunno why.
    • 15.05.2020
    • 819views
    • 7comments
    0
  • LuisRC
    Level 39
    Gijón
    Question about the task Replacing numbers
    Java Core, Level 9, Lesson 11
    Resolved
    HelpHi there, Where's my code wrong? It didn't pass validation. btw. I was looking for the appropriate REGEX for this taks with the following conditions: * 1 dollar must be replaced by one dollar * dollar 1 must be replaced by dollar one * 1dollar must not be replaced * dollar1 must not be replaced I wo
    • 22.04.2022
    • 773views
    • 4comments
    0
  • Marko Ressler
    Level 7
    Leoben
    Question about the task Filling an array
    Java Syntax, Level 6, Lesson 8
    Under discussion
    Why is this wrong?I get good results for even and odd lengths but it says it's not ok for odd ones. Anyone can help?
    • 14.04.2022
    • 444views
    • 6comments
    0
  • Mary Khan
    Level 23
    Russia
    Question about the task Set of plants
    Java Syntax, Level 14, Lesson 3
    Under discussion
    Why I can't pass code validation with Arrays.AsList?Why I can't pass code validation with Arrays.AsList? public class Solution { public static void main(String[] args) { Set mySet = new HashSet(Arrays.asList("watermelon", "banana ","cherry","pear","cantaloupe","blackberry","ginseng","strawberry", "iris", "potato"));
    • 17.04.2022
    • 608views
    • 3comments
    0
  • sam void mean (<_____>)
    Level 4
    United States of America
    Question about the task This age doesn't work for me…
    Java Syntax, Level 3, Lesson 4
    Under discussion
    Person person = new Person();Hi everybody, can someone explain to me this line of code ? I am having hard time understanding the main purpose of this code: Person person = new Person(); or Cat cat1 = new Cat(); Thank you , Sam
    • 18.02.2022
    • 847views
    • 4comments
    0
  • LuisRC
    Level 39
    Gijón
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Under discussion
    Struggling with this takHi there, I've been struggling with this task for days and still I'm not able to get it validated. Any help, please?
    • 16.04.2022
    • 377views
    • 5comments
    0
  • Yordan Popov
    Level 12
    Asenovgrad
    Under discussion
    IDE error. https://drive.google.com/file/d/13BVaRD2k04dt1ZwjxJ9VXzY_xRZmeJ5K/view?usp=sharing
    • 12.04.2022
    • 501views
    • 2comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Make a word chain
    Java Multithreading, Level 2, Lesson 9
    Resolved
    Please helpMy code works for the task example. I would have expected it to fail: All words passed to the getLine method must be included in the resulting string, if possible. as if there is a word that doesn't fit in with the word chain, I would have an infinite loop. I especially don't understand why it's f
    • 16.02.2021
    • 849views
    • 6comments
    1
  • PeterC
    Level 28
    France
    Question about the task Path update
    Java Syntax, Level 9, Lesson 5
    Resolved
    Simple regex not passing.Why it does not want to pass? The result is correct.
    • 09.10.2021
    • 609views
    • 4comments
    0
  • Marilyn
    Level 17
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Why is the third condition not satisfied?Why is the third condition not satisfied?
    • 30.10.2021
    • 713views
    • 3comments
    0
  • Radon Gawn
    Level 14
    United States of America
    Question about the task Hexadecimal converter
    Java Syntax, Level 9, Lesson 2
    Under discussion
    Can you find help me understand why this is failing the toHex(int) requirement? Can you find help me understand why this is failing the toHex(int) requirement?
    • 08.04.2022
    • 490views
    • 1comment
    0
  • Nyarlathotep
    Level 34
    Question about the task Counting words
    Java Core, Level 9, Lesson 5
    Under discussion
    Local tests pass with multiple solutions but last requirement doesn't verifyHi, I have tried multiple solutions (attached is one) and tested with several local text files - using various combinations - but still fail to verify the last requirement even though I get the same results across my solutions, as well as the Codegym's solution. The core difference between my solu
    • 08.04.2022
    • 457views
    • 1comment
    0
  • Kiran Kumar Alisam
    Level 8
    Erie
    Question about the task Somehow average
    Java Syntax, Level 4, Lesson 16
    Under discussion
    where am i thinking wrong in the below scenarioBufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int a= Integer.parseInt(reader.readLine()); int b= Integer.parseInt(reader.readLine()); int c= Integer.parseInt(reader.readLine()); if((a==b) && (b==c) && (a==c)){
    • 08.04.2022
    • 536views
    • 1comment
    0
  • public enum WaysToDie
    Level 23
    Denver
    Question about the task Remembering geometry
    Java Syntax, Level 7, Lesson 7
    Under discussion
    Using the final keywordI have added the final keyword to all the constants in the class. Yet the code still fails
    • 18.12.2021
    • 470views
    • 5comments
    0
  • Daniel Whyte
    Level 17
    Question about the task Who called me?
    Java Syntax, Level 9, Lesson 2
    Under discussion
    Thread.currentThread().getStackTrace()[2]What is the significance of referencing the number 2 in the index. My thinking would be that it wants to reference the previous stack so surely it should be a 1 because we start counting from zero?
    • 02.03.2021
    • 1140views
    • 3comments
    0
  • MakinTosH
    Level 20
    Vilnius
    Question about the task Shall we play?
    Java Core, Level 6, Lesson 13
    Resolved
    Help understand the outputI get this output when I run my code. In my opinion it displays all the information correctly. What's wrong? Smith:Start game Jones:Start game Gates:Start game Gates:Gather resources Smith:Gather resources Gates:Grow economy Gates:Kill enemies Smith:Grow economy Gates:won! Jones:lost Smith:lost Pr
    • 07.05.2019
    • 2052views
    • 7comments
    1
  • Jcode
    Level 27
    Under discussion
    Cat or Tiger?Below are the instructions from Java Core Level 4, Lesson 3 Type casting. Widening and narrowing conversions My question is simple yet I can't establish an answer (that makes sense to me). Why would I need a type variable as a Cat and then assign it to a new object Tiger? It's a Tiger so should a
    • 03.04.2022
    • 1163views
    • 14comments
    0
  • Corly Boy
    Level 11
    Bucharest
    Question about the task Drawing a rectangle
    Java Syntax, Level 4, Lesson 6
    Under discussion
    What am I not doing right?Hi, it looks like I don't understand what I'm being asked to do. The program shows me a rectangle of 8, however it gives me the error: Be sure that you have displayed the correct number of rows. Can you guide me somehow? thanks
    • 05.04.2022
    • 479views
    • 1comment
    0
  • LuisRC
    Level 39
    Gijón
    Question about the task Even characters
    Java Core, Level 9, Lesson 5
    Under discussion
    Time outHi there, I try to get this task validated for two times and using different code but every time I got a "Time Out". I have already ran my code on my IDE and it seems to work, One question, the read file should be fully read before writing it on the write file?
    • 04.04.2022
    • 525views
    • 3comments
    0
  • lewis wakefield
    Level 0
    Under discussion
    credit repairsGood news I came across NEW HORIZON CREDIT 1 , I used to have a lot of sleepless nights due to my low (FICO) credit score that was below expectations ,and I couldn't access loans and mortgages for the new house I was about buying for me and my lovely wife .   New horizon credit1 has been able t
    • 04.04.2022
    • 441views
    • 0comments
    2
  • J
    Level 6
    Tipp City
    Under discussion
    do nothing???I've met all requirements except 'display no results if number is outside of 1-999'. After working so hard to get responses... I certainly thought it'd be easier to get no response 🤔😆 I've also tried this ending in just else{}, along with other multiple options 🤷‍♀️
    • 02.04.2022
    • 495views
    • 1comment
    0
  • Piotr Wikarski
    Level 19
    Birmingham
    Under discussion
    New advance CodeGym courses - available when?Do anyone know when roughly the other advance courses: "SQL & Hibernate" and "JSP & Services" are going to be available.??
    • 19.09.2019
    • 1777views
    • 5comments
    2
  • LuisRC
    Level 39
    Gijón
    Question about the task Prices 2
    Java Core, Level 8, Lesson 11
    Under discussion
    What is not working?Hi there, First, is the logic of this solution right? Second, what is not working in this piece of code: int index = 0; while(index < products.size()){ Product product = new Product(products.get(index).id, products.get(index).productName, products.get(index).
    • 31.03.2022
    • 873views
    • 22comments
    0
  • Mike S
    Level 28
    Saint Louis
    Question about the task Shuffled just in time
    Java Syntax, Level 13, Lesson 7
    Under discussion
    Infinite Loop? How??Greetings friends, this exercise is driving me crazy on several accounts, but I'll just highlight one. The compiler claims I have an infinite loop in my while() statement. How is this the case? I have a list of set length. The code is written correctly as far as I can tell. Anyone see anything that
    • 31.03.2022
    • 578views
    • 2comments
    0
  • Michal
    Level 26
    Lodz
    Question about the task Max constructors
    Java Syntax, Level 5, Lesson 9
    Under discussion
    This course is totaly pointlessI really see no point in payng for a course in which: - im given very brief and chaotic explanations of every subject - then Im asked to do things which were not explained before - tasks eplanations are harder to understand than the task itself - then the only thing i can do is to copy and paste a s
    • 27.02.2020
    • 1133views
    • 4comments
    2
  • Gabriel Silva
    Level 5
    Toronto
    Question about the task 18+
    Java Syntax, Level 3, Lesson 8
    Under discussion
    What is wrong?I do not understand what is wrong here, if I put an input less than 18 it shows the message.
    • 21.03.2022
    • 383views
    • 3comments
    0
  • chinna gnanesh
    Level 9
    Chennai
    Question about the task Let's put together a rectangle
    Java Syntax, Level 5, Lesson 7
    Under discussion
    Help meHElp me
    • 10.06.2019
    • 1379views
    • 3comments
    0
  • windowsGamer
    Level 2
    Olsztyn
    Under discussion
    RobuxRobxu free
    • 29.03.2022
    • 476views
    • 0comments
    0
  • B. C
    Level 2
    Tempe
    Under discussion
    Unable to access subscriptionsomehow i have 2 accounts set up- it's taking me through the CAPTCH hell and not letting me log in - it says i have 'no subscription' when it's actually paid for
    • 26.03.2022
    • 493views
    • 0comments
    0
  • B. C
    Level 2
    Tempe
    Under discussion
    need to access my accounts: unable to access the paid accounthelp!!!!!!!!!!! it's putting me through the captcha hell of non-stop picture verification
    • 26.03.2022
    • 415views
    • 0comments
    0
  • 1
  • ...
  • 45
  • 46
  • 47
  • 48
  • 49
  • ...
  • 372
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 © 2025 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2025 CodeGym