home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Java help request

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1990
Discussions: 200,991, Posts: 2,379,907, Members: 246,360
Old April 19th, 2009, 04:37 PM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Apr 2009
Posts: 1
Java help request

I need to write a Java application for school where I search an existing .txt file to match letters. Its a hangman theory where the user places the letter to search for into the coded box and then Java searches the file and returns the matching letters and places them in the same location on the screen in a separate text field. I have created a random access file with three quotes in it. Can anyone help me with how to match the letter entered to the positions in the quote?
cowgirl1976 is offline   Reply With Quote
Old April 21st, 2009, 12:16 AM     #2 (permalink)
Super F@D Folder
 
Join Date: Jun 2004
Posts: 5,083
Send a message via AIM to sr71000
I assume you're going through 1 character at a time using a loop? If so you just add a variable that gets incremented in the loop to keep track of how many characters you've searched through. That make sense?

-Kevin
sr71000 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Launching Java webpages with different Java settings? LostBok Webmastering and Programming 1 December 11th, 2006 03:38 AM
Request: One On One Help J1mmy Webmastering and Programming 0 March 25th, 2006 07:31 PM
PC help request msu1878 Technical Support 9 July 16th, 2003 10:13 PM
A Request ms2001 Webmastering and Programming 0 May 5th, 2003 12:41 PM
ID request ClubMed IMO Community 5 April 26th, 2002 06:12 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3083)
Foxconn Blackops x48 MoBo (5)
Charges against non-tippers dropped.. (20)
Health Care Rationing (14)
Delete an OS (17)
Nvidia GTX 260 problem (11)
Laptop with wireless problem. (12)
Wireless Televisions. (12)
windows vista security holes (19)
CPU fan stops spinning randomly (11)
Regular Build (11)
[F@H SPAM 11/16/09] ! 1/2 months to.. (41)
Point and Shoot Camera Suggestions. (8)
windows 7 problem (7)
Recent Discussions
Nvidia GTX 260 problem (11)
Foxconn Blackops x48 MoBo (5)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (41)
Print spooler problem (17)
Q9650 vs. Q9550 (2)
Desktop Calendar Application (2)
Looking for new motherboard (1)
soundmon.exe (8)
Jedi Academy Problem (3)
Can a page file be "too big".. (1)
Point and Shoot Camera Suggestions. (8)
Size after cutting 700Mb file is 2.5 .. (0)
Delete an OS (17)
windows vista security holes (19)
updating BIOS via winflash, claims fi.. (1)
New Server Configuration Suggestions (0)
cheap gaming laptop? (12)
Unallocated Space (2)
help me pls laptop just stopped worki.. (1)
C# + LINQ Help (7)
Dynex DX E-402 (3)
EVGA 9800 gtx help with finding a goo.. (12)
Multiple Restarts Required at Boot (5)
cell phone won't work (0)
Is the PSU I received dead? (15)


All times are GMT -4. The time now is 10:02 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28