I have written this code but i am having trouble printing out all the information at the end. Should I use ToString? Any help would be appreciated.
package drycleaner; import java.util.Scanner; /** * * @author Kl2eativ */ public class DryCleaning { public static void main(String[] args) { Scanner s = new Scanner(System.in); System.out.println("For how many stores do you want to enter information for? "); int storeNum = s.nextInt(); String[] dryCleaningStores = new String[storeNum]; s.nextLine(); for (int i = 0; i < storeNum; i++) { System.out.println("Please enter the store name: "); String st = s.nextLine(); System.out.println("Enter total sales: "); double ts = s.nextDouble(); System.out.println("Enter total of machines broken: "); int mb = s.nextInt(); System.out.println("Number of employees: "); int emp = s.nextInt(); s.nextLine(); } } }