CodeGym /Courses /Java Core /Practice overloading methods Practice overloading methods Java Core Level 2, Lesson 4 Available "Hello, Amigo! It's me—again. I've got a gift for you: a bunch of interesting assignments. No need to thank me. Take it easy!" 3 Task Java Core, level 2, lesson 4 Locked We're on overload! We're on overload! 3 Task Java Core, level 2, lesson 4 Locked int and Integer int and Integer 3 Task Java Core, level 2, lesson 4 Locked Freedom of the press Freedom of the press 3 Task Java Core, level 2, lesson 4 Locked Three methods and a minimum Three methods and a minimum 3 Task Java Core, level 2, lesson 4 Locked Three methods and a maximum Three methods and a maximum Comments (16) TO VIEW ALL COMMENTS OR TO MAKE A COMMENT, GO TO FULL VERSION Boat Level 40, Germany, Germany 24 April 2023 I'm slightly confused here. Syntax was supposed to be the easy part with Core dramatically picking up the intensity, yet so far the Core quest is literally just repeating exact lessons from the Syntax quest and repetitive tasks ad nauseum. Anonymous #10782038 Level 24, United States of America 29 March 2024 They must have changed something because this is in the Syntax group still. Andrew Evans Level 17, San Jose, Canada 22 February 2022 Pretty repetitive. Just basically grabbing code from the different exercises and modifying it. Needs to be more difficult, it's core not syntax Stanislav Mayer Level 15, Czech Republic 14 February 2022 way too easy, again... Binesh Level 16, India 9 November 2019 Slow & Steady.... Ash Ka Level 13, Calgary, Canada 28 October 2019 Marching on! Renat Mukhametshin Level 16, Pervouralsk, Russain Federation 30 August 2019 let's go forward holybible Level 28, Plovdiv, Bulgaria 26 August 2019 sweet moving on Isenraf Level 20, Douala, Cameroon 3 July 2019 pass in a new Integer object as argument to the parameter reference in the second print method Bert Doe Level 22, Flanders, Belgium 21 April 2019 moving on..! DEADPOOL Level 14, Atlantis, INDIA 19 August 2018 how to send Integer value as parameter..lol Azhar Iqbal Level 18, Multan, Pakistan 24 September 2018 create object of the Integer class and pass to it. like Integer obj = new Integer(10); علي حجار Level 18, Bursa, Turkey 31 December 2018 you can do it using casting inside brackets like this ((Integer)10) Oleh Level 32, Kyiv, Ukraine 27 February 2019 Seems like "new Integer(int)" constructor is deprecated from jdk 9. Oracle advices to use Integer.valueOf(int) for better perfomance. Ivaylo Trifonov Level 26, Madrid, Spain 13 April 2019 Casting, is what I did. :) Devonte A Level 18, Rubery, United Kingdom 28 June 2020 Integer a = 5; also works.
GO TO FULL VERSION