ms access into array

hi all,How to import a list of phone numbers from ms access, excel sheet into an array .. ?Message was edited by: devsu
[147 byte] By [devsua] at [2007-11-26 22:41:24]
# 1
parse it and store the datas into what you want...
suparenoa at 2007-7-10 11:56:17 > top of Java-index,Desktop,Core GUI APIs...
# 2
ok thankzzz
devsua at 2007-7-10 11:56:17 > top of Java-index,Desktop,Core GUI APIs...
# 3
http://marcus-schulte.blogspot.com/2005/07/java-awk-parsing-csv-files-in-java-can.html http://www.theserverside.com/discussions/thread.tss?thread_id=31034i think that you could find your happiness in these links...
suparenoa at 2007-7-10 11:56:17 > top of Java-index,Desktop,Core GUI APIs...
# 4

By using JDBC you can bring all your phone numbers in to an array

now i am sending just sample program for accessing number from excel look into it..

import java.io.*;

import java.sql.*;

class MyP1

{

public static void main(String cc[])

{

try{

DriverManager.registerDriver(new sun.jdbc.odbc.JdbcOdbcDriver());

Connection con = DriverManager.getConnection("jdbc:odbc:GsrCBook1","","");

Statement st = con.createStatement();

ResultSet rs = st.executeQuery("select Number from [Sheet1$]");

while(rs.next())

{

System.out.println(rs.getString(1));

}

}

catch(Exception e)

{System.out.println(e);}

}

}

first you need to create User/System DSN in your data source

for details how to create DSN please search http://www.javaworld.com/javaworld/javaqa/2001-06/04-qa-0629-excel.html

Chowdarya at 2007-7-10 11:56:17 > top of Java-index,Desktop,Core GUI APIs...