Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- import java.net.*;
- import java.io.*;
- public class Xbmcremote
- {
- public static void main(String[] args)
- {
- Scanner kb = new Scanner(System.in);
- String direction = "";
- System.out.print("Up, Down, Left, or Right? ");
- direction = kb.nextline();
- switch(direction)
- {
- case "up":
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement