Notices by aodhidbrbeididbe, page 50
-
hai :D
-
i g2g, see ya later :)
-
8 more messages after this one until 1,000 notices... :D
-
@miloth i didn't buy a yearbook
-
import java.util.Scanner; public class main { public static void main(String[] args) { double a; int c; int d; int s = 0; int f = 0; Scanner in = new Scanner(System.in); System.out.println("GUESS THE NUMBER!"); while(f < 10) { a = Math.floor(Math.random()*10); c = (int)a; d = in.nextInt(); if(d == c) { System.out.println("YOU GOT IT RIGHT!"); s++; } else { System.out.println("YOU WERE WRONG - THE CORRECT ANSWER WAS " + c); s--; } f++; } System.out.println("THANKS FOR PLAYING GREG'S NUMBER GUESSING GAME \n YOUR TOTAL SCORE WAS " + s); } } i added some new stuff to the code...
-
@haganbmj ok, that worked...
-
oh wow... StatusNet butchered that codes layout...
-
@haganbmj notepad++ is kinda ew... i use it for YML and nothing else...
-
import java.util.Scanner; public class main { public static void main(String[] args) { double a, b; int c; int d; Scanner in = new Scanner(System.in); a = Math.random(); b = Math.floor(a*10); c = (int)b; System.out.println("GUESS THE NUMBER!"); d = in.nextInt(); if(d == c) { System.out.println("YOU GOT IT RIGHT!"); } else { System.out.println("YOU WERE WRONG - THE CORRECT ANSWER WAS: " + c); } System.out.println("THANKS FOR PLAYING GREG'S NUMBER GUESSING GAME"); } } does that look optimized enough?
-
@haganbmj i use it for all the java stuff i do... (which isn't much - until today, today is the first day i've actually written code from scratch that was totally mine and not modifing existing code)
-
i was bored, so i made a basic random number guess thing... using scanners, math functions, ints, doubles, if...else... statements, and ==...
-
@haganbmj that was just in the choose a workspace folder dialoug... and of cource, i was the only person there who had used eclipse before...
-
@haganbmj most denfinately... some people in that class had trouble making a folder in eclipse...
-
@haganbmj it's funny how at my class, i was the youngest person there, yet the only one who could make something useful/interesting... (i was the only one using math functions and the first one to start using if...else... statements)
-
@zach121k see ya when you wake up...
-
@haganbmj i made a simple random number guesser thing earlier today in my class with 'em, but i can't access that code from here :(
-
@haganbmj now i'm playing with scanners...
-
@greydragon412 good night :)
-
@haganbmj a what?
-
@haganbmj he knows more C++ than Java... or so he says...
-
@geesee just need to do all the icons now... and a lock screen...
-
@geesee :D
-
mostly because it's so easy...
-
right now i'm loling at how my Java teacher didn't know how to convert a double into a integer...
-
@geesee green signal bars, blue wi-fi bars, and purple battery indicator sound good?
-
@geesee which would look the best in this iphone theme for the carrier logo and battery/statusbars? http://www.codethemed.com/themes/138578
-
@abigpony transformice?
-
@thelastgherkin good night :)
-
@geesee i can only choose one :(
-
working on my MLP iphone theme... http://www.codethemed.com/themes/138578