This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
First, I like the rules required for this forum!
I am new to Java.
I am re-writing some very old QBasic DOS programs to Java (and have programmed other things in VB6). In the older DOS versions you could use a READ statement followed by a matching number of DATA text/FP/integers rather than reading in from a file. I couldn't figure out how to do it in VB6, and now can't figure it out in JAVA. For some routines where I'm reading in an array of, say, x(5,4) numbers, it would be easier to imbed in the program rather than writing a text file and having the program read the file.
Can one do it in Java? How, or an brief example?
And have an Old Moosedrool beer (Bozeman microbrewery) on me if you know,