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
  • Alan
    Level 8
    montreal
    Question about the task Good or bad?
    Java Syntax, Level 4, Lesson 4
    Resolved
    why when i take out the else function it prints out 4 times? (The number is less than 5 -The number is greater than 5- The number is equal to 5 - The number is greater than 5 why when i take out the else function it prints out 4 times? thank you! The number is less than 5 The number is greater than 5 The number is equal to 5 The number is greater than 5
    • 10/24/21
    • 697views
    • 3comments
    0
  • vamsi mokari
    Level 13
    Hyderabad
    Question about the task Family census
    Java Syntax, Level 7, Lesson 12
    Under discussion
    whats wrong in creating objects public class Solution { public static void main(String[] args) { List humanObj = new ArrayList(); humanObj.add(new Human("Vamsi",true,22)); humanObj.add(new Human("Vamsi1",true,22)); humanObj.add(new Human("Vamsi2",true,22)); humanObj.add(new Human("Vamsi3
    • 10/26/21
    • 812views
    • 1comment
    0
  • Chris McClinch
    Level 14
    Ashburn
    Question about the task Binary to hexadecimal converter
    Java Syntax, Level 9, Lesson 2
    Under discussion
    Another "It works in the IDE, but appears to fail on an unspecified parameter" issueI'll admit this isn't the most elegant solution, but it works perfectly in IDE, including with binary numbers whose lengths are not multiples of 4. When I try to validate in CodeGym, though, I get a "String index 0 out of range" error in the toHex method, which shouldn't be possible.
    • 10/26/21
    • 790views
    • 4comments
    0
  • Harinath Reddy A
    Level 7
    Delhi
    Question about the task Dog registration
    Java Syntax, Level 5, Lesson 9
    Under discussion
    helpwhy are my test cases failing
    • 3/23/19
    • 1668views
    • 8comments
    2
  • Stian Eggum Tellnes
    Level 15
    Question about the task Number of letters
    Java Syntax, Level 10, Lesson 11
    Resolved
    Why are the requirements not being met?Can't figure out why I'm not meeting the last two requirements here. There are 26 lines, and there are letters, a space, and a number..
    • 10/25/21
    • 967views
    • 5comments
    0
  • null
    Level 0
    Al Jizah
    Under discussion
    It works for -3,-2,-1 but for 0 and 1 it’s infinite NaN so,what to do ?import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double x; System.out.print("x="); x = sc.nextDouble(); sc.close(); System.out.println("result:"); if (x < -3 || x > 1) { System.out.println("erro
    • 10/25/21
    • 851views
    • 0comments
    0
  • Shashikant Sharma
    Level 8
    Surat
    Question about the task Shuffled just in time
    Java Syntax, Level 7, Lesson 12
    Resolved
    What Next?I Somehow Managed To Remove The First 4 Elements But How Do I Add Them Now At Last. The Output of This Program is As Follows: [cat, dog, program, car] While The Desired Output is: [cat, dog, program, car, father, mother, son, daughter]
    • 10/3/21
    • 1165views
    • 5comments
    0
  • Jon Hjerting
    Level 1
    Oslo
    Question about the task Calculating salaries
    Java Core, Level 9, Lesson 11
    Resolved
    I am failing the last testI seem to be getting the right answer, but I guess something is wrong as I am not passing the last test. Can anyone give me a hint as to where the problem is with my code?
    • 10/22/21
    • 1231views
    • 1comment
    0
  • Banak
    Level 29
    Saint-Gratien
    Question about the task Archiver (part 8)
    Java Multithreading, Level 7, Lesson 15
    Under discussion
    Ladt question Could someone help me for the last condition !!
    • 10/23/21
    • 697views
    • 1comment
    0
  • Khongpak Phupkdee
    Level 15
    Chiangrai
    Question about the task Debug, debug, and again debug
    Java Core, Level 5, Lesson 12
    Resolved
    I don't understand when I change protected to private modifier.Why?I don't understand order command. In line 21 form Protected (the original source) I think the value of f1 form Class B send to Class A Because Class B call super(f1) (Line 30) So,f1 at Class A equal to 6(that true?) I debug ... LINE 17 this.f1 (has value equal 6) then LINE 18 initialize() call LINE
    • 10/21/21
    • 459views
    • 2comments
    0
  • Stian Eggum Tellnes
    Level 15
    Question about the task Task about algorithms
    Java Syntax, Level 9, Lesson 11
    Under discussion
    For some reason I am unable to update the original array[] from main?So, this is the second version of a solution I deleted, and on none of them I was able to make the array[] from main be updated with the sorted values. Anyone able to see why?
    • 10/22/21
    • 574views
    • 4comments
    0
  • BigRatBaby
    Level 20
    Washington
    Question about the task Symbol frequency
    Java Core, Level 8, Lesson 11
    Under discussion
    Curious as to where i went wrong hereThank!
    • 10/22/21
    • 521views
    • 2comments
    0
  • Josephine
    Level 2
    Normal
    Question about the task Space Invaders (Part 9/34)
    Games, Level 0, Lesson 6
    Under discussion
    Please help ,should i need to intialize the width in Enemyfleet classjava:79: error: cannot find symbol double o = ships.get(0).x + width; ^ symbol: variable width location: class com.codegym.games.spaceinvaders.gameobjects.EnemyFleet
    • 10/21/21
    • 510views
    • 1comment
    0
  • Chris McClinch
    Level 14
    Ashburn
    Question about the task Everything you need to know about Earth
    Java Syntax, Level 7, Lesson 7
    Under discussion
    LAND_AREA variable?I'm following the spec, but getting the following failure message: "Be sure that there is a LAND_AREA variable in the Earth class." The other three variables validate just fine. Any ideas what I'm doing wrong?
    • 10/21/21
    • 742views
    • 4comments
    0
  • Chris McClinch
    Level 14
    Ashburn
    Question about the task Creating a two-dimensional array
    Java Syntax, Level 6, Lesson 6
    Under discussion
    Not sure what the desired output isI've written code that populates a multidimensional array of the correct length with sub-arrays filled with the correct number of nulls, but apparently that's not what's meant by "In the main(String[]) method, initialize and fill the two-dimensional array as outlined in the task conditions". Is this
    • 10/19/21
    • 872views
    • 3comments
    0
  • Abdelrahman
    Level 5
    Amman
    Question about the task Plan to conquer the world
    Java Syntax, Level 3, Lesson 8
    Resolved
    Help.Anyone know why this is wrong?
    • 1/6/21
    • 1046views
    • 7comments
    0
  • Henrique
    Level 41
    São Paulo
    Question about the task Archiver (part 8)
    Java Multithreading, Level 7, Lesson 15
    Resolved
    help me with last condition please"The main method must call the askOperation() method to get the current operation." but i am calling it!
    • 8/12/20
    • 831views
    • 7comments
    0
  • Noob_Coder
    Level 22
    Springfield
    Question about the task Request parser
    Java Core, Level 5, Lesson 12
    Resolved
    actually have no idea what is asking aboutI think my code is pretty correct, but the only thing which could be wrong is the requirement, and it is so confusing because it doesn't give more test cases for what exactly is a right output. Need help, thx guys. My understanding is the information splits with & and will output the first line
    • 10/16/21
    • 964views
    • 9comments
    0
  • Gellert Varga
    Level 23
    Szekesfehervar
    Question about the task Replacing numbers
    Java Core, Level 9, Lesson 11
    Resolved
    Is Ivan Duka's comment right or not?His comment is written in this link: https://codegym.cc/quests/lectures/questcore.level09.lecture11 and there he wrote the followings: >>Attention "Replacing numbers"! . . . the example given is WRONG - I mean the number and dot immediately after is not counted as number, only when there i
    • 10/14/21
    • 634views
    • 2comments
    0
  • Rashaad A Crews
    Level 5
    Long Beach
    Question about the task Sum of 5 numbers
    Java Syntax, Level 3, Lesson 4
    Under discussion
    Not sure why this is failingI don't see why the last requirement isn't being met.
    • 10/13/19
    • 1247views
    • 4comments
    0
  • Alec Jensen
    Level 5
    Arlington
    Question about the task Sum of 5 numbers
    Java Syntax, Level 3, Lesson 4
    Under discussion
    Can someone show me a more simple way to do this?I just need to know a simpler way to do the code. I did a basic System.out.println(1 + 2); add on the next number 5 times and got the solution correct. But I know that I am doing more work than needed. Please explain how to use a better way. I read about loops? can someone explain?
    • 12/20/19
    • 1345views
    • 5comments
    0
  • Indranil Chakraborty
    Level 3
    United Kingdom
    Question about the task Hello, StarCraft!
    Java Syntax, Level 3, Lesson 4
    Resolved
    Goodbye, Starcraft!Pls halp😐
    • 9/11/21
    • 857views
    • 5comments
    0
  • Gellert Varga
    Level 23
    Szekesfehervar
    Question about the task Long words
    Java Core, Level 9, Lesson 11
    Resolved
    Ran it on a few test files and it seemed fineMaybe it's too late here (01:17) and I can't see the problem...
    • 10/14/21
    • 1246views
    • 8comments
    0
  • Albin
    Level 14
    Chongqing
    Resolved
    The CodeGym server is unavailable. Wait a little, restart IntelliJ IDEA and try again.How to solve "The CodeGym server is unavailable. Wait a little, restart IntelliJ IDEA and try again."?????????
    • 12/3/20
    • 820views
    • 4comments
    1
  • Seferi
    Level 22
    Question about the task Long words
    Java Core, Level 9, Lesson 11
    Resolved
    It's working perfectly and I'm using FileWriter but it still complains..Help is appreciated.. Thanks.
    • 11/19/20
    • 1009views
    • 8comments
    0
  • Victor Omoha
    Level 8
    Raleigh
    Question about the task We don't need repeats
    Java Syntax, Level 8, Lesson 8
    Resolved
    what am i doing wrong pleasepackage com.codegym.task.task08.task0817; import java.util.HashMap; import java.util.Map; import java.util.*; /* We don't need repeats */ public class Solution { public static HashMap createMap() { //write your code here HashMap map = new HashMap(); map.put("Victor",
    • 10/14/21
    • 887views
    • 4comments
    0
  • Jason
    Level 3
    Ottawa
    Under discussion
    Why are interfaces and almost everything in Java referred to as contracts?I do not understand the use of legal jargon to describe a template or format etc within a programming language. When I write a method with parameters, I am not making a contract, I am making a template that requires that input or it wont work. Sure a contract is the same in the sense that if you d
    • 10/1/21
    • 522views
    • 4comments
    0
  • Dan
    Level 26
    Clarksville
    Question about the task Adding a file to an archive
    Java Collections, Level 1, Lesson 6
    Under discussion
    Unsure of what the problem isTo my fellow CodeGym friends, I do not know what could possibly be wrong with my code. I have spent so long working on this, and I will admit to even cheating by looking at the solution. I fail to see any cause for my lack of validation. I hope that some of you experienced solvers out there can sho
    • 10/11/21
    • 779views
    • 7comments
    0
  • Hoist
    Level 38
    San Diego
    Question about the task Multiplication table
    Java Syntax, Level 6, Lesson 5
    Under discussion
    Help pls --- Error code: 10x10 Table / Array is not *initialized / instantiated.I have built the Multiplication table 3 different ways. Error code is 10x10 Table / Array is not *initialized / instantiated. No clue ... see code
    • 10/12/21
    • 1317views
    • 10comments
    0
  • Jurij Thmsn
    Level 29
    Flensburg
    Question about the task Snake (part 18)
    Java Multithreading, Level 2, Lesson 18
    Resolved
    How to make it faster?On my device, the snake game seems to stutter. Maybe it is too slow(it is quite old). I guess the problem is the print method? (not quite sure, though) I tried to make the print method run faster but I am not quite satisfied yet. The way I am iterating through the snake's body is bugging me, I gu
    • 10/12/21
    • 573views
    • 4comments
    0
  • 1
  • ...
  • 57
  • 58
  • 59
  • 60
  • 61
  • ...
  • 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