So far i have this,
but i feel like i'm doing it wrong.
/** The main program will create an array of 3 myTeam objects. For loop will load up the instance variables for the object by calling the setTeam, setWinsLosses, addPointsFor, and addPointsAgainst methods. I need to do scan inputs to get the data passed to those methods. Another for loop will be used to print all the data from the object using the getTeam, getWins, getLosses, and getAllPoints methods. */ public class BasketballHW7 { public static void main(String[] args) { // TODO Auto-generated method stub @SuppressWarnings("resource") Scanner scanInput = new Scanner(System.in); myTeam oTeam[] = new myTeam[3]; // creates arrays of three dimensions int iCount; // declaring counter variable for (iCount =0; iCount < 3; iCount++); // for loop to gather information of the three teams { oTeam[iCount] = new myTeam (); } for (iCount =0; iCount < 3; iCount++); System.out.println("Enter the team name."); System.out.println(); oTeam[0].setTeam(scanInput.nextLine()); System.out.println("Number of wins?"); iCount = scanInput.nextInt(); System.out.println();