What is this part for:
while(console.hasNext())
{
System.out.println("Hi");
if (console.next().equals("<Page2>"))
{
...
Type: Posts; User: javapenguin
What is this part for:
while(console.hasNext())
{
System.out.println("Hi");
if (console.next().equals("<Page2>"))
{
...
Not quite. I added the lines:
if (console.next().equals("<Page2>"))
{
while (console.hasNext() &&...
Post 8 isn't as import as Post 9. Post 9 should be answered first.
Ok, when I tried it with the second text area, this time using <Page2> </Page2> as the edges, and I wanted it not to read in anything between <Page1> and </Page1> at all, it gave me nothing for the...
It worked just fine but when I decided to see what would happen if I added a new line just below the first one but didn't have a blank line, it went back to the bad output again.
import...
Ok, now it's ignroing everything in between <Page1> and </Page1>
and continuing on with the other things and is printing out:
</Page1>
<Page2>
</Page2>
<Page3>
I added some lines to the text file. It's getting better but it's still not quite working.
import javax.swing.JTextArea;
import javax.swing.JScrollPane;
import javax.swing.JFrame;
...
I had been trying to make digital books. However, I wanted to split it into pages and had been wondering if there was a way to store entire chapters and use tags, like html, sort of, to tell it what...