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
  • Chrizzly
    Level 12
    Earth
    Question about the task Creating a two-dimensional array
    Java Syntax, Level 5, Lesson 5
    Resolved
    Not sure about the input type and if conditionHey guys, do you know why the input is in String, instead of int? 1) Does it need to be a String here (or could the provide an int, too), or why did Codegym give us Strings instead of ints as input? 2) Is it bad practice to use an if, to check if the number is positive here? 2.1) Why don't we need
    • 12/4/22
    • 542views
    • 3comments
    1
  • Alex Tor
    Level 31
    Question about the task Creating a two-dimensional array
    Java Syntax, Level 6, Lesson 6
    Resolved
    My solution considered correct and it's solved now, but I don't think so. public class Solution { public static int[][] multiArray; public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int input = scanner.nextInt(); if (input > 0) { int times = input; multiArray = new int[input][];
    • 7/24/22
    • 882views
    • 5comments
    1
  • Michael Pascua
    Level 14
    United States of America
    Question about the task Car manufacturer
    Java Syntax, Level 13, Lesson 5
    Under discussion
    Why do we use an "initialize method" instead of a constructor. Why do we use an "initialize method" instead of a constructor? At face value, it looks like they both do the same thing.
    • 3/25/23
    • 435views
    • 2comments
    0
  • Reyaz Ahmad Bhat
    Level 4
    Anantnag Jammu And Kashmir
    Question about the task Comparing strings by reference
    Java Syntax, Level 3, Lesson 9
    Under discussion
    Solution if(string1 == string2){ System.out.println(same); }else{ System.out.println(different); } if(string1 == string3){ System.out.println(same); }else{ System.out.println(different); }
    • 3/3/23
    • 401views
    • 1comment
    0
  • Nitin Saini
    Level 4
    New
    I am not able to attach my codes to any question for community helpI am not able to do that because when I click on the button of attaching file it is not attaching the file. It is just like that off please help
    • 3/27/23
    • 371views
    • 0comments
    0
  • Nitin Saini
    Level 4
    Question about the task Comparing strings by reference
    Java Syntax, Level 3, Lesson 9
    Resolved
    why is it showing that appropriate messages are not shownplease help
    • 3/24/23
    • 578views
    • 1comment
    0
  • Justin Smith
    Level 41
    Greenfield, USA
    Question about the task Aggregator (part 5)
    Java Collections, Level 8, Lesson 15
    New
    The instructions are very confusingIt says "go through all of the providers and collect all their job postings and add them to the list." What list? There is no List object in the Controller class. I thought maybe it meant that the scan() method should return a list? So I wrote it that way: public List<JobPosting> scan() {
    • 3/25/23
    • 438views
    • 0comments
    0
  • Nika Kopadze
    Level 2
    Question about the task Amigo is very smart
    Java Syntax, Level 1, Lesson 1
    Under discussion
    how can i start the task?
    • 2/19/23
    • 512views
    • 2comments
    0
  • Mike S
    Level 28
    Saint Louis
    Question about the task Reading and writing to a file: CodeGym
    Java Core, Level 10, Lesson 2
    Under discussion
    What in the heck is up with SimpleDateFormat??I've come across this before I feel like and it was some cause for grief on this exercise. I passed it, but only by doing some workarounds on SimpleDateFormat. Long story short, it doesn't seem to matter what format I type into the SimpleDateFormat(String format) constructor it always produces this
    • 3/22/23
    • 720views
    • 4comments
    0
  • Anthony Chalk
    Level 30
    London
    Question about the task Phone number verification
    Java Multithreading, Level 2, Lesson 13
    Resolved
    Trying to use regexI've tried testing my code with the examples provided in the conditions and it doesn't work. I'm not sure that I've used the escape characters properly. Also, line 16 if (temp.length() != 10) return false; has a warning "Condition is always true", and I'm not sure why
    • 2/14/21
    • 1106views
    • 5comments
    0
  • Alexandre Lalancette
    Level 41
    Quebec
    Question about the task Stranger things
    Java Core, Level 10, Lesson 2
    Resolved
    I don't understand what is missing in my code?I don't understand what is missing in my code?
    • 12/18/19
    • 1936views
    • 13comments
    0
  • Thomas Yates
    Level 1
    Question about the task The engine — the heart of the car
    Java Syntax, Level 14, Lesson 2
    Resolved
    The Engine class must have a public void start method that sets the isRunning field to true.I think I'm doing this in my code, but I keep failing the validation shown below:
    • 3/17/23
    • 536views
    • 2comments
    0
  • Patricia Louise Hernandez
    Level 4
    Question about the task The hard way...
    Java Syntax, Level 3, Lesson 7
    Under discussion
    I cannot see what's wrong with my codeHi, pls help task is not accepting my answer. Pls help me check what's wrong because it says there is something wrong with my code on the "less than 5" part.
    • 3/17/23
    • 608views
    • 1comment
    0
  • ABHISHEK PANDEY
    Level 14
    Mumbai
    Question about the task Reverse
    Java Syntax, Level 6, Lesson 3
    Under discussion
    this is really confusing please include illustrative example also, to have better understanding of problem
    • 9/15/22
    • 690views
    • 3comments
    0
  • matemate123
    Level 50
    Kraków
    Question about the task Make a word chain
    Java Multithreading, Level 2, Lesson 9
    Under discussion
    Make a worst chainOk for me this task is like big head ache. After analize code Lisa L. from help section in Antony Chalk, I got a little grasp how to do it. I try do it by mysefl a little simpler and here what we get. (maybe not simpler, but with tools which I knows better, she use streams so ellegantly) But when I
    • 3/17/23
    • 615views
    • 8comments
    0
  • Mike S
    Level 28
    Saint Louis
    Question about the task Introducing tags
    Java Core, Level 9, Lesson 11
    Under discussion
    Clarify the ConditionsLooking at the templates we need to parse for... text1 text1 text1 The first and second lines make sense. But looking around the rest of the exercise description and examples, I still can't decipher what's exactly being illustrated in the last two lines. Mr. or Ms. Klesk's expansion in the Discus
    • 3/17/23
    • 567views
    • 4comments
    0
  • Nitin Saini
    Level 4
    New
    I forgot my password so what should I do now help me to reset it
    • 3/17/23
    • 399views
    • 0comments
    0
  • Uday
    Level 1
    Question about the task Amigo is very smart
    Java Syntax, Level 1, Lesson 1
    Under discussion
    CodeHow to code in c language
    • 3/12/23
    • 509views
    • 1comment
    0
  • Amo programmare
    Level 32
    Question about the task Adapting multiple interfaces
    Java Core, Level 9, Lesson 3
    Resolved
    Don't understand why failing validationHi All, If I could get maybe a second pair of eyes, it would be greatly appreciated as I don't understand why I can't pass validation. I've checked everything I could think of. The phone number from the tests I did come out ten digits with the write format, but the validator only gives me that as
    • 3/17/23
    • 684views
    • 2comments
    0
  • Mike S
    Level 28
    Saint Louis
    Question about the task Replacing numbers
    Java Core, Level 9, Lesson 11
    Resolved
    Correct output, but not validatedGreetings friends, After an ungodly number of hours of figuring out how to break it into Strings without regex (thanks Breakiterator!) and then figuring out how to not lose the period at the end, it's not taking my answer even though it matches the output. It's not obvious to me what circumstances
    • 3/15/23
    • 688views
    • 7comments
    0
  • sagar thakur
    Level 6
    CodeGym University in India
    Question about the task Minimum of N numbers
    Java Syntax, Level 6, Lesson 3
    Under discussion
    Can someone help me with this? Why doesnt it work?
    • 3/10/23
    • 535views
    • 3comments
    0
  • J
    Level 41
    Wilson
    Question about the task Restaurant (part 10)
    Java Multithreading, Level 9, Lesson 15
    Under discussion
    Why is the impressions remaining requirement not validating? I have a condition that only adds advertisements with impressions remaining of 1 or more to the maximum list. Why is this not validating?
    • 9/9/22
    • 531views
    • 1comment
    2
  • Henk
    Level 19
    Pretoria
    Question about the task Wrapper (Decorator)
    Java Core, Level 8, Lesson 8
    Resolved
    Looks fine to me, why is it not correct ? Anyone ?I'll admit, I don't know WHAT I'm doing w.r.t. this wrapper concept. I just copy the stuff from the example, makes no sense why I would need this. I shall go read up on it in Head First Java....
    • 6/6/19
    • 2011views
    • 11comments
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Wrapper (Decorator)
    Java Core, Level 8, Lesson 8
    Under discussion
    help me plswhat i can do in this situation?
    • 6/28/19
    • 1339views
    • 2comments
    0
  • rudydesplan
    Level 4
    France
    Question about the task Summation
    Java Syntax, Level 4, Lesson 0
    Under discussion
    solutionpublic class Solution { public static void main(String[] args) { ..............; ..............; // initiate the sum variable to 0. ..............; // create an enter variable used later to compare to the input while (true) { if (..............) {
    • 3/12/23
    • 429views
    • 0comments
    2
  • Satya Vath
    Level 31
    Vijayawada
    Question about the task Don't take the car to the shop!
    Java Multithreading, Level 5, Lesson 2
    Under discussion
    Where is The Mistake?Please Help
    • 5/29/19
    • 1800views
    • 11comments
    0
  • Abhishek Rangari
    Level 22
    Nagpur
    Question about the task DownloadException
    Java Core, Level 8, Lesson 5
    Under discussion
    can anyone help me in this task3rd condition is not satisfying..
    • 12/19/18
    • 1776views
    • 5comments
    0
  • Thomas Yates
    Level 1
    Question about the task Welcome! But not everyone.
    Java Syntax, Level 9, Lesson 2
    Resolved
    The code is outputing the String if username != "user", and exits without returning anything when username = "user". The code still will not pass?see code below:
    • 2/24/23
    • 384views
    • 3comments
    0
  • Thomas Yates
    Level 1
    Question about the task Binary to hexadecimal converter
    Java Syntax, Level 11, Lesson 1
    Resolved
    I don't understan why the toBinary function will not pass?When I run the verification, I keep failing the 2nd test as shown
    • 3/10/23
    • 593views
    • 2comments
    0
  • Thomas Yates
    Level 1
    Question about the task Filling an array
    Java Syntax, Level 11, Lesson 5
    Resolved
    Odd array is failing...I keep getting a failed status, even though the visible output seems right. What would be a type of input that would cause this to fail?
    • 3/10/23
    • 410views
    • 2comments
    0
  • 1
  • ...
  • 29
  • 30
  • 31
  • 32
  • 33
  • ...
  • 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