Hey guys, i need help with this assignment. I am a complete beginner in java programming so i don't know how to get started in this thing. For this project, i am suppose to search for a specified word within a block of text. The word, the size of the search space (rows, column), and the puzzle itself will be given in an input file. I have to input the file through the command line and the input file must be read into a 2-D array for searching. I have to do a vertical, horizontal and diagonal search to find the letters of the word. And my output should be a letter and it's coordinates(row, column) in the array. So please help me get started, anything will be appreciated.
zach1
0
Newbie Poster
Recommended Answers
Jump to PostDo you already know how file i/o works?
if not you can start at these java docs
http://docs.oracle.com/javase/tutorial/essential/io/
Jump to PostAre you saying that each line in the file has two values?
Read the file line by line, and split each line into two parts and store those two parts into the array.One problem could be defining the array the correct size to hold the data. Do you know …
All 5 Replies
zeroliken
79
Nearly a Posting Virtuoso
zach1
0
Newbie Poster
NormR1
563
Posting Sage
Team Colleague
zach1
0
Newbie Poster
NormR1
563
Posting Sage
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.