I wanted to use a method that can be accessed by the main, that will store the array list. But I want the declaration of the array list to be in the main not the store method.
Out side this method ill be using simple JOptionPanes to display the array list in the main.
Example here.
public static void main(String[] arg) throws Exception
{
ArrayList<String> Logo = new ArrayList<String>();
Initials();
public String Initials()
{
Logo.add("Blah blah");
Logo.add("Blah blah");
}
JOptionPane.showMessageDialog(null, Logo);
}
Please help me I'm not sure how to due this. I want to store it because it take a lot of the space and is kinda a eye sore. Ill be storeing a lot in the array list.
Or a different better way of doing this