I have a scanner that can read a txt file that I am trying to print on the screen. I am trying to do this by printing the scanner (scan) results of what the user typed in on the on the screen using Graphics g.
Any Ides on how to do this a different way Thank You :)
try {
Scanner scan = new Scanner(new File("/Users/AlexSpallone/Desktop/name.txt"));
msg = " Your Name is" + scan;
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}