Question: I'm trying to segment my current output of code into seperate lines of 8. What can I add to my current code to make this

I'm trying to segment my current output of code into seperate lines of 8. What can I add to my current code to make this happen? This is my final question for the month, so your help is greatly appreciated.

I've already recieved the answer "Either use System.out.println(F.next()); or System.out.print(F.next()+"\ln");" but this won't work because I'm going to search for palindromes after I figure this out, and the list needs to be segmented by 8 until the end i reached. There are a lot more integers than what I'm showing, so the actual output is a lot longer.

My code is reading from a txt file with lines of integers, and each has a space between them. The data from the text file looks like the following:

I'm trying to segment my current output of code into seperate lines

My current output is one singular line that looks like this:

of 8. What can I add to my current code to make

I'm looking for this:

this happen? This is my final question for the month, so your

Here is my code thus far that is generating the output (What can be added to it to segment the data into 8 for each line?):

help is greatly appreciated. I've already recieved the answer "Either use System.out.println(F.next());

0 001 000 0 1 10 1 001 1 1 0 1 1 0 1 0 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!