| | |
hangman on the phone problem Java
![]() |
•
•
Join Date: Nov 2009
Posts: 1
Reputation:
Solved Threads: 0
I have a question about my java program.
I'm new to Java, but I learn fast
.
I have the following problem.
I need to communicatie between 2 mobile phones. The entered character will be checked by methode checkletter. After completing the check, the frame will be set. The first 7 frames are for the sender. The next 7 frames are of the receiver. The 14th frame is an actionframe. From 15 and counting, the frames are for the letter that is entered.
The most important frame is 15. resulltString has an hexdecimal notation. If you entered "hello" as the play-word. If I search for the "l", it gives me this number 12.
12 means binair number like 01100. l is on the 3rd and 4th place.
The other player needs to open these slots.
That needs to happen within the if statement of method frameEvent().
That my problem. How do I get hex 12 to be a biniar number and also open the slots of the word. The null needs to get a dot. It has to be remembered for the next turn.
I'm new to Java, but I learn fast
.I have the following problem.
I need to communicatie between 2 mobile phones. The entered character will be checked by methode checkletter. After completing the check, the frame will be set. The first 7 frames are for the sender. The next 7 frames are of the receiver. The 14th frame is an actionframe. From 15 and counting, the frames are for the letter that is entered.
The most important frame is 15. resulltString has an hexdecimal notation. If you entered "hello" as the play-word. If I search for the "l", it gives me this number 12.
12 means binair number like 01100. l is on the 3rd and 4th place.
The other player needs to open these slots.
That needs to happen within the if statement of method frameEvent().
That my problem. How do I get hex 12 to be a biniar number and also open the slots of the word. The null needs to get a dot. It has to be remembered for the next turn.
Java Syntax (Toggle Plain Text)
public void checkletter(String letter) setFrameSender(getName()); setFrameReceiver(Opponent); frame[14] = 'R'; copyStringToFrame(resultString, 15, resultString.length()); sendFrame(frame);
Java Syntax (Toggle Plain Text)
public void frameEvent(byte[] frame) String sendername = new String(frame, 0, 7).trim(); String recname = new String(frame, 7, 7).trim(); if (frame[14] == 'R') { ........................................................... ........................................................... .......................................................... }
Last edited by AccessFreak; 25 Days Ago at 6:25 pm.
![]() |
Similar Threads
- Pass AT Command to Mobile phone through Hyperterminal from Java Application (Java)
- Hangman Java Console mode! (Java)
- Problem with Java forum (DaniWeb Community Feedback)
- Problem with Java Swing (Java)
- problem in java (Java)
- Java Problem (Windows NT / 2000 / XP)
- problem in java cobe (Java)
- Problem with JAVA and XP & a few missing choices. *bangs head on desk* (Web Browsers)
Other Threads in the Java Forum
- Previous Thread: Flash .swf files in Java application
- Next Thread: Anonymous class
| Thread Tools | Search this Thread |
911 actionlistener addressbook android api append applet application array arrays automation binary blackberry block bluetooth character chat class client code component consumer csv database desktop developmenthelp eclipse error fractal ftp game givemetehcodez graphics gui html ide image integer j2me j2seprojects japplet java javaarraylist javac javaee javaprojects jni jpanel julia lego linked linux list loops mac map method methods mobile netbeans newbie number objects online oriented panel printf problem program programming project projects properties recursion replaydirector reporting researchinmotion rotatetext rsa scanner se server set singleton sms sort sql string swing test textfields threads time title tree tutorial-sample ubuntu update windows working





