Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Decision {
- public static void main(String[] args) {
- if(3 < 5) {
- System.out.println("Hello World!");
- }
- else {
- System.out.println("Don't say Hello World!");
- }
- char word = 'B';
- switch(word) {
- case 'A' : System.out.println("\nHow Are You?");
- break;
- case 'B' : System.out.println("\nPlease introduce yourself.");
- break;
- case 'C' : System.out.println("\nHello There!");
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement