There is no struct in Java - Create an class called TableInfoObj - write
getters and setters( or have a constructor that take all the params for the
object if you want a read only object).
Your can ref or pass the object into other object where you need this
-----Original Message-----
From: Edward [mailto:zhangsc@n...]
Sent: 30 May 2002 04:11
To: Java 2 Enterprise Edition
Subject: [j2ee] How to create a Object?
Importance: High
I have a question about Object,I know in Java I can create a class,like
follows:
public class classname
{
...
}
I want to create a struct named TableInfoObj,like follows:
String SysID[],TableName[],ImagePaht[];
boolean init(ResultSet);
String getTableName(String SysID);
String getImagePath(String SysID);
I want to create it into a Object not a Class,I want to know how to do it?
Any idea will be appreciated!
Thanks,
Edward