# challenging question to find out complexity of the given code.

Printable View

• April 18th, 2013, 01:12 PM
navxxxx
challenging question to find out complexity of the given code.
Code Java:

```  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="jdbc:oracle: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);```
• April 18th, 2013, 01:15 PM
Norm
Re: challenging question to find out complexity of the given code.
Stop posting this topic. Once is enough.

Thread closed.