CodeGym
Promotion
CodeGym University
Java FullStack
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
  • Ash Ka
    Level 13
    Calgary
    Question about the task Method in a try-catch
    Java Syntax, Level 9, Lesson 11
    Resolved
    The code is not going into catch though I was able to complete the task by keeping the print order code in the try block itself (I know it's not correct). Please help me with the right solution package com.codegym.task.task09.task0921; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import java.util.*; import java.io.*; /* Method in a try-catch */ public class Solution { public static void main(String[] args) {
    • 9/11/19
    • 1503views
    • 2comments
    0
  • Venkata Garimella
    Level 13
    Karnataka
    Question about the task Duplicating words
    Java Syntax, Level 7, Lesson 9
    Resolved
    Solution working and result is duplicated but failed when submittedSolution verified with multiple strings. working fine but failed when submitted. What's is wrong?
    • 9/11/19
    • 1636views
    • 1comment
    0
  • Henry
    Level 6
    Stuttgart
    Question about the task The humble programmer
    Java Syntax, Level 3, Lesson 8
    Under discussion
    confused and need helpI do not understand this text "The displayed text must contain the entered name". Is it trying to say that i do not have to include "Sara" in the printout in this way System.out.printout(" makes $120,000 a year. Ha-ha-ha!"); and that "Sara" should be typed on the console and should be part of the
    • 9/4/19
    • 1292views
    • 2comments
    0
  • ddi
    Level 18
    Dortmund
    Question about the task Fixing bugs
    Java Core, Level 4, Lesson 8
    Under discussion
    How to override the getCurrentCreature()?How to override the getCurrentCreature()?
    • 8/30/19
    • 1503views
    • 1comment
    0
  • Henry
    Level 6
    Stuttgart
    Question about the task Deep and pure love
    Java Syntax, Level 3, Lesson 8
    Under discussion
    hiI would like your help with this task. Thanks.
    • 9/12/19
    • 1343views
    • 1comment
    0
  • Lex Medeiros
    Level 18
    San Jose
    Question about the task Static modifiers and kittens
    Java Core, Level 5, Lesson 9
    Resolved
    All is on the static block, but it does "see" it"In the static block, create a Cat object and assign it to the variable cat (don't forget to initialize the field name)." I have created the object, initialized the name and printed out the cat's name in the static block, but for some reason it does not see it. Does anyone know what I am doing wro
    • 5/20/19
    • 2030views
    • 4comments
    0
  • Cristian
    Level 16
    Bucharest
    Question about the task Somehow average
    Java Syntax, Level 4, Lesson 16
    Under discussion
    Something is wrong. What? Thank you so much.package com.codegym.task.task04.task0441; /* Somehow average */ import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { Scanner scanner = new Scanner(System.in); System.out.println("Enter the three numbers: "); int
    • 9/6/19
    • 1334views
    • 6comments
    0
  • Benjamin Spoiden
    Level 20
    Liège
    Question about the task Shortest or longest
    Java Syntax, Level 7, Lesson 6
    Resolved
    Need some helpHello, I don't get what i'm missing in this code make the longest display if it indeed come first. Any hint ? Thanks
    • 8/20/19
    • 1625views
    • 4comments
    0
  • Alesha Ray
    Level 20
    Austin
    Question about the task Minesweeper (Part 6/16)
    Games, Level 0, Lesson 0
    Resolved
    Everything looks right and yet I'm somehow not accounting for all mined neighbors, please help! Thanks in advanceNOTE: Ignore the MinesweeperGame.class file, that's now how it's showing on my end so I'm not really sure what's going on there. So I've checked everything at this point and my code seems to be correct. I accounted for the fact that the columns and the cells are swapped here: for (int y =
    • 9/8/19
    • 1861views
    • 3comments
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Overriding serialization in a thread
    Java Core, Level 10, Lesson 10
    Under discussion
    One condition plsNeed help
    • 6/30/19
    • 1478views
    • 1comment
    0
  • Djole
    Level 41
    Belgrade
    Question about the task CashMachine (part 13)
    Java Collections, Level 9, Lesson 15
    Archived
    ?import com.codegym.task.task26.task2613.exception.InterruptedOperationException; import java.util.ResourceBundle; class DepositCommand implements Command{ private ResourceBundle res = ResourceBundle.getBundle(CashMachine.RESOURCE_PATH + "/deposit_en"); @Override public void execute()
    • 9/9/19
    • 1317views
    • 2comments
    0
  • Jason
    Level 26
    Rancho Cucamonga
    Question about the task Reinforce the singleton pattern
    Java Core, Level 5, Lesson 12
    Resolved
    Honestly at a lose here and not even sure if I really completely understand my own codeI hate to admit but I got my sun, moon, and earth code almost directly from a website and I filled in the code for the solution.java and it seems most of it has worked but I haven't a clue what to do to get this last task to pass. Any help/explanation into what exactly I need to do would be greatly
    • 9/11/19
    • 1759views
    • 2comments
    0
  • Kayden Land
    Level 3
    Kearney
    Under discussion
    what am i doing wrong?package com.codegym.task.task02.task0216; /* Minimum of three numbers */ public class Solution { public static int min(int a, int b, int c) { //write your code here int m2; if (c < b && c < a) m2 = c; else if (b < c && b
    • 9/8/19
    • 1040views
    • 1comment
    0
  • Carlos Cortázar
    Level 17
    Madrid
    Question about the task Kind Emma and the summer holidays
    Java Syntax, Level 8, Lesson 8
    Under discussion
    WHAT'S WRONG WITH THISit doesn't verify and a i can't see why.
    • 9/4/19
    • 1114views
    • 2comments
    0
  • Dedcom
    Level 19
    Lahore
    Question about the task Ascending numbers
    Java Syntax, Level 6, Lesson 11
    Resolved
    why its not verifying?when i run this code it works perfectly fine but when i verify it, it doesnt get verified and doesnt show any error.. whats the problem?
    • 10/28/18
    • 1925views
    • 11comments
    0
  • Laurence Chadwell
    Level 4
    San Antonio
    Question about the task Three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    So my index is starting at 0 instead of 1...how can I adjust the starting index by 1 so if can say for example... 2 9 2 (in this case its 9 but want it say 2 for that index and not 1)?)package com.codegym.task.task04.task0424; /* Three numbers */ import java.io.*; import java.util.*; public class Solution { public static int findIndex(int arr[], int t) { // if array is Null if (arr == null) { return -1; } // find
    • 8/24/19
    • 1627views
    • 5comments
    0
  • Nikolaos
    Level 22
    Vrontados
    Question about the task Writing to a file from the console
    Java Core, Level 3, Lesson 11
    Resolved
    Not passing 5th condition , please help!Any suggestion?
    • 9/10/19
    • 1440views
    • 2comments
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Reinforce the singleton pattern
    Java Core, Level 5, Lesson 12
    Under discussion
    what is wronghelp me pls
    • 6/26/19
    • 1363views
    • 1comment
    0
  • Kayden Land
    Level 3
    Kearney
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    im getting the minimum of these numbers so idk what im doing wrong? int m2; if (c < b && c < a) m2 = c; else if (b < c && b <a) m2 = b; else m2 = a; return m2;
    • 9/8/19
    • 1306views
    • 1comment
    0
  • Rafał Jagielski
    Level 41
    Lodz
    Question about the task Aggregator (part 8)
    Java Collections, Level 8, Lesson 15
    Archived
    Service request for the Aggregator task (part 8) -> validation for this task is disabled.Service request for the Aggregator task (part 8) from August 14, 2019, validation for this task is disabled. A message from the website: An error occurred during verification An error occurred while running the task on the server. Message from the Intellij application: error: Unknown error during
    • 9/10/19
    • 1621views
    • 4comments
    0
  • Franek
    Level 29
    Torun
    Question about the task Deserializing a JSON object
    Java Collections, Level 3, Lesson 5
    Archived
    HelpAnyone see the error?
    • 7/5/19
    • 1706views
    • 2comments
    0
  • Itachi
    Level 16
    Brooklyn
    Question about the task Minesweeper (Part 9/16)
    Games, Level 0, Lesson 0
    Under discussion
    I can not figure out where is the problemhey
    • 7/25/19
    • 1389views
    • 1comment
    0
  • Henry
    Level 6
    Stuttgart
    Question about the task Minimum of three numbers
    Java Syntax, Level 2, Lesson 8
    Under discussion
    Where is the mistake?Where is the mistake
    • 8/28/19
    • 1198views
    • 4comments
    0
  • Mack
    Level 20
    Osiedle-Nowiny
    Question about the task Request parser
    Java Core, Level 5, Lesson 12
    Under discussion
    Where is mistake?In what is problem?
    • 11/25/18
    • 2018views
    • 7comments
    0
  • Anusha Govindarajan
    Level 7
    Amsterdam
    Question about the task Remove and insert
    Java Syntax, Level 7, Lesson 6
    Under discussion
    Not getting verified despite the right outputThe task shows error "It requires five strings in output".I have done it as per the problem statement and it is working.what is wrong?
    • 8/29/19
    • 1231views
    • 1comment
    0
  • Boris B
    Level 4
    Belgrade
    Question about the task Closest to 10
    Java Syntax, Level 4, Lesson 4
    Under discussion
    Ok, so i've tried it all...Ok so i looked over the answers in the help section, and i still cannot get the code to output only one of the numbers... I am unsure why this is happening, so if anyone has a clear cut reason, please, help :) Thank you all.
    • 9/2/19
    • 1421views
    • 8comments
    0
  • sirisha karanki
    Level 10
    Question about the task Our first converter!
    Java Syntax, Level 2, Lesson 2
    Resolved
    when i am trying to initialize a variable to store the output it is showing an error. please help me public class Solution { public static void main(String[] args) { System.out.println(convertCelsiusToFahrenheit(41)); } public static double convertCelsiusToFahrenheit(int celsius) { //write your code here int degree; celsius=(degree-32)*5/9;
    • 8/28/19
    • 1747views
    • 4comments
    0
  • karan
    Level 2
    Kolkata
    Question about the task Our first converter!
    Java Syntax, Level 2, Lesson 2
    Resolved
    Not getting Solved package com.codegym.task.task01.task0130; /* Our first converter! */ public class Solution { public static void main(String[] args) { System.out.println(convertCelsiusToFahrenheit(41)); } public static double convertCelsiusToFahrenheit(int celsius) { double TF=(double)(
    • 8/5/19
    • 1608views
    • 3comments
    0
  • Clau Dia
    Level 24
    Mendoza
    Question about the task File in a static block
    Java Core, Level 5, Lesson 12
    Resolved
    Error compiling on serverMy code compiles in IntelliJ Idea, but not on the server. I get "duplicate class" and "bad source file" errors. How can I solve this?
    • 1/11/19
    • 1937views
    • 2comments
    1
  • Shashank Mishra
    Level 18
    Panaji
    Question about the task Moon Lander (Part 4/23)
    Games, Level 0, Lesson 4
    Resolved
    Can anyone help whats wrong in a way I am using helper class ShapeMatrixerror: cannot find symbol symbol: variable ShapeMatrix location: class com.codegym.games.moonlander.part04.Rocket.
    • 9/9/19
    • 1461views
    • 2comments
    0
  • 1
  • ...
  • 282
  • 283
  • 284
  • 285
  • 286
  • ...
  • 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