How to Get Main output into Common() method in Java?

May i get help to read from a file and output a formatted version of the file in java?

  • Johnson 85 83 77 91 76 Aniston 80 90 95 93 48 Cooper 78 81 11 90 73 Gupta 92 83 30 69 87 Blair 23 45 96 38 59 Clark 60 85 45 39 67 Kennedy 77 31 52 74 83 Bronson 93 94 89 77 97 Sunny 79 85 28 93 82 Smith 85 72 49 75 63 i just want to seperate each data type with a tab but i don't know how to get all of that information from getting read to getting output can someone help please? I have these declared Scanner inFile = new Scanner (new FileReader("Student Report.txt")); PrintWriter outFile = new PrintWriter("Student Grades.txt"); I appreciate the help in advance!

  • Answer:

    Be mindfull you can only have one scanner and / or Reader open.

alex at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.