Skip to content

Instantly share code, notes, and snippets.

import java.util.Scanner;
public class LetterFormat {
String firstName;
String lastName;
String userAddress;
String userLocation;
String[] userInfo;
@keysRB
keysRB / Application.java
Created November 2, 2014 02:26
Printing an envelope..How to pass variables?
//Purpose: Print a letter to yourself stating your name and address. Formatting should be included around info.
import java.util.Scanner;
public class LetterToYourself {
public static void main(String[] args) {
boolean exit = false;
do {
LetterFormat getInput = new LetterFormat();
getInput.getInput(); // Get user input