Home Answers Viewqa Java-Beginners Netbeans program

 
 


Sarah Love
Netbeans program
0 Answer(s)      2 years and 5 months ago
Posted in : Java Beginners

I need to write a program that does the following...

The TicTacToe class contains a 3x3 two-dimensional array of integers. The constructor should initialize the empty board to all zeros. It should have a method playerMove that accepts two integers as parameters, the first is the player (1 or 2) and the second is the actual move (1-9). If it is a valid move it changes the value of that square to 1 or 2 (depending on whose turn it is and returns the Boolean value true to indicate a valid move has been completed). If it is not a valid move the board does not change and it returns a Boolean value of false to indicate an invalid move. TicTacToe should also have the method displayBoard that will display the current state of the board. The last method should be determineWinner which returns a 1 if player one won, a 2 if player 2 won, a 0 if it?s a ?cat?s game?, and -1 if there is no winner yet and the game is not over. TicTacToeGame is another program that uses a TicTacToe object to actually play a two human player game of Tic-Tac-Toe. Using the NetBeans design tool also create a sequence diagram for this game.

Any help would be greatly appreciated!!!

View Answers









Related Pages:
Netbeans program
Netbeans program  I need to write a program that does the following.... TicTacToeGame is another program that uses a TicTacToe object to actually play a two human player game of Tic-Tac-Toe. Using the NetBeans design tool also create
netbeans program
netbeans program  Hi. could someone build this for me in netbeans... with books. A Graphical User Interface (GUI) is not required, i.e. your program... number of items. Your program should provide a menu of options to work
RMI Program in netbeans
RMI Program in netbeans  pls give me an idea for how to run RMI program in netbeans with detailed example
netbeans library
netbeans library  Hi could someone build a program in netbeans for a book library please.The program should provide a menu of options to work... the program A Book should have: ? Title ? Author ? Whether it's part of a series (E.G.
netbeans library
netbeans library  Hi could someone build a program in netbeans for a book library please.The program should provide a menu of options to work... the program A Book should have: Title Author Whether it's part of a series (E.G.
Netbeans Question.
Netbeans Question.   Ok here is my code- * * To change this template, choose Tools | Templates * and open the template in the editor. */ import...]); } } } This is what I am trying to get my program to due- using a two-dimensional array
hibernate on netbeans - Hibernate
hibernate on netbeans  is it possible for me to run the hibernate program on Netbeans IDE
jdbc and swing problem in netbeans
jdbc and swing problem in netbeans  i reteived the table from database in a jdbc program. next i want to do is place the table as it is in a jpanel.. i am using netbeans IDE can u tel me how to do that one?? urgent
jdbc and swing problem in netbeans
jdbc and swing problem in netbeans  i reteived the table from database in a jdbc program. next i want to do is place the table as it is in a jpanel.. i am using netbeans IDE can u tel me how to do that one?? urgent
NetBeans
NetBeans  why Netbeans IDE is not commonly used Today by most of the companies
NetBeans
NetBeans  Hi, I am Kundan I have made a project on NetBeans. And now I want to know that how can i run my project without NetBeans IDE,on other PC. Please help me it's important
NetBeans
NetBeans  Hi, I am Kundan I have made a project on NetBeans. And now I want to know that how can i run my project without NetBeans IDE,on other PC. Please help me it's important
How to Develop, Compile & Run a rmi Program in NetBeans 6.9.1 ide?
How to Develop, Compile & Run a rmi Program in NetBeans 6.9.1 ide?  how to develop, compile & run a rmi program in netbeans 6.9.1 ide? will you please give me a step by step (practical) explaination? Thanks in advance
netbeans
netbeans  In netbeans, there are choices of books with their price. you check the book you wanted then click the purchase.the output should be the book with the price then you will get the total price of the book you purchase.how
netbeans
netbeans  guysss m nt able to opemn ma netbeans ide.. no error msg s coming... wn i installed yesterday one msg came stating about some run time error... sm one plzzzzzz hlp me
Netbeans Array help
Netbeans Array help  Ok here is my code- * * To change this template, choose Tools | Templates * and open the template in the editor. */ import...]); } } } This is what I am trying to get my program to due- using a two-dimensional
java,jdbc,netbeans
java,jdbc,netbeans  can you tell me the program which read multiple dbf files and then insert those dbf files data in msaccess automatically
oracle connectivity problem with netbeans
since I execute statement directly from net bean but now I am preparing a program
Web Services Examples in NetBeans
program I will show you how you can make webservices in the Netbeans IDE. NetBeans... Web Services Examples in NetBeans    In this section we will develop webservices using NetBeans IDE. NetBeans IDE is one
NetBeans IDE
in the typing. NetBeans continuously compiles the program as you're typing... main program and (empty) window. Try running it. The code that NetBeans... Java NotesNetBeans IDE Sections: Introduction to NetBeans Downloading
java -netbeans help - Java Beginners
java -netbeans help   a simple program in netbeans ide to add two... that.. am doing a project,to make it simple i gave the program of addition. sir/mam, i developed frontend with netbeans with buttons and textarea.. am executing
how to do an measure converter in netbeans - Java Beginners
how to do an measure converter in netbeans   hi im not sure if this is the right category but im trying to write a program in netbeans and i would like it to have an menu to select diferent options to convert from all
what is wrong in this program?I have netbeans 7.0 & jdk 7. please do corrections.
what is wrong in this program?I have netbeans 7.0 & jdk 7. please do corrections.  import java.io.*; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.List
Java using Netbeans Object Oriented Programming
Java using Netbeans Object Oriented Programming   I am trying to make a program that uses a main class and a separate class with one public method and one private method. The main method in the main class asks the user for 2
Creating Login Page In JSF using NetBeans
Creating Login Page In JSF using NetBeans  ... illustrates you how to create a login form in JSF using NetBeans. To create the jsp page in NetBeans: 1. Right click on Web Pages under your project. 2. Go to New- JSP
Ajax program
Ajax program  any simple program with execution steps using netbeans 6.9
RMI and netbeans
RMI and netbeans  how to use Rmi in netbeans? i want to connect to a server machine which is holding my application and need to identify the systems connected in LAN with it and get the IP address from it i wnt to use netbeans
webservice in Netbeans
.. im using netbeans version 6.9.1 .. pls help me out... regards-- Harish Kumar
EJB with NetBeans
EJB with NetBeans  I am very new in Ejb and with very few knowledge about it. I have download NetBeans (7.01) and GlassFish (3.01). But, as I have no idea about Ejb, I am not getting how to run the code which includes a simple
RMI in netbeans 6.5
RMI in netbeans 6.5  runing client in RMI using netbeans 6.5
Netbeans GUI Ribbon
Netbeans GUI Ribbon  how to create ribbon task in java GUI using netbeans
JNDI names in netbeans
JNDI names in netbeans  how to create a JNDI names in netbeans
connect netbeans with oracle
connect netbeans with oracle  how to connect netbeans with oracle   Hi Friend, Please visit the following link: http://www.roseindia.net/jsf/visual-jsf.shtml Here you will find the steps to connect netbeans
"The folder name is not valid" netbeans
"The folder name is not valid" netbeans  "The folder name is not valid" while crating a jsp,html or any page in netbeans
WSDL program
WSDL program       Project Requirement Make a  project in Netbeans.Develop an Simple WSDL document in rpc/literal using NetBeans WSDL Designer.Create a operation for calculator named int add(int x
how to install jfreechart in netbeans.
how to install jfreechart in netbeans.  I have successfully installed jfreechart in eclipse IDE.but I am unable to install the same in netbeansIDE... procedure to install it in netbeans 6.7.1 Please reply asap.Its urgent
netbeans with mysql and tomcat
netbeans with mysql and tomcat  Hi. I have to run a JSP or JAVA file in netbeans with mysql database and tomcat server 7.0. But while the page loading itself it say error. ClassNotFoundException: com.mysql.jdbc.Driver. How
NetBeans - IDE Questions
NetBeans  Can we use netbeans to create servlet, jsp pages?If yes means can you explain how it can be done? how to use netbeans for creating jsp...://www.roseindia.net/jsf/netbeans/create-jsf-application.shtml Hope that it will be helpful
struts-netbeans - Framework
struts-netbeans  hai friends please provide some help "how to execute struts programs in netbeans IDE?" is requires any software or any supporting files to execute this. thanks friends in advance
jsp netbeans javascript
jsp netbeans javascript  hi to all; I'm debutante in JSP netbeans, please help me to realize my application I have some difficulties: 1 - page... nothing is changed.) 2-how iserer date in oracle 10g database via JSP netbeans
buttons in netbeans,java
buttons in netbeans,java  respected sir, i would like to known how to make coding on a button while working on netbeans, so that a new window will open after clicking on that button? thank you   import java.awt.
java swing in netbeans
java swing in netbeans  how can create sub menu in java swing using netbeans?   Hi Friend, Try the following code: import javax.swing.*; public class CreateSubmenu { public static void main(final String args
JSTL in Netbeans 6.9.1
JSTL in Netbeans 6.9.1  I am seeking your help in solving problem I am facing. The problem has been described below: I am using JSTL1.1 core tag... is working fine. I am using Netbeans 6.9.1 Id with Glassfish server 3 for my
NetBeans IDE
NetBeans IDE         The NetBeans IDE, product of Sun Microsystems, is a free, open-source.... NetBeans IDE supports developers providing all the tools needed to create all
Deploy .war from From NetBeans
Deploy .war from From NetBeans  How to deploy .war file into external running application server directly from Netbeans just as from eclipse
netbeans resource prob - IDE Questions
netbeans resource prob  Hi,please can you tell me how to include a file like an image in the jar package in netbeans so that i dont need to provide... i the jar package I am using netbeans version 6.7.1
netbeans coding prob - IDE Questions
netbeans coding prob  hi, i have just started programming in netbeans,i'm facing a problem in a java application i create a jframe class... ME HOW TO DO IT IN NETBEANS. THANK YOU  Hi Friend, Please visit
SQL STATEMENT in JDBC in NETBEANS IDE
SQL STATEMENT in JDBC in NETBEANS IDE  Iam using NETBEANS IDE. Iam developing a bank application. Using JDBC in SERVLETS For the withdraw function, "bal" and "ano" are user inputs when i wrote like, st.executeQuery("UPDATE

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.