+ 3

Can someone explain to me how does insertion code works on this one?

I do want to learn the algorithm of this in laymans term, not familliar with static int since im a beginner, help please thank you! 💗🙏 https://code.sololearn.com/cY3JIh8TX4KV/?ref=app

25th Apr 2021, 1:45 AM
Lia Costa ✹
Lia Costa ✹ - avatar
3 RĂ©ponses
+ 3
The static keyword is taught in the Java course Classes & Objects lesson 37.1, but in this use case it means that the method belongs to the class and not an instance of the class. Meaning that it can be used without creating an instance of the class.
25th Apr 2021, 1:54 AM
ChaoticDawg
ChaoticDawg - avatar
+ 2
thanks for the info!
25th Apr 2021, 2:50 AM
Lia Costa ✹
Lia Costa ✹ - avatar
0
I think this code is working fine..
25th Apr 2021, 10:28 PM
Talha Elahi
Talha Elahi - avatar