title: Saving multiple user inputs to a text file
body: <p>Firstly I must apologize if this has already been explained... While I have done searches to find an answer to my problem, I am still very new when it comes to Java so I couldn't really understand. (I've only been learning Java for a couple of days.)</p>
  
  <p>My friend, who is trying to teach me Java sets me assignments that I have to complete and I'm supposed to learn what I need to do to complete these assignments myself.
  Recently he gave me the challenge of creating a program that asks the user for their name, age and a username. This program then needs to output these in a sentence. That part is easy.
  What I'm having difficulty with is the next part where I have to make the program save these to a file, along with any future inputs from a user.</p>
  
  <p>Here's what I have:</p>
  
  <pre><code>import java.util.Scanner;
  
  public class easy1 
  {
  
  @SuppressWarnings("resource")
  public static void main(String[] args)
  {
      System.out.println("Enter your name, age and username: ");
      Scanner sc = new Scanner(System.in);
  
      String name = sc.next(), age = sc.next(), user = sc.next();
  
      System.out.println("Your name is " + name + ", you are " + age + " years old, and your username is " + user + ".");
  }
  }
  </code></pre>
  
  <p>I'm not really looking for anybody to tell me what to do, what I would appreciate is just a little guidance or a clue as to what I should be doing.
  If you do give me an answer then an explanation of how it works would be nice.</p>
  
  <p>Thank you.</p>