Java Codes

Command Line

class comline
{
public static void main(String args[])
{
int count,i=0;
String s;
count=args.length;
System.out.println("Number of Argument ="+count);

while(i<count)
{
s=args[i];
i=i+1;
System.out.println
(i+
":"
+s+"..!");
}
}
}


Posted by Chandresh Mahajan
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Program: General

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2013 (39)
    • ►  October (7)
    • ▼  November (29)
      • Banner
      • Smiley
      • Creating Thread
      • Thread Test
      • Thread Methods : yield(),stop(),sleep()
      • Thread Priority
      • Command Line
      • Hello Java
      • Suspend And Resume Thread
      • Java - Overriding
      • Draw lines,Rectangles And Ovals
      • Addition of Two Numbers Using Applet
      • Try-Catch Block
      • Try-Catch-Finally
      • Get Input From User using Scanner
      • Even Or Odd
      • Static Block
      • Multiple Class
      • Largest among Three Numbers
      • For Each Loop (Enhanced For Loop)
      • Find Your IP Address
      • Bubble Sort
      • Simple Event Handing
      • Usage of Font and Color class
      • Constructor Overloading
      • Playing audio clips
      • Use of MouseMotionListner
      • Button Demonstration
      • CheckBox Demonstration
    • ►  December (3)

Programs

General (12) Applet (8) File (5) Thread (5) GUI Based Program (4) Event Handling (2) Exception (2) Swing (1)

Popular Posts

  • Simple Calculator Using Applet
  • Addition of Two Numbers Using Applet
  • CheckBox Demonstration
  • Thread Methods : yield(),stop(),sleep()
  • Display a Label Contaning Both an Icon and A String
  • Button Demonstration

About Me

Chandresh Mahajan
View my complete profile
Picture Window theme. Powered by Blogger.