0

My Rating (how does this look?)

class MyClass { public static void main (String[ ] args) { int rating = 5; if (rating ==5 ) { System.out.println("I really love this app, it's great for learning some basic coding."); } else { System.out.println("It's still really good, though"); } } }

28th Dec 2016, 3:55 PM
CarnoFred
CarnoFred - avatar
3 odpowiedzi
+ 1
Personally, I would change the positive review to print out on the condition the rating is greater than or equal to 5.... i.e. if (rating >= 5) ... but that's just me, I see no problems with the code itself.
29th Dec 2016, 6:39 AM
Eric Canull
Eric Canull - avatar
0
I thought about that, but I still find some aspects of the < and > confusing. Thanks though.
29th Dec 2016, 6:51 AM
CarnoFred
CarnoFred - avatar
0
Is just love dis app , I am spending more time in dis app, I loved it
29th Jan 2017, 2:10 PM
raju roxx
raju roxx - avatar