parameterized array

import java.io.*;
import java.io.IOException;

//javac passarrray_tomethod.java
public class passarrray_tomethod
{
String str = "Helloworld";
public static void main(String[] args) throws IOException

{
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
// needs throws IOException
System.out.print("Type some thing : ");
String str =br.readLine();
String[] words = str.split (" ");
int n1 = words.length;
String[] array_word = new String[n1];
System.out.println ("No of words are : " +n1);
System.out.println("--for loop: ");
//declaring a data type array and intialized at the same time
//it would have been done like 23, 3.5 , and so on, in the place of n1
//test str as 1.2 2.4 3.4 4.4 5.4
double[] d1 = new double[n1] ;
for (int i =0; i <= n1-1; i++)
{
System.out.print ("\t endtered " + words[i]);
array_word[i]= words[i];
d1[i] = Double.parseDouble(words[i]);
System.out.println ("\tround " + i + " value: " + d1[i] + " "+ "* 2 =" + d1[i]* 2 );
}//end for loop
arrays_to_methods atm = new arrays_to_methods();
atm.process(array_word);
}
}
class arrays_to_methods
{
public void process(String[] str)
{
System.out.println("--do while loop processsing parameterized array ");
int x = 0;
//String[] words = str.split (" ");
int n1 = str.length;
do {
System.out.println ("\tround " + x + " value: " + str[x]);
x++;
}while(x <= (n1-1));
}
}