Skip to content

Instantly share code, notes, and snippets.

@LearnByCode
Created December 26, 2015 05:32
Show Gist options
  • Save LearnByCode/ddca10050bea7abd5461 to your computer and use it in GitHub Desktop.
Save LearnByCode/ddca10050bea7abd5461 to your computer and use it in GitHub Desktop.
More Printing Assignment
public class PrintReceipt
{
public static void main( String[] args )
{
System.out.println( "+--------------------------------------+");
System.out.println( "| Evil Bank ATM Receipt |");
System.out.println( "| Wednesday, December 2, 2015 |");
System.out.println( "| ATM Location # 666 |");
System.out.println( "| |");
System.out.println( "| |");
System.out.println( "| Account Number: 1234567 |");
System.out.println( "| Customer: John Q. Public |");
System.out.println( "| Transaction Type: Deposit |");
System.out.println( "| Transaction Amount: $500.00 |");
System.out.println( "| Account Balance: $1,500.00 |");
System.out.println( "| |");
System.out.println( "| Thank you for banking with us |");
System.out.println( "| Have an evil day |");
System.out.println( "| |");
System.out.println( "+--------------------------------------+");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment