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
  • Andrei
    Level 41
    Question about the task Phone number verification
    Java Multithreading, Level 2, Lesson 13
    Resolved
    2) if the number starts with a digit or opening parenthesis, then it must contain 10 digits. BUT the example they give, is false (0)501234567 - false2) if the number starts with a digit or opening parenthesis, then it must contain 10 digits This is considered to give a false - (0)501234567 - false What am I missing?
    • 02.04.2021
    • 611views
    • 3comments
    0
  • Max Sudik
    Level 41
    Vancouver
    Question about the task Shuffled just in time
    Java Syntax, Level 7, Lesson 12
    Under discussion
    Explain pls this "list.add(list.remove(0));"I just have a question about this part of code list.add(list.remove(0)); Can you pls explain the order of actions here? if remove(0) is performed first, how then add method knows what was in in the 0? It's basically self-explanatory, however, I didn't know we can add to the list and element whic
    • 31.03.2021
    • 560views
    • 5comments
    0
  • Josephine
    Level 26
    Normal
    Question about the task Build a WHERE query
    Java Multithreading, Level 2, Lesson 9
    Resolved
    Why this is not passing?Someone please helpWhy this is not passing?Someone please help
    • 01.04.2021
    • 756views
    • 6comments
    0
  • Nick Frase
    Level 8
    Salt Lake City
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Under discussion
    Why no Work!This should work, yet it is failing the requirement "The program should read 5 strings from the keyboard and write them to the list of strings". I even printed the strings ArrayList after adding all 5 strings and they were all added. :///
    • 01.04.2021
    • 396views
    • 2comments
    0
  • Andrei
    Level 41
    Question about the task Phone number verification
    Java Multithreading, Level 2, Lesson 13
    Resolved
    What is the point of this exercise? To learn REGEX or ... ? I mean we can find the validation code for a phone number online.Does anyone have an idea or why this exercise would be useful ? I mean it's not like you have to churn out prep code and think about the logic of the program (unless you want to go the route of if statements like I started). Is it worth trying to remember the regex combinations?
    • 01.04.2021
    • 625views
    • 3comments
    0
  • Mikayla Pace
    Level 27
    Salt Lake City
    Question about the task StringTokenizer
    Java Multithreading, Level 2, Lesson 13
    Resolved
    I already solved this problem, but I'm not sure why it works.Why does this loop update my String [] correctly: for (int i = 0; i < tokenArray.length;) { while (tokenizer.hasMoreTokens()) { String token = tokenizer.nextToken(); tokenArray[i] = token; i++; } But this does not? for (i
    • 22.01.2020
    • 1249views
    • 5comments
    0
  • gh0stl0nely
    Level 23
    Toronto
    Question about the task Counting words
    Java Core, Level 9, Lesson 5
    Under discussion
    Last condition not met.I assume that the sample input is something like => love?water!WorLd?H3lle In the case of -> worldworld234,ELSworldo2? , will the result be 2? or 0? The error message shows that I am not counting all the instances of "world", although I've already tested this solution locally. Essentially
    • 31.03.2021
    • 600views
    • 3comments
    0
  • Zach
    Level 22
    Fort Collins
    Question about the task Make a family
    Java Syntax, Level 8, Lesson 11
    Resolved
    Null Pointer exception??I'm not sure why I am getting a null pointer exception. Or could someone point me in the right direction where to put a try-catch block perhaps. thanks import java.util.ArrayList; public class Solution { public static void main(String[] args) { //write your code here
    • 22.02.2021
    • 1144views
    • 6comments
    0
  • Anna
    Level 13
    Gdańsk
    Under discussion
    Problem with IntelliJ pluginAfter downloading new plugin I have no access to any of my tasks: neither avaiable, in progress or closed, nothing. How can I fix this issue?
    • 14.03.2021
    • 399views
    • 0comments
    0
  • Haakco
    Level 2
    Fall River
    Under discussion
    short questondo i have to subscribe to continue doing tasks?
    • 14.03.2021
    • 483views
    • 0comments
    0
  • aem
    Level 22
    Amsterdam
    Under discussion
    Intellij Community Edition 2020.3 crashing after every task verificationHi All, I need your help! Installed Intellij CE 2020.3 on Ubuntu 20.04(fox). Every time I verify a task Intellij shuts down. Does someone has experience with this issue? Appreciate your help ;)
    • 08.03.2021
    • 448views
    • 0comments
    0
  • diconnect24
    Level 7
    Under discussion
    Jak zrozumieć to co sie znajduje w metodziewyswietlNajblizszaDziesiatce?Proszę o pomoc
    • 01.03.2021
    • 438views
    • 0comments
    0
  • Roni Ednei Almeida Lima
    Level 8
    Question about the task Minesweeper (Part 3/16)
    Games, Level 0, Lesson 0
    Resolved
    I need help ...I need help ...
    • 31.03.2021
    • 544views
    • 2comments
    0
  • gh0stl0nely
    Level 23
    Toronto
    Question about the task Picking out numbers
    Java Core, Level 9, Lesson 5
    Under discussion
    Local test passed with given input from the exercise - 5th condition still failed.Would love to see you guys' input on this one :-| I kinda like this approach better than the double for loop in the solution...
    • 31.03.2021
    • 453views
    • 2comments
    0
  • The Chief
    Level 18
    Question about the task Animal set
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Why can't I add to the pets set and remove elements individually?For this task, I initially tried to add all the cats and dogs to the pets set individually and remove the cats individually as demonstrated in the attached screenshot but the compiler wouldn't accept it. Can someone please tell me why?
    • 28.03.2021
    • 494views
    • 4comments
    0
  • Aryan Babaie
    Level 4
    Jülich
    Question about the task Minimum of four numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    why it goes so fasthey guys, I have done the task right but just wanted to see the right solution and when I saw it I just got blown away!! what is that actually? can someone explain it to me somehow? ( I mean the statement after "return")
    • 30.03.2021
    • 525views
    • 1comment
    0
  • Andrei
    Level 41
    Question about the task Inverted words
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    Nothing is being printed. Why?I went through the code and I feel it is ok. I even added a check to ensure no duplicates are added to the list (lines 45-49). Please ignore line 37. Yet nothing is printed.
    • 30.03.2021
    • 392views
    • 2comments
    0
  • Emanuele
    Level 12
    Under discussion
    java: package com.codegym.engine.cell does not existBuongiorno a tutti. Cercando di eseguire il codice in IntelliJ Idea, compare il messaggio in oggetto. Su CodeGym viene invece eseguito correttamente. Mi piacerebbe continuare lo sviluppo degli esercizi del corso in IntelliJ Idea. I precedenti esercizi che non richiedono il pacchetto com.codegym.engi
    • 30.03.2021
    • 701views
    • 1comment
    0
  • John
    Level 17
    Mansfield
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Under discussion
    what's wrong with my iterator?it says that package map2 not found even though I'm pointing to map2 Map when i try to create iterator
    • 28.03.2021
    • 708views
    • 14comments
    0
  • Daniel Whyte
    Level 17
    Question about the task Who's that smarty?
    Java Core, Level 3, Lesson 2
    Under discussion
    interface Secretary extends PersonI actually had no idea that an interface could extend a class
    • 30.03.2021
    • 412views
    • 1comment
    0
  • Sofia
    Level 2
    Thatta
    Question about the task We don't need any extra lines
    Java Syntax, Level 1, Lesson 7
    Under discussion
    please solve this code and teach me how you solve it ?package com.codegym.task.task01.task0123; /* We don't need any extra lines */ public class Solution { public static void main(String[] args) { int a = 10; int b = 15; double c = b + 38; int d = a + 12; double e = 12.3; String s = "s" + a;
    • 30.03.2021
    • 612views
    • 1comment
    0
  • Djordje
    Level 19
    Question about the task Number of letters
    Java Syntax, Level 10, Lesson 11
    Resolved
    What is wrong with this? When I run it, it shows exactly what was required.package com.codegym.task.task10.task1012; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; /* Number of letters */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader
    • 27.11.2018
    • 2063views
    • 7comments
    0
  • Khongpak Phupkdee
    Level 15
    Chiangrai
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Resolved
    Why I stuck 6 Object , when I created 6 Objs Completed? Please Help!Why I stuck 6 Object , when I created 6 Objs Completed
    • 28.03.2021
    • 459views
    • 2comments
    0
  • An Gelo
    Level 18
    Cebu
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Resolved
    remove methodhi need help is my format/conditions incorrect please help me.. what are the other ways i could the find the date in between month
    • 22.08.2018
    • 2372views
    • 4comments
    0
  • John
    Level 17
    Mansfield
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Under discussion
    PLEASE HELP WHAT'S WRONG HEREI think everything's fine help me please im stuck : (
    • 27.03.2021
    • 593views
    • 6comments
    0
  • John
    Level 17
    Mansfield
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Under discussion
    Please help :(Im stuck for a days can somebody give me a clue
    • 27.03.2021
    • 411views
    • 1comment
    0
  • Maxim Raitin
    Level 20
    Tomsk
    Question about the task Software update
    Java Syntax, Level 8, Lesson 11
    Resolved
    I've given up..I don't know why output is Rockefeller rather than Gates. Why my for loop choose previous getValue, but not current one. Please, help me.
    • 27.03.2021
    • 658views
    • 1comment
    0
  • Alexandre Lalancette
    Level 41
    Quebec
    Question about the task Shortener (14)
    Java Collections, Level 6, Lesson 15
    Under discussion
    Not passing the last requirement! I suspect the problem is in the FileStorageStrategy classNot passing the last requirement! I suspect the problem is in the FileStorageStrategy class but I can't find how/why. Can someone give me a small hint?
    • 12.02.2020
    • 1221views
    • 4comments
    2
  • remote87
    Level 18
    Sofia
    Question about the task Most frequent bytes
    Java Core, Level 8, Lesson 3
    Resolved
    Seems to me I'm missing somethingAs far as I understand the task condition, I'm doing exactly as what is wanted, but still can't pass that 3rd condition. I think I'm missing the output, but still can't figure it out. Any advice....Lupe? :D
    • 26.03.2021
    • 614views
    • 6comments
    0
  • gh0stl0nely
    Level 23
    Toronto
    Question about the task Counting words
    Java Core, Level 9, Lesson 5
    Under discussion
    Last condition not met while local test cases all passedI tested on my computer with my own tests like: Case 1: world?me,lol,world => return 2 Case 2: world.ok.world.wor32.wor0x:world => return 3 It says "Determine why 'world' appears more than it exists" I don't want to use the solution that CodeGym provides. Too complex.
    • 26.03.2021
    • 388views
    • 2comments
    0
  • 1
  • ...
  • 77
  • 78
  • 79
  • 80
  • 81
  • ...
  • 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