user interface - Adding my code into a JFrame -
so can make frame appear. have program runs on eclipse console. need pass program console frame. how that? or if long of explanation can point me somewhere may learn how it? here little bit of code. need add in if
statement frame.
jframe frame = new jframe("amendments"); frame.setvisible(true); string z = "y"; while (z.equalsignorecase("y")) { random x = new random(); int y =x.nextint(1); scanner in = new scanner(system.in); if (y == 0) { system.out.println("what first amendment?"); string answer = in.nextline(); system.out.println("your answer: " + answer); system.out.println("right answer: right rapps religion split between practice , establish"); }
Comments
Post a Comment