Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Conversation Between navxxxx and Raven123

3 Visitor Messages

  1. hi raven thnx a lot...ur suggestion solved my problem. thanks a ton.

    nd plz can u tell me the complexity of this code??


    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);
  2. hi navxxxx,sorry for late reply..just wanted to check if u are able to resolve the problem...
    i would suggesgt make a small DB schemea(nothing but a database table design) then create a SQLs and install mysql ,run it ..once done..create one DBManager(you can name it anything you want) class which creates the DB connection and runs ur SQL queries..Let me know if you find any trouble doing that..
    Raven
  3. raven plz have a look at my post if u can. I want to store my cordinates in database and thn i need my eclipse to pick up points froms datbase.
Showing Visitor Messages 1 to 3 of 3