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
  • Vinay Bansode
    Level 1
    Pune
    Under discussion
    Can I Run Advanced Java's Program Can I Run Advanced Java's Program On this Application
    • 08.11.2022
    • 190views
    • 0comments
    0
  • Sourav Kumar Rana
    Level 9
    Delhi
    Question about the task Price of apples
    Java Syntax, Level 4, Lesson 1
    Under discussion
    here is the solution worked for mepackage com.codegym.task.task04.task0402; /* Price of apples */ public class Solution { public static void main(String[] args) { Apple apple = new Apple(); apple.addPrice(50); Apple apple2 = new Apple(); apple2.addPrice(100); System.out.println("The cos
    • 14.01.2019
    • 2581views
    • 12comments
    0
  • matemate123
    Level 50
    Kraków
    Question about the task StringTokenizer
    Java Syntax, Level 10, Lesson 6
    Resolved
    What's wrong?I have read that in this exersise may be bug. I don't know what to do, because everything in this program do it's funkction.
    • 06.11.2022
    • 289views
    • 2comments
    0
  • Vadim “迪姆哥”
    Level 35
    Question about the task Buy an elephant
    Java Syntax, Level 15, Lesson 3
    Resolved
    My code are identical to correct solution, but validator didnt let it passWHY?
    • 01.11.2022
    • 388views
    • 3comments
    0
  • Vadim “迪姆哥”
    Level 35
    Question about the task Filling an array
    Java Syntax, Level 6, Lesson 8
    Under discussion
    code meets requirenment of taskSo, according to Console output, if array size is 20(even), it fills with : [10,10,10,10,10,10,10,10,10,10,13,13,13,13,13,13,13,13,13,13] Then if array size is 21(odd), it fills as [10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,13,13,13,13,13] According to console output, my code met the requirem
    • 12.10.2022
    • 567views
    • 10comments
    0
  • GioGTelian
    Level 10
    Question about the task Minimum of N numbers
    Java Syntax, Level 6, Lesson 3
    Resolved
    why it doesnt work?i need to know i spent too much time on this!!
    • 26.10.2022
    • 394views
    • 1comment
    2
  • Anonymous #11149234
    Level 6
    United States of America
    Question about the task Comparing strings by reference
    Java Syntax, Level 3, Lesson 9
    Under discussion
    why not equals?why not equals() ? i tried so manny times thinking I was supposed to use equals to compare?? please
    • 27.10.2022
    • 399views
    • 2comments
    0
  • Weichen Ouyang
    Level 25
    San Jose
    Question about the task Cache based on SoftReference
    Java Collections, Level 4, Lesson 6
    Under discussion
    Please help me out: I don't understand the requirement for the put methodI can get it right for the put method of the SoftCache. I will really appreciate anyone could offer some help.
    • 26.09.2019
    • 1314views
    • 5comments
    0
  • Deepanshu Pathak
    Level 3
    Jakarta
    Question about the task How to take over the world
    Java Syntax, Level 2, Lesson 8
    Under discussion
    how to input the scanner class how to input the scanner class
    • 18.10.2022
    • 400views
    • 2comments
    0
  • Dawn( #11020889)
    Level 37
    Toronto
    Question about the task Shall we play?
    Java Core, Level 6, Lesson 13
    Under discussion
    what's wrong with my code? Please help!Why the code can not fit the third require? Someone give a hint? Thanks a lot!
    • 29.10.2022
    • 483views
    • 1comment
    0
  • Amber Singh Rathour Pandey
    Level 8
    Delhi
    Question about the task To the top of the list
    Java Syntax, Level 7, Lesson 6
    Under discussion
    General query about adding things in ArrayListIf I do this, for(int i = 0; i < 10; i++) { list.add(0, r.readLine()); } So, list is an ArrayList, I thought it will add the element on the first position, then, when It will add the second time at the same place, the previous element should've disappeared, but it didn't. Instead, it kept
    • 27.10.2022
    • 321views
    • 0comments
    0
  • Amber Singh Rathour Pandey
    Level 8
    Delhi
    Question about the task Longest string
    Java Syntax, Level 7, Lesson 6
    Under discussion
    Regarding an loop syntax in the solution For syntax is weird. for(string element : strings) { ... }
    • 25.10.2022
    • 320views
    • 3comments
    0
  • Dedcom
    Level 19
    Lahore
    Question about the task Clew
    Java Core, Level 6, Lesson 13
    Under discussion
    Whats the problem here.
    • 02.03.2019
    • 1781views
    • 10comments
    0
  • Raj Mishra
    Level 15
    India
    Question about the task Working with dates
    Java Syntax, Level 8, Lesson 11
    Under discussion
    Dont understand why my code is failingI don't understand why my 2 validations are failing if I already have used 2 methods in solution class and its returning true for odd number odd days. Could you please help?
    • 19.05.2020
    • 670views
    • 5comments
    0
  • Amber Singh Rathour Pandey
    Level 8
    Delhi
    Question about the task One large array and two small ones
    Java Syntax, Level 7, Lesson 4
    Under discussion
    Come on....Out of Bounds?! What is out of bounds? lol
    • 23.10.2022
    • 474views
    • 1comment
    0
  • Amber Singh Rathour Pandey
    Level 8
    Delhi
    Question about the task Static cats
    Java Syntax, Level 6, Lesson 11
    Under discussion
    General QueryIn the Cat constructor, I thought somethng should be here when the class is called, but in the original solution, it added nothing. I was creating the objects like this, Cat cat1 = new Cat(); Cat cat2 = ' ' ' ' '' '' '' That's why there should have been something in the construc
    • 22.10.2022
    • 351views
    • 4comments
    0
  • Amber Singh Rathour Pandey
    Level 8
    Delhi
    Question about the task Calculator
    Java Syntax, Level 6, Lesson 8
    Under discussion
    Why is this not working?public static double percent(double a, double b) { return (a * b) / 100; * I changed parameters from int to double, expecting to return a decimal type number. This test only accepts parameter multiplied by 1.0, I understand this forces the compiler, but former should have worked.....
    • 22.10.2022
    • 331views
    • 3comments
    0
  • Maravelias Giorgos
    Level 6
    Heraklion
    Question about the task Cutting down the middle
    Java Syntax, Level 6, Lesson 5
    Under discussion
    Always failed , why ?The results of my code are the expected . But task always failed . I have try two approaches
    • 21.10.2022
    • 333views
    • 2comments
    0
  • Denis
    Level 22
    Kharkiv
    Question about the task Airport
    Java Core, Level 6, Lesson 7
    Under discussion
    One condition. Pls me plsgive me a code pls
    • 27.06.2019
    • 1200views
    • 4comments
    0
  • Nicu Bubuioc
    Level 6
    Question about the task Executing a snippet of code
    Java Syntax, Level 5, Lesson 7
    Archived
    "Cannot find local variable "loop"after i press alt + f8 and try to execute the code i get the "Cannot find local variable "loop"
    • 06.07.2022
    • 995views
    • 3comments
    0
  • AG09Mex
    Level 28
    Question about the task Path update
    Java Syntax, Level 9, Lesson 5
    Resolved
    I'm not sure what the the issue with my code is. The output seems to be fine.
    • 19.10.2022
    • 423views
    • 2comments
    0
  • hanshith
    Level 2
    guntur
    Question about the task Amigo is very smart
    Java Syntax, Level 1, Lesson 1
    Under discussion
    why you don't telling "how to do coding" ? I want to learn about coding perfectly?
    • 01.10.2022
    • 484views
    • 1comment
    0
  • Martin
    Level 31
    Roden
    Question about the task Snake (Part 1/20)
    Games, Level 0, Lesson 1
    Under discussion
    Create a new project for the Snake game or not?How to start in IDEA the development of the Snake game?
    • 19.10.2022
    • 370views
    • 1comment
    0
  • Vadim “迪姆哥”
    Level 35
    Question about the task StringTokenizer
    Java Syntax, Level 10, Lesson 6
    Under discussion
    PLEASE, correct the task or validatorIn the task, you mentioned that maximum count of tokens must be 6. So I implemented my code within that restriction, also returned array of strings without "null" elements, but validator didn't let it pass
    • 19.10.2022
    • 359views
    • 1comment
    0
  • DemonzDoesCoding
    Level 1
    Jakarta
    Question about the task Amigo is very smart
    Java Syntax, Level 1, Lesson 1
    Under discussion
    i don't see anything wrongi made it right but what's the position mean?
    • 29.09.2022
    • 567views
    • 3comments
    0
  • SRINIVASAN MUKUNDH
    Level 16
    Chennai
    Question about the task Second smallest number entered
    Java Syntax, Level 4, Lesson 5
    Under discussion
    About smallest integer Why in this task the smallest integer is 5? Because why I am asking the question, the input 4 is smaller then input 5.....
    • 18.10.2022
    • 366views
    • 1comment
    0
  • William Wallace
    Level 3
    Bielsko-Biala
    New
    At which stage it will be explained how to instal Intelij and CodeGym plugin for it?Hi, As in the subject of this question: At which stage it will be explained how to instal Intelij and CodeGym plugin for it? Thanks, W.W.
    • 18.10.2022
    • 319views
    • 0comments
    0
  • Amber Singh Rathour Pandey
    Level 8
    Delhi
    Question about the task Seeing dollars in your future
    Java Syntax, Level 4, Lesson 10
    Under discussion
    QueryI can't multiply String like this, ''S'' * 10. Why does it give error?
    • 11.10.2022
    • 463views
    • 4comments
    0
  • hendra gunawan
    Level 9
    tebing tinggi
    Question about the task Adding
    Java Syntax, Level 4, Lesson 10
    Resolved
    what's wrong with my code? please helpI'm still stuck with this
    • 18.10.2022
    • 625views
    • 3comments
    0
  • mr batman
    Level 0
    Kuala Lumpur
    Under discussion
    (Using the FactorialCalculator): Modify the program to allow input on what factorial is required instead of 10.// Iterative factorial method. public class FactorialCalculator { // recursive declaration of method factorial public long factorial( long number ) { long result = 1; // iterative declaration of method factorial for ( long i = number; i >= 1; i-- ) result *= i; return result; } // end me
    • 17.10.2022
    • 371views
    • 0comments
    0
  • 1
  • ...
  • 36
  • 37
  • 38
  • 39
  • 40
  • ...
  • 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