The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled Java Code
Posted by: code2 | January 28, 2010 @ 2:42am
Java Code
[
Download
]
import java.util.Scanner; public class userInterface { public static int switchChoice; public static String myverb; public static String word; public static Scanner input = new Scanner(System.in); public static void main(String[] args) { System.out.println("Welcome to Tommy's amazing Japanese translation service!"); System.out.println("Enter the selection of what you would like to do:"); System.out.println(""); System.out.println("(1) Conjugate a verb. (4) More to come!"); System.out.println("(2) Translate a word. (5) More to come!"); System.out.println("(3) More to come! (6) More to come!"); switchChoice = input.nextInt(); input.nextLine(); switch(switchChoice){ case 1:{ System.out.println("Enter the verb to be conjugated: "); myverb = input.nextLine(); System.out.println(myverb); // verbConjugation.verbClassification(verb); break; } case 2:{ System.out.println("Enter the word to be translated: "); word = input.nextLine(); // dictionary.dictionaryDatabase(word); break; } } } }
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.50 / 8
60 Votes
http://codebin.yi.org/469
page generated in 0.01 seconds