Guest User

Untitled

a guest
Dec 14th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. class BasicInputOutput {
  4. public static void main(String[] args) {
  5. Scanner in = new Scanner(System.in);
  6.  
  7. System.out.print("Please enter the number of bottles: ");
  8. int bottles = in.nextInt();
  9.  
  10. System.out.println("That's a total of: "+ bottles + " bottles!");
  11. }
  12. }
Add Comment
Please, Sign In to add comment