Results 1 to 2 of 2
  1. #1
    Tukker is offline Member
    Join Date
    Dec 2010
    Rep Power

    Default Import doubles from excel

    Dear Experts,

    I need to use data from excel in my Java program, in a very sophisticated way.

    The excel file I got is C:/butene.xls . I has one column A1-A970 with doubles in it.

    My program runs a loop:

    for (i=0;i<MAX;i++)
    with lots of code in it;
    double L0_But;

    I need that L0_But at i==1 is cell A1, L0_But at i==2 is cell A2, ... L0_But at i==970 is A970

    Is there anyone who knows how to this. Or anyone who has a code that does exactly the same.

    I'm a complete novice so it should be the simplest solution possible - (sql) probably.


    Anders Nielsen


  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Rep Power


    Google for Apache POI HSSF (or XSSF for 2007) or Andy Khan's JExcel (don't know if it works for 2007).

Similar Threads

  1. Arithmetic using doubles
    By Black_Eye in forum New To Java
    Replies: 4
    Last Post: 10-19-2010, 09:35 AM
  2. Cant use doubles
    By Freakzoyd in forum New To Java
    Replies: 27
    Last Post: 07-24-2010, 05:48 AM
  3. arrays using doubles [SOLVED]
    By soccer_kid_6 in forum New To Java
    Replies: 0
    Last Post: 03-10-2010, 02:56 AM
  4. Problem with division using doubles
    By chrismanahan in forum New To Java
    Replies: 3
    Last Post: 10-10-2009, 10:26 PM
  5. arrays strings and doubles
    By rgvbabe in forum New To Java
    Replies: 1
    Last Post: 01-14-2008, 12:26 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts