I'm trying to set up a simple program to handle a couple of objects. Up to this point l just used brute force while writing java. I did a file handling the objects like this.
I quite new to java and I like to get some advice on how to plane this better. I tried to put the creation of objects in a constructor. I take it java only use constructors once for every class, or? Then iterate in a main method. Any pros or cons? I'd be thrilled if someone showed me a proper way of doing this.Code:public class SimObjects
{
public static void main(String[] args)
{
1. if (no objects){//Create object}
2. else {//start iterate to let the objects act. }
}

