Full width home advertisement

Java

Tech News

Ad

  1. package clgPracticals;
  2.  
  3. class pr7 {
  4. public static void main(String[] args) {
  5. try {
  6. String s=args[0];
  7. String s1=args[1];
  8.  
  9. System.out.println("First value "+s);
  10. System.out.println("Second Value "+s1);
  11. }catch(ArrayIndexOutOfBoundsException e) {
  12. System.out.println("Please Enter Command line Arguments");
  13. }
  14. }
  15. }
  16.  

No comments:

Post a Comment

Bottom Ad [Post Page]