public int countArguments( String args[] ) {
logger.debug( "In countArguments(..)" );
String [] readArray= new String [10];
for ( int i=0; i<readArray.length; i++ ) {
for(int count: readArray){
count=count+i;
System.out.println( "Number of arguments = " + count );
}
}
}
betny
0
Newbie Poster
Recommended Answers
Jump to PostNo need for such looops
args.length use this to display how many arguments were entered...
All 3 Replies
Reply to this topic
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.