No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I created a class that takes a 3 dimensional array and puts it in a txt file, the method is called output(). I can't figure out where to call the method though. I'm trying to have it so it is called when numb=4 in the actionListener on the bottom. Please … |
|
My input file has 84 integers and I'm not sure what I'm doing wrong. PLEASE HELP! import java.util.*; import javax.swing.*; import java.awt.*; import java.util.Scanner; import java.io.*; public class Museum { private int Week=3; private int Hour=4; private int Day=7; int[][][] visitors = new int[Week][Day][Hour]; private int[] allWeeks; private int[] allHours; … |