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
  • John
    Level 17
    Mansfield
    Question about the task Method in a try-catch
    Java Syntax, Level 9, Lesson 11
    Under discussion
    how do i know what exception to catch?in this case how can i able to know what specific exception to catch instead of using Exception as general?
    • 22.04.2021
    • 729views
    • 4comments
    0
  • Edward Rickers
    Level 15
    Washington
    Question about the task Streets and houses
    Java Syntax, Level 7, Lesson 4
    Archived
    Says I didn't create an array of 15 integers package com.codegym.task.task07.task0706; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /* Streets and houses */ public class Solution { public static void main(String[] args) throws Exception { Integer[] houses = new Integer[15];
    • 22.04.2021
    • 590views
    • 2comments
    0
  • ImDevin
    Level 15
    Old Town
    Resolved
    Intellij not running the current task - Help would be appreciatedI've not been able to run the current task for a while. Every time I run a current task (right now, I'm on 0712), it runs 0523. The Edit Configuration shows the current, correct task, but it only runs the task 0523. Don't know what I can do to fix this. Any help would be appreciated. thx
    • 20.04.2021
    • 541views
    • 2comments
    0
  • John
    Level 17
    Mansfield
    Question about the task What's today's date?
    Java Syntax, Level 9, Lesson 11
    Resolved
    Month is in LowerCaseI got the exact right output except that the month is in lower case, can someone give a hint on how to fix it?
    • 22.04.2021
    • 751views
    • 3comments
    0
  • John
    Level 17
    Mansfield
    Question about the task Catching custom exceptions
    Java Syntax, Level 9, Lesson 8
    Under discussion
    HelpCan somebody give a little hint?
    • 19.04.2021
    • 559views
    • 2comments
    0
  • oli blaustrom
    Level 18
    Luzern
    Question about the task Let's talk music
    Java Core, Level 6, Lesson 3
    Under discussion
    My thread doesn't wake upAfter calling the sleep method nothing else will be called in run. I don't get it? I tried some solutions of others here too that supposed to work but they have the same problem when I put it in after sleepNseconds nothing gets called.
    • 28.02.2020
    • 986views
    • 6comments
    0
  • Josephine
    Level 26
    Normal
    Question about the task Space Invaders (Part 4/34)
    Games, Level 0, Lesson 6
    Under discussion
    Not validating the last requirement .I have already included ' import com.codegym.engine.cell.*;in star class..Someone help please?Not validating the last requirement .I have already included ' import com.codegym.engine.cell.*;in star class..Someone help please?
    • 20.04.2021
    • 770views
    • 6comments
    0
  • Anonymous
    Level 18
    Question about the task No comments needed
    Java Syntax, Level 0, Lesson 8
    Resolved
    Help to make me solve !I cant seem to solve this code. No matter how much I try! Please do help me. If I am trying to make X=12 then I couldn't make Y=2 & If I am trying to make y=2 then I couldn't make x=12 . This is the only code, where I am stuck so far. I have even completed the other tasks after this one. pleas
    • 19.09.2018
    • 1840views
    • 4comments
    1
  • Tamas Horcsak
    Level 18
    Leeds
    Question about the task Fix four mistakes
    Java Core, Level 4, Lesson 8
    Resolved
    Hi guys, I cant pass verification, please help me out.. I tried many ways..package com.codegym.task.task14.task1418; import java.util.LinkedList; import java.util.List; public class Solution { static List initList(List list) { list.add(new Double(1000f)); list.add(new Double("123e-445632")); list.add(new Float(-90 / -3)); list.remo
    • 21.04.2021
    • 446views
    • 2comments
    0
  • Tamas Horcsak
    Level 18
    Leeds
    Question about the task Cats
    Java Core, Level 4, Lesson 4
    Under discussion
    Hi everyone, why is my code fails? import java.io.BufferedReader; import java.io.InputStreamReader; /* Cats */ public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String key = "a"; while(!key.eq
    • 27.02.2021
    • 677views
    • 5comments
    0
  • Miles Johnston
    Level 2
    Madison
    Question about the task Where does a Person come from?
    Java Syntax, Level 2, Lesson 2
    Resolved
    I am struggling to understand this lesson.I am struggling to learn this new stuff and I don't understand the things one why a int is primitive and String is not. I feel like they just dumped the whole objects thing on me and idk how it works even after carefully reading the lesson. I'm very troubled on figuring out the basic concept in ge
    • 18.04.2021
    • 701views
    • 2comments
    0
  • Rica
    Level 3
    Manchester
    Question about the task Print three times
    Java Syntax, Level 2, Lesson 8
    Under discussion
    Why is it that it's assocated with two words?I was able to do this quickly but don't understand the why behind this. Why is it that it is able to print both words on line 16 and 17 when I only printed one string? Does that one string= "window" AND "file"?
    • 20.04.2021
    • 581views
    • 1comment
    0
  • TaoLu
    Level 20
    泾县
    Under discussion
    Choose your languagelanguage selection When I first entered the Codegym, I needed to select a language,and I chose Chinese But what I've found so far is that the Chinese translation is terrible, I regret it now. I want to choose English, When I select English in the bottom right corner of the page, All that changed was
    • 11.03.2021
    • 607views
    • 3comments
    0
  • smmmm
    Level 0
    Singapore
    Under discussion
    this question is regarding java-hadoop and the use of virtual machine virtualboxthis is my code import java.io.IOException; import java.net.URI; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FSDataInputStream; import org.apache.hadoop.fs.FSDataOutputStream; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; import org.a
    • 20.04.2021
    • 460views
    • 0comments
    0
  • Edward Rickers
    Level 15
    Washington
    Question about the task Display numbers in reverse order
    Java Syntax, Level 7, Lesson 12
    Under discussion
    I added ten integers to the list and it's still not passing package com.codegym.task.task07.task0719; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; /* Display numbers in reverse order */ public class Solution { public static void main(String[] args) throws IOException {
    • 20.04.2021
    • 582views
    • 2comments
    0
  • Anitamalina
    Level 18
    København
    Question about the task Labels and numbers
    Java Syntax, Level 4, Lesson 7
    Resolved
    why doesn't my code work for negative odd number??I feel like I do exactly the same, and I can't see what's wrong???
    • 25.10.2020
    • 618views
    • 6comments
    1
  • Dmitri
    Level 22
    Seversk
    Question about the task Stack trace revisited
    Java Syntax, Level 9, Lesson 2
    Resolved
    Unfortunately the validator is not flexible enough againActually this code is working perfectly
    • 04.11.2020
    • 629views
    • 5comments
    0
  • Au Ivan
    Level 17
    Hong Kong
    Question about the task Working with dates
    Java Syntax, Level 8, Lesson 11
    Resolved
    Please help...have been struggling here for over 3 hours..com/codegym/task/task08/task0827/Solution.java:24: error: unreported exception java.text.ParseException; must be caught or declared to be thrown Date dd = new SimpleDateFormat("MMMM d yyyy").parse(s); Why is that not compiling...million thanks in advance!
    • 27.09.2019
    • 3449views
    • 8comments
    0
  • hacks patel
    Level 20
    Ahmedabad
    Question about the task Number of letters
    Java Syntax, Level 10, Lesson 11
    Under discussion
    What is problem??plz help..
    • 06.01.2019
    • 2302views
    • 10comments
    0
  • Joy Majumdar
    Level 16
    Kolkata
    Question about the task Working with dates
    Java Syntax, Level 8, Lesson 11
    Resolved
    Just a little helpHow to parse the given string to a date Plz show me the way and calculate the diff.
    • 06.04.2019
    • 2261views
    • 7comments
    0
  • Cristian
    Level 16
    Bucharest
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Consider the fact that words might be separated by more than one space.Hi, guys! I don't know how to fix this code given that " Consider the fact that words might be separated by more than one space.". Help me, please! Thank you so much!
    • 13.04.2021
    • 611views
    • 11comments
    0
  • Ewerton
    Level 30
    Belo Horizonte
    Question about the task Chat (part 12)
    Java Multithreading, Level 6, Lesson 15
    Under discussion
    I failed on the simplest taskClient.java
    • 13.07.2019
    • 1133views
    • 2comments
    0
  • Rich
    Level 23
    San Diego
    Question about the task Make a family
    Java Syntax, Level 8, Lesson 11
    Resolved
    not registering the new Humans It looks right to me but it's saying that when I initialize the new human the listed children aren't legit variables
    • 30.08.2020
    • 963views
    • 5comments
    0
  • Kisszol
    Level 15
    Toeroekbalint
    Question about the task Static modifiers are out of place
    Java Syntax, Level 9, Lesson 11
    Resolved
    Bonvolu helpu min - please help meEO - Mi provas cxion, sed sistemo ne akceptas. EN - I try everything, but system does not accept it.
    • 01.04.2019
    • 1725views
    • 8comments
    0
  • Ice_ Beam
    Level 7
    Question about the task Rule of the triangle
    Java Syntax, Level 4, Lesson 4
    Resolved
    What's wrong with my code?I thought I carefully covered the angles. the validation says: Error. If a triangle with the specified sides could exist, you need to display: "The triangle is possible."
    • 15.04.2021
    • 695views
    • 2comments
    0
  • John Raets
    Level 3
    Not in list
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    why when compiling does it say "missing return statement"?public class Solution { public static int min(int a, int b, int c) { if (a <= b && a <=c) //write code here return a; else if (b <=a && b <=c) return b; else if (c <=a && c <=b) return c; }
    • 17.09.2020
    • 834views
    • 4comments
    1
  • rudy athea
    Level 19
    Under discussion
    level 11Hello I dont understand why dont I have access to the level 11. I am on level 10 and I want to access to the level 11. Please explain me?? Thanks
    • 23.03.2021
    • 425views
    • 0comments
    0
  • Edward Rickers
    Level 15
    Washington
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Under discussion
    Created two ten arrays but first and third tests still not passing package com.codegym.task.task07.task0705; import java.io.BufferedReader; import java.io.InputStreamReader; /* One large array and two small ones */ public class Solution { public static void main(String[] args) throws Exception { Integer[] twenty = new Integer[20]; Integer[
    • 15.04.2021
    • 503views
    • 4comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Archiver (part 17)
    Java Multithreading, Level 7, Lesson 15
    Resolved
    Think I know what the problem is - not sure how to solve itRelevant code is on lines 132-182. I have a feeling that the problem is that the Paths being added to the List on line 148 is the full Path and therefore the condition on line 162 is always false. Not sure how to get a "simple name", especially if it's in a sub-folder, how would I get the correct
    • 15.04.2021
    • 711views
    • 7comments
    0
  • gh0stl0nely
    Level 23
    Toronto
    Question about the task Number algorithms
    Java Core, Level 10, Lesson 10
    Under discussion
    If this is Armstrong number, then I think my algorithm is correct?Memory taken is 28mb max Time is 0s... My code provides the correct answer (based on the correct armstrong number)
    • 15.04.2021
    • 442views
    • 3comments
    0
  • 1
  • ...
  • 74
  • 75
  • 76
  • 77
  • 78
  • ...
  • 371
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