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
  • public enum WaysToDie
    Level 23
    Denver
    Question about the task Greater than 10? You're not a good fit for us
    Java Syntax, Level 14, Lesson 7
    Resolved
    Por que esta?So my code seems to fulfill all the requirements yet it is still failing.
    • 21.12.2021
    • 627views
    • 3comments
    0
  • Grzegorz
    Level 9
    Question about the task 2048 (Part 4/18)
    Games, Level 0, Lesson 2
    Under discussion
    how can I run the code before verifytask in IDEA s
    • 21.12.2021
    • 727views
    • 9comments
    0
  • Luniae
    Level 2
    Stuttgart
    Question about the task Our first converter!
    Java Syntax, Level 2, Lesson 2
    Resolved
    Question about the converter taskHello everyone, i have a question about the converter task. I'd like to know if casting the double type like this is another possible way like writing 9/5.0 public static double convertCelsiusToFahrenheit(int celsius) { //write your code here double TF = (double)9/5 * celsius + 3
    • 02.04.2021
    • 772views
    • 2comments
    1
  • Johannes
    Level 27
    Centurion, Pretoria
    Question about the task Minimum changes
    Java Core, Level 10, Lesson 10
    Under discussion
    Can someone please explain to me why the constructor of the B and C class is calling Super(name) ?I am confused again. I am not modifying the parent class if I instantiate a new B or C class ? C c = new C ("Peter"); (Why would I want to pass that name to the Parent or Base (super) class ? What on earth is achieved by doing that ?) Thanks for your attention ;)
    • 22.04.2020
    • 723views
    • 1comment
    0
  • Alexis M
    Level 18
    France
    Question about the task Minesweeper (Part 6/16)
    Games, Level 0, Lesson 0
    Under discussion
    countMineNeighbors () est un problème Bien le bonjour! Quelqu'un peut m'éclairer sur mon erreur ? Je n'arrive pas a faire rouler la méthode countMineNeighbors (). Ca compile bien mais la task ne veut pas se valider... Merci d'avance :)
    • 18.12.2021
    • 514views
    • 1comment
    0
  • public enum WaysToDie
    Level 23
    Denver
    Question about the task Minimum of three numbers
    Java Syntax, Level 7, Lesson 4
    Resolved
    Same problem different problem.Again my code is producing the expected output but it continues to fail. Where have I gone wrong?
    • 18.12.2021
    • 349views
    • 2comments
    0
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task Number of letters
    Java Syntax, Level 10, Lesson 11
    Resolved
    but still... :DI realy don t know what to do anymore! This code do the job but still... :D Any hints? Tk you!
    • 09.12.2021
    • 599views
    • 20comments
    0
  • Grzegorz
    Level 9
    Question about the task Snake (Part 7/20)
    Games, Level 0, Lesson 1
    Under discussion
    need helpthree task are not passed
    • 15.12.2021
    • 501views
    • 1comment
    0
  • Anonymous #10843241
    Level 14
    Bentonville
    Under discussion
    level 11 lesson 6 first task - Pls help me understand why type casting neededIn below example why should I type cast " CellPhone cellPhone = (CellPhone) o;" instead of directly accessing "Objects.equals(vendor, o.vendor) && Objects.equals(model, o.model);" ?. When I use "o." it gives oblect not found though its passed as part of parameter.
    • 13.12.2021
    • 473views
    • 3comments
    0
  • 0wis
    Level 6
    Paris
    Question about the task Boss, something weird is happening
    Java Syntax, Level 5, Lesson 12
    Under discussion
    Why I don't fill the requirements ? Using the "sz" parameter of "InputStreamReader"-It does read the numbers from the keyboard -There is only one main method (this one is valid) -The program displays a string that starts with "Sum =" -And it ends with the sum of the entered numbers. Maybe I have done something wrong but I struggle to find what, my code seems to be valid.
    • 13.12.2021
    • 530views
    • 7comments
    0
  • Romain
    Level 26
    Paris
    Question about the task Make a word chain
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    'if possible' in 7th requirementWhat does mean "if possible" in the 7th requirement ? Should we delete all word without any correspondence with the first or last letter of the others words ?
    • 25.03.2021
    • 979views
    • 7comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Find a substring
    Java Multithreading, Level 2, Lesson 5
    Under discussion
    can't get last conditionI've tested with numerous strings of different lengths and different numbers of spaces, empty string, null. All of them either produce a substring that matches the requirement (with no leading or trailing spaces), or throws the required exception. There is one situation where the conditions aren't
    • 12.12.2021
    • 679views
    • 3comments
    0
  • Szymon
    Level 41
    Warsaw
    Question about the task Log parser (part 1)
    Java Collections, Level 7, Lesson 15
    New
    I need help guys .
    • 13.12.2021
    • 481views
    • 0comments
    0
  • Gellert Varga
    Level 23
    Szekesfehervar
    Resolved
    Serialisation in a custom code example -- NotActiveExceptionI wanted to try and test a lot of things about serialization/deserialization with a made-up code, just for myself. Unfortunately, I got stuck at the very beginning. Here is the code: import java.io.*; public class Solution implements Serializable { // private int age; private int wei
    • 09.12.2021
    • 834views
    • 10comments
    0
  • Hoist
    Level 36
    San Diego
    Question about the task Favorite dish
    Java Syntax, Level 7, Lesson 2
    Under discussion
    See commented out code I have been using to get the right output. No success. Ideas ??Hmmmm ... don't change what's in the main method variables / parameters .... Ideas ? I have been changing out the commented code. It bombs ....
    • 08.12.2021
    • 401views
    • 3comments
    0
  • RMR
    Level 20
    Birmingham
    Question about the task Writing to a file from the console
    Java Core, Level 3, Lesson 11
    Under discussion
    Not passing verificationI am unsure why I am not passing the verification, because when I write: B:\Documentos\temp.txt Line1 Line2 Line3 exit I end up having the file as requested, I also tried changing line 32 by content = content + newline; with identical results.
    • 10.12.2021
    • 419views
    • 1comment
    0
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task Functionality is not enough!
    Java Syntax, Level 10, Lesson 11
    Resolved
    The number is not lostError: "If an empty string is entered after a number, then that number should also be displayed (it must not be lost)." HashMap can work with null key, no?
    • 09.12.2021
    • 739views
    • 1comment
    0
  • Anonymous #10864887
    Level 22
    Question about the task Correct order
    Java Syntax, Level 7, Lesson 2
    Under discussion
    Can anyone explain me please the solution of the reverseArray() method?Can anyone explain me please the solution of the reverseArray() method? I didn't get it :(
    • 22.11.2021
    • 983views
    • 8comments
    1
  • Gellert Varga
    Level 23
    Szekesfehervar
    Question about the task Overriding serialization
    Java Core, Level 10, Lesson 7
    Resolved
    Overriding serialization -- and the defaultReadObject() methodThe readObject() method of ObjectInputStream has a type: it returns Object. Therefore, I find it easy to understand the following example code used in the deserialization: Cat newCat = (Cat) objectinputstream.readObject(); However, in the task-2015, we used the objectinputstream.defaultReadObjec
    • 07.12.2021
    • 649views
    • 2comments
    0
  • M suleman
    Level 20
    Lahore
    Question about the task DownloadException
    Java Core, Level 8, Lesson 5
    Under discussion
    not running*/ import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) throws DownloadException { try{ BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); String file1= r.readLine(); FileInputStream f = new FileInputStream(fil
    • 04.11.2018
    • 1522views
    • 2comments
    0
  • vivian
    Level 2
    United States of America
    Question about the task Family relations
    Java Syntax, Level 2, Lesson 2
    Under discussion
    I passed the task but I don't know what I'm doing.why do we create the "man.wife = woman" variable? How is this used..??
    • 08.12.2021
    • 859views
    • 1comment
    0
  • Tamas Horcsak
    Level 18
    Leeds
    Question about the task Software update
    Java Syntax, Level 8, Lesson 11
    Resolved
    my works on my computer but here doesn't pass. any idea why?my works on my computer but here doesn't pass. any idea why?
    • 02.12.2021
    • 808views
    • 2comments
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Compare modifiers
    Java Multithreading, Level 1, Lesson 2
    Resolved
    Need a clue or two to figure out this taskThe "go google it" tasks are annoying. I'm really lost even understanding the basics of this task. Google has not helped. Here is what I can figure out so far: 1. The modifiers in this context are things like "public" and "final" and stuff. So for it appears that line 15 in the code: int classModif
    • 07.12.2021
    • 534views
    • 0comments
    0
  • Jurij Thmsn
    Level 29
    Flensburg
    Question about the task Chat (part 8)
    Java Multithreading, Level 6, Lesson 15
    Resolved
    The name request should repeated until the message type of the response is equal to MessageType.USER_NAME.This just seems to be a small thing, but I can't get it validated. I already tried several different writings: boolean isUserName = request.getType() == (MessageType.USER_NAME); boolean isUserName = request.getType() == (MessageType.USER_NAME) ? true : false; boolean isUserName = request.getType
    • 01.12.2021
    • 1199views
    • 4comments
    0
  • Johannes
    Level 27
    Centurion, Pretoria
    Question about the task Minimum number of statics
    Java Syntax, Level 6, Lesson 11
    Resolved
    Here's a nice explanation of STATIC (from a textboox: Java by Herbert Schildt)Understanding static There will be times when you will want to define a class member that will be used independently of any object of that class. Normally, a class member must be accessed only in conjunction with an object of its class. However, it is possible to create a member that can be used by
    • 04.03.2020
    • 1903views
    • 4comments
    11
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task Working with dates
    Java Syntax, Level 8, Lesson 11
    Resolved
    Any hint?1. With 1 May or without? Nevertheless is not working...
    • 27.11.2021
    • 545views
    • 5comments
    0
  • Angel Stefan
    Level 23
    Sibiu
    Question about the task Let's make the code do something useful!
    Java Syntax, Level 9, Lesson 11
    Resolved
    The code do the job but...With a little hepl from comment section i manage to write the code :), this code do the job, but nevertheless i can t pass the task: "Be sure that the program copies the contents successfully." I don t understand, i manage to coppy everything from file1 to file 2. Any hint? Tk you!
    • 03.12.2021
    • 579views
    • 3comments
    0
  • Przemek
    Level 25
    Lublin
    Question about the task How to avoid Copy+Paste
    Java Multithreading, Level 4, Lesson 6
    Under discussion
    What is wrong?I get correct outputMy output is: *** Barbossa *** says ruff! Tue, 30-Nov-2021 *** Puppy *** says ruuuuff! Tue, 30-Nov-2021 *** Rover *** says ruff! Tue, 30-Nov-2021 The mouse squeaks. *** Spot *** is sleeping. I added also parameter ,,Locale.ENGLISH" in class SuperDog for variable ,,formatter'' because it showed
    • 30.11.2021
    • 662views
    • 5comments
    0
  • naif
    Level 3
    Jeddah
    Under discussion
    confuse https://codegym.cc/quests/lectures/questsyntax.level02.lecture04 please can you explain this link>> and
    • 26.11.2021
    • 833views
    • 19comments
    0
  • Marvin Ellis
    Level 7
    Peoria
    Question about the task Man and woman
    Java Syntax, Level 5, Lesson 12
    Resolved
    I think I met all the requirements but I don't see what's wrong. I don't understand why its stating tat the Main is not displaying in the right format. Or why it states that the constructor is not taking a String, int and String input. Please help.
    • 21.09.2020
    • 809views
    • 2comments
    1
  • 1
  • ...
  • 52
  • 53
  • 54
  • 55
  • 56
  • ...
  • 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