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
  • Will Irvin
    Level 3
    Harvest
    Question about the task The required number
    Java Syntax, Level 2, Lesson 5
    Under discussion
    Hmmmmmm, running out of ideas for correct solutionNot sure what I might have done wrong? I'm currently getting the the correct display but maybe I have altered the program too much and there is a specific number of lines that should be commented out? I "Run" the code and below shows the output as 19, So I'm not sure what I might have done wrong? P
    • 4/21/19
    • 1683views
    • 4comments
    0
  • Sudhansu Shekhar
    Level 6
    Jaipur
    Question about the task Arithmetic mean
    Java Syntax, Level 5, Lesson 5
    Under discussion
    Please share a way of counting the user input without asking the user to tell the input count and without using methods of Scanner, math or any predefined classes...? I need to understand the logic implimented to count the no. of user input.Please share a way of counting the user input without asking the user to tell the input count and without using methods of Scanner, math or any predefined classes...? I need to understand the logic implemented to count the no. of user input.
    • 5/31/19
    • 1437views
    • 2comments
    0
  • romeo
    Level 5
    Paramaribo
    Question about the task Drawing a rectangle
    Java Syntax, Level 4, Lesson 13
    Under discussion
    how to print horizontaly?I can only get the code to print "8" two times. The goal is to get to print 4x2 8 times?
    • 5/31/19
    • 1303views
    • 2comments
    0
  • Nithin
    Level 35
    Hyderabad
    Question about the task Let's talk music
    Java Core, Level 6, Lesson 3
    Resolved
    why output is not appearing in this code. i think code was correct any suggestion what is wrong here
    • 5/30/19
    • 2324views
    • 6comments
    0
  • Luyi
    Level 31
    Kosice
    Question about the task Census
    Java Syntax, Level 8, Lesson 8
    Resolved
    how to pass last condition?Hi all, any suggestion? I am not sure, how should I pass the last condition.
    • 5/31/19
    • 1902views
    • 3comments
    0
  • Mohamad
    Level 4
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Resolved
    can someone help?the program is all of it right but i had a problem with the last condition, i tried in many ways but i did not found the right one.... What should the code be to do the last condition?
    • 11/18/18
    • 2774views
    • 15comments
    0
  • Solanki Dhruv
    Level 18
    Surat
    Question about the task Sequential file output
    Java Core, Level 6, Lesson 13
    Under discussion
    Program run to Long!!!Where is the Problem?
    • 12/15/18
    • 2062views
    • 9comments
    0
  • romeo
    Level 5
    Paramaribo
    Question about the task 18+
    Java Syntax, Level 4, Lesson 6
    Resolved
    Please helpCant seem to figure out where I went wrong with this one...
    • 5/29/19
    • 1340views
    • 3comments
    0
  • Victor Uno
    Level 2
    Ojo
    Question about the task Bugs and features
    Java Syntax, Level 0, Lesson 8
    Resolved
    Why is code not running?please my code is not always running, what could be the issue
    • 5/29/19
    • 1399views
    • 2comments
    0
  • Sudhansu Shekhar
    Level 6
    Jaipur
    Question about the task Multiplication table
    Java Syntax, Level 4, Lesson 10
    Resolved
    I don't know what else needs to be done in this code to get it verified. Please help!Please help with this code as i'm unable to get this verified although it executes all fine.
    • 5/22/19
    • 1817views
    • 2comments
    0
  • Pioniio
    Level 22
    Schaffhausen
    Question about the task Player and Dancer
    Java Core, Level 4, Lesson 4
    Resolved
    output for player and dancer seems to work, where ist the mistake?output for player and dancer seems to work, but verification fails, can anyone help? thank you
    • 5/30/19
    • 2081views
    • 2comments
    0
  • Rusu Adelina
    Level 17
    Iasi
    Question about the task Animal identification
    Java Core, Level 2, Lesson 2
    Under discussion
    If I want to use a [switch-statement] for this exercise, how should I do? If I want to use a [switch-statement] for this exercise, how should I do?
    • 5/29/19
    • 1386views
    • 1comment
    0
  • John Michael Montuya
    Level 10
    Cebu City
    Question about the task Flip the array
    Java Syntax, Level 7, Lesson 4
    Under discussion
    How come I failed condition 1 but magically passed the remaining others?I think the code is up to spec, but please let me know if I missed out on anything. thanks!
    • 5/30/19
    • 1795views
    • 5comments
    0
  • Srividya
    Level 3
    Bangalore
    Question about the task Where does a Person come from?
    Java Syntax, Level 2, Lesson 2
    Resolved
    Where does a Person come from?Hi, In the MAIN method, I have created Person object as per the examples explained in the chapter. (Note: VariableType variableName = new TypeOfObjectBeingCreated(); ) Please guide me ...
    • 9/27/18
    • 3046views
    • 11comments
    0
  • Joy Majumdar
    Level 16
    Kolkata
    Question about the task Task about algorithms
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Is there any method to flip or reverse the arrayHow to ?
    • 4/17/19
    • 1626views
    • 4comments
    0
  • Paweł
    Level 4
    Warsaw
    Question about the task More conversions
    Java Syntax, Level 3, Lesson 8
    Resolved
    How to solve this with Math.ceil()?Here's my approach to this task. Not sure how to modify my code to pass the final test.
    • 5/30/19
    • 1664views
    • 5comments
    0
  • SWAPNIL SHUKLA
    Level 7
    Baddi
    Question about the task Maximum of four numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    Not verifyingMy last condition is not verifying .It's running with even 1111 and displaying 1 but not verifying;
    • 2/17/19
    • 1564views
    • 5comments
    0
  • Omer Yavor
    Level 14
    Tel Aviv
    Question about the task Longest sequence
    Java Syntax, Level 8, Lesson 6
    Resolved
    I tried looking at others' code and still couldn't figure it out...would appreciate some help :)
    • 5/26/19
    • 1653views
    • 6comments
    0
  • Sergei Polakov
    Level 11
    Donets'k
    Question about the task Stack trace revisited
    Java Syntax, Level 9, Lesson 2
    Resolved
    Nothing understandtoo long printlist
    • 5/27/19
    • 1944views
    • 2comments
    0
  • romeo
    Level 5
    Paramaribo
    Question about the task Three numbers
    Java Syntax, Level 4, Lesson 6
    Under discussion
    How can I get the index?What kind of code can I use to print out the index of the number that is different? 1, 2, or 3? I know it has something to do with using arrays, but that is way over my head right now...
    • 5/29/19
    • 1549views
    • 2comments
    0
  • Henk
    Level 19
    Pretoria
    Question about the task User, loser, coder and programmer
    Java Core, Level 4, Lesson 8
    Resolved
    Difference between the two ? One works and other one does not work.This works while (true) { key = reader.readLine(); if (key.equals("user")){ person = new Person.User(); doWork(person); } else if (key.equals("loser")){ person = new Person.Loser();
    • 5/20/19
    • 1424views
    • 3comments
    0
  • Eduardo
    Level 23
    Coyoacan
    Question about the task Displaying a stack trace
    Java Core, Level 6, Lesson 3
    Resolved
    Tried a couple of thingsHi! I tried some methods for getting the stack, but I can't get it, anyone got a hint? Thanks
    • 4/26/19
    • 1687views
    • 1comment
    0
  • Darko Jakimovski
    Level 18
    Kriva Palanka
    Question about the task Reinforce the singleton pattern
    Java Core, Level 5, Lesson 12
    Under discussion
    Can't see my mistakeAny help would be much appreciated. It says that "The readKeyFromConsoleAndInitPlanet method must be called in the Solution class's static block." when it clearly is, as are all of the unmet conditions.Especially the last condition which is all of the classes to be in different files :/
    • 5/15/19
    • 1747views
    • 10comments
    0
  • Deep Maheshwari
    Level 10
    Nanded
    Question about the task Create a Rectangle class
    Java Syntax, Level 5, Lesson 9
    Under discussion
    It has passed the verification but it shows my solution is better than only 1 % of others . package com.codegym.task.task05.task0520; /* Create a Rectangle class */ public class Rectangle { //write your code here int top; int left; int height= 0 ; int width= 0 ; public Rectangle(int top,int left,int height,int width){ this.top = top; this.left
    • 5/29/19
    • 1473views
    • 2comments
    0
  • Wojtek
    Level 23
    Solec-Zdroj
    Question about the task Sequential file output
    Java Core, Level 6, Lesson 13
    Under discussion
    Can you give me a hint?I do not now how to set properly setFileName and getFileContents methods.
    • 2/28/19
    • 1683views
    • 2comments
    0
  • Harinath Reddy A
    Level 7
    Delhi
    Question about the task StringHelper class
    Java Syntax, Level 6, Lesson 8
    Under discussion
    whats wrong in this code??What changes should I make
    • 4/10/19
    • 1774views
    • 3comments
    0
  • hidden #10451198
    Level 14
    Question about the task Going national
    Java Syntax, Level 8, Lesson 11
    Archived
    Problem with dotThis code is working well, but when i type: "sam i am." then on the end i get "Sam I Am" without dot. What I can do here to get the result with dot on the end?
    • 5/29/19
    • 1681views
    • 2comments
    0
  • hidden #10451198
    Level 14
    Question about the task Five winners
    Java Syntax, Level 8, Lesson 11
    Resolved
    Everything working in IntelliJ IDEA but not in codegymWhat's wrong here?
    • 5/29/19
    • 1948views
    • 2comments
    0
  • Mohamed Nagy
    Level 7
    Alexandria
    Question about the task Crossing the road blindly
    Java Syntax, Level 4, Lesson 4
    Resolved
    PLEEEASE I AM getting tired from all of thishelp me again
    • 5/16/19
    • 2622views
    • 11comments
    1
  • Bogdan Codreanu
    Level 23
    Question about the task Cat relations
    Java Syntax, Level 6, Lesson 11
    Resolved
    i can not find the mistake can someone help , please
    • 5/27/19
    • 1945views
    • 2comments
    0
  • 1
  • ...
  • 318
  • 319
  • 320
  • 321
  • 322
  • ...
  • 375
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