Click here to Skip to main content
15,887,746 members
Home / Discussions / Java
   

Java

 
GeneralRe: File Owner name Pin
Richard MacCutchan14-May-15 22:40
mveRichard MacCutchan14-May-15 22:40 
GeneralRe: File Owner name Pin
karyampudi17-May-15 20:29
karyampudi17-May-15 20:29 
SuggestionRe: File Owner name Pin
Richard MacCutchan17-May-15 23:41
mveRichard MacCutchan17-May-15 23:41 
GeneralRe: File Owner name Pin
karyampudi20-May-15 2:36
karyampudi20-May-15 2:36 
GeneralRe: File Owner name Pin
Richard MacCutchan20-May-15 3:04
mveRichard MacCutchan20-May-15 3:04 
GeneralRe: File Owner name Pin
karyampudi20-May-15 2:41
karyampudi20-May-15 2:41 
GeneralRe: File Owner name Pin
Richard MacCutchan20-May-15 3:10
mveRichard MacCutchan20-May-15 3:10 
QuestionCan someone help me what I am doing wrong with this code? Pin
Jainam Patel12-May-15 1:42
Jainam Patel12-May-15 1:42 
Hey Guys, I am making a TicTacToe Game in Java and I am having someone difficulty figuring out what I am doing Wrong. 

1. I made a tic tic toe board which look something like this. 
Hide   Copy Code
      System.out.println("          |          |          );
      System.out.println(    0      |    1     |     2    );
      System.out.println(           |          |          );
      System.out.println(  -------------------------------);
      System.out.println(           |          |          );
      System.out.println(    3      |    4     |     5    );
      System.out.println(           |          |          );
      System.out.println(  -------------------------------);
      System.out.println(           |          |          );
      System.out.println(    6      |    7     |     8    );
      System.out.println(           |          |          );

2. I asked the user for a number between 0-8 and the number they choose will be Replaced by X.

Say they choose number 5. This is how it will look like. 


Hide   Copy Code
System.out.println("          |          |          );
System.out.println(    0      |    1     |     2    );
System.out.println(           |          |          );
System.out.println(  -------------------------------);
System.out.println(           |          |          );
System.out.println(    3      |    4     |     X    );
System.out.println(           |          |          );
System.out.println(  -------------------------------);
System.out.println(           |          |          );
System.out.println(    6      |    7     |     8    );
System.out.println(           |          |          );


3. I don't know how to create a loop which will keep asking the user for a number until it reaches to all the 8 numbers. Also, how do I check if the number is taken or not. 


IT WILL BE GREAT IF YOU CAN HELP ME.

RantREPOST Pin
Richard Deeming12-May-15 3:31
mveRichard Deeming12-May-15 3:31 
AnswerRe: Can someone help me what I am doing wrong with this code? Pin
Afzaal Ahmad Zeeshan12-May-15 4:24
professionalAfzaal Ahmad Zeeshan12-May-15 4:24 
AnswerRe: Can someone help me what I am doing wrong with this code? Pin
zhijzan7-Jun-15 21:24
zhijzan7-Jun-15 21:24 
QuestionI am getting this Exception: Pin
Rupsingh Mathwale7-May-15 1:32
Rupsingh Mathwale7-May-15 1:32 
AnswerRe: I am getting this Exception: Pin
Richard MacCutchan7-May-15 1:58
mveRichard MacCutchan7-May-15 1:58 
GeneralRe: I am getting this Exception: Pin
Rupsingh Mathwale7-May-15 18:56
Rupsingh Mathwale7-May-15 18:56 
QuestionRe: I am getting this Exception: Pin
Richard MacCutchan7-May-15 21:17
mveRichard MacCutchan7-May-15 21:17 
AnswerRe: I am getting this Exception: Pin
Rupsingh Mathwale7-May-15 22:10
Rupsingh Mathwale7-May-15 22:10 
AnswerRe: I am getting this Exception: Pin
Afzaal Ahmad Zeeshan12-May-15 4:22
professionalAfzaal Ahmad Zeeshan12-May-15 4:22 
GeneralRe: I am getting this Exception: Pin
Sascha Lefèvre12-May-15 10:41
professionalSascha Lefèvre12-May-15 10:41 
SuggestionRe: I am getting this Exception: Pin
Sascha Lefèvre12-May-15 10:43
professionalSascha Lefèvre12-May-15 10:43 
Questionmaps Pin
Member 116652324-May-15 23:18
Member 116652324-May-15 23:18 
AnswerRe: maps Pin
Richard MacCutchan4-May-15 23:52
mveRichard MacCutchan4-May-15 23:52 
QuestionKruskal Algorithm Pin
Member 116604013-May-15 1:46
Member 116604013-May-15 1:46 
AnswerRe: Kruskal Algorithm Pin
Sascha Lefèvre3-May-15 2:01
professionalSascha Lefèvre3-May-15 2:01 
QuestionI am getting a Compile Error Pin
Member 115176992-May-15 8:30
Member 115176992-May-15 8:30 
AnswerRe: I am getting a Compile Error Pin
Richard MacCutchan2-May-15 20:53
mveRichard MacCutchan2-May-15 20:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.