Unraveling The Word

John 8:31-32 GNB So Jesus said to those who believed in him, "If you obey my teaching, you are really my disciples; 32 you will know the truth, and the truth will set you free."

Name:
Location: Pensacola, Florida, United States

Just trying to seek the truth in an untruthful world.

Tuesday, November 01, 2005

Strong's Number Generator in Java

Just wanted to say thanks to my friend Chad, for his expert advice in Java programming. I needed to generate a list of the 7863 links to each Hebrew word found in the King James Bible Strong's Hebrew Dictionary on the web. It took about 30 seconds per link to do by hand so this will save lots of time. One of the problems I was having was remembering how to compile the code ($ javac StrongsHTMLHebrew.java); and run it ($ java StrongsHTMLHebrew) from the command prompt in the terminal. I was trying to use something called Xcode on the Mac mini. Here's the code but if anyone wants it they will need to copy it by hand, because it's in html format.


import java.io.*;

public class StrongsHTMLHebrew
{
public static void main(String[] arguments) throws IOException
{
File outputFile = new
File("StrongsHTMLHebrew.htm");
FileWriter out = new
FileWriter(outputFile);
int j=0;
for (int i=1; i<=8673; i++)
{
if (i>1 & i%100 == 1)
j += 1;
out.write("<a
href=\"http://www.sacrednamebible.com/kjvstrongs/STRHEB"+ j +".htm#S"+ i +"\"style=\"color: blue; text-decoration: underline; text-underline: single\">"+ i +"</a>\n");
}
out.close();
}
}

0 Comments:

Post a Comment

<< Home