Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,193,281 members, 7,950,464 topics. Date: Monday, 16 September 2024 at 02:39 PM |
Nairaland Forum / Science/Technology / Programming / Java Codes For Beginners And Pros (relaxation Thread) (1258 Views)
Download 18 Python Programming Books For Beginners And Veterans / Guess The Number - Java Codes / Python �� Beginners And Experts (2) (3) (4)
Java Codes For Beginners And Pros (relaxation Thread) by SilverG33k(m): 11:34am On Jun 02, 2017 |
To the java pros.... I'm not much of a java code writer but I know the basics so don't attack me Yours Sincerely Silver ................. I just wrote the below code and I don't even know what's going to be the output.... Turn yourself to a compiler and tell us the output of the code public int rand() { Integer random = {"1", "2", "3", "4", "5"}; Integer randomGetter = (int) Math.random() * 5; Integer finalRandom = random[randomGetter]; Integer answer = finalRandom; return answer; } //if my code has a logical error, I did it deliberately, it is my error, not yours (^_^) my question iz..... What will be the output of the code above?? |
Re: Java Codes For Beginners And Pros (relaxation Thread) by Nobody: 12:02pm On Jun 02, 2017 |
I am a newbie in Java. ur code was not written properly but the output are 5 10 15 20 25 |
Re: Java Codes For Beginners And Pros (relaxation Thread) by SilverG33k(m): 4:40pm On Jun 02, 2017 |
proxy20:Oya write it properly |
Re: Java Codes For Beginners And Pros (relaxation Thread) by rayyspark(m): 6:09pm On Jun 02, 2017 |
SilverG33k:try 2 be polite |
Re: Java Codes For Beginners And Pros (relaxation Thread) by SilverG33k(m): 8:34pm On Jun 02, 2017 |
rayyspark:My apologies |
Re: Java Codes For Beginners And Pros (relaxation Thread) by SilverG33k(m): 8:34pm On Jun 02, 2017 |
rayyspark:My apologies |
Re: Java Codes For Beginners And Pros (relaxation Thread) by ABCthingx: 5:34pm On Dec 17, 2019 |
Naso this thread take die |
(1) (Reply)
Pls I Need Someone That Can Teach Me How To Program Arduino Uno / I Need A Website / Any Mobile App That Can Calculate Your Age In Months, Weeks, Hours, Minutes?
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 8 |