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 have to write a program that has a tic tac toe board. When you click it, it should go from one image to another. My code compiles fine, but it doesnt run. I get some errors: Exception in thread "main" java.lang.NullPointerException at TicTacToe3.<init>(TicTacToe3.java:27) at TicTacToe3.main(TicTacToe3.java:41) My code: [CODE]import java.awt.*; … |
|
I have to write a program that diaplys a tic tac toe board with random x's and o's. I have having severe issues with the random part. I also dont know what to put for arguments in the JButton methods, but I think my issues are realted. Any and all … |
|
Okay here is the just of my assignment: Write a test program that creates an Account object with an account ID of 1122, a balance of 20000, and an annual interest rate of 4.5%. Use the withdraw method to withdraw $2500, use the deposit method to deposit $3000, and print … |
|
I have an assignment that I dont know where to begin. If someone could guide me along I would much appreciate it! Thanks alot. Write a method public static int[] avgRows(int[][] a) {} This method takes a 2-dimensional array as input and returns an array containing the averages of each … |
|
I created an array, and I am trying to pass it to a method then double the size of that array. Than I would like to print the array. I am at a loss right now as to why it wont print, and what I am doing wrong. Any help … |