Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class static1
- {
- public static void main(String[]L)
- {
- if (L.length==0)
- System.err.println("Error!");
- else
- {
- if (L[0].equalsIgnoreCase("add") )
- {
- System.out.println("Ok you want to add");
- }
- else
- {
- if (L[0].equalsIgnoreCase("mult") )
- {
- System.out.println("Ok you want to mult");
- }
- else
- System.out.println("Error!");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment