Spit a sentence on the marked with character

package ch4_package;
import java.io.*;
//import java.util.Vector;
public class Test_This {
Test_This tt = new Test_This();
public static void main(String[] args) throws IOException
{
// TODO Auto-generated method stub
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
String str ="";
try{
//System.out.println("---While Loop---");
System.out.print("Please wrte a sentence with , or .: ");
str = br.readLine();
Process pp = new Process();
pp.read_input(str);
}//try
catch(NumberFormatException e) { System.out.println("data was blank");}
}
}
class Process
{
public void read_input(String str)
{
String[] words = str.split("[, .]", 0);
int n1 = words.length;
System.out.println ("No of words are : " +n1);
System.out.println("--for loop: ");
for (int i =0; i <= n1-1; i++)
{
System.out.println ("\t " + i + " " + words[i]);
}//end for loop
}
}//end of class process