try{
ReadExcel test = new ReadExcel();
test.setInputFile("C:/Users/PRIYA/Documents/NetBeansProjects/JavaApplication2/src/dbscan/Input.xls");

corrdinatMap= (HashMap)test.read();
System.out.println(">>>1");

if(corrdinatMap.containsKey("xCordinat"))
xAxis=(ArrayList)corrdinatMap.get("xCordinat");
if(corrdinatMap.containsKey("yCordinat"))
yAxis=(ArrayList)corrdinatMap.get("yCordinat");

System.out.println(">>>2");

xX = (Object[]) xAxis.toArray();
yY = (Object[]) yAxis.toArray();

System.out.println(">>>3");

if(xX.length > yY.length)
loopCount=xX.length;
else
loopCount=yY.length;


Class.forName("oracle.jdbc.driver.OracleDriver");
user="system";
password="priya";
URL="jdbcracle:thin:@localhost:1521:XE";
}
catch(Exception e){System.out.println("Exception>>1>>>"+e);}

for(int loop=0;loop< loopCount;loop++)
{
try{
tfx.setText(xX[loop].toString());
tfy.setText(yY[loop].toString());

x1 = Integer.parseInt(tfx.getText());
y1 = Integer.parseInt(tfy.getText());
System.out.println("aadPoints1>>>>"+x1+", "+y1);