This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class LetterFormat { | |
String firstName; | |
String lastName; | |
String userAddress; | |
String userLocation; | |
String[] userInfo; |