how to get output for this code.

class a
{
public static void main(String args[])
{
for (int i=0;i<args.Length();i++)
System.out.println(args);
}
}

how can i give input for this code at netbean5.0

If you need to supply arguments when you run the program you'll need to specify them in the "Run" section of the Project Properties. Right-click the project node and choose "Properties" to access them or you can also view them from the File menu.

Arr sorry I missunderstood the question. Please ignore my pervious post.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.