I have written the below java class
public class FileAttachment implements java.io.Serializable {
private java.lang.String fileName;
private java.lang.String fileExt;
public FileAttachment() {
}
public FileAttachment(
java.lang.String fileName,
java.lang.String fileExt) {
this.fileName = fileName;
this.fileExt = fileExt;
}
/**
* Gets the fileName value for this FileAttachment.
*
* @return fileName
*/
public java.lang.String getFileName() {
return fileName;
}
/**
* Sets the fileName value for this FileAttachment.
*
* @param fileName
*/
public void setFileName(java.lang.String fileName) {
this.fileName = fileName;
}
/**
* Gets the fileExt value for this FileAttachment.
*
* @return fileExt
*/
public java.lang.String getFileExt() {
return fileExt;
}
/**
* Sets the fileExt value for this FileAttachment.
*
* @param fileExt
*/
public void setFileExt(java.lang.String fileExt) {
this.fileExt = fileExt;
}
}
If I try to initialize the class as an array as shown below . What value I need to assign to it's variable fileattachments . I know I can assign null value to it. But, I want to assign anything other than null.
FileAttachment[] fileattachments = //what non null value can I assign it ?