I, entitled: print the following information store receipts with IDEA, and posted operating results
Second, the code:
1 Package Penalty for com.sz.zelin;
2
3 // this is a comment, not executed here! ! ! --- This is the entrance to the program! ! !
4
5 public class Test2 {
6 public static void main (String [] args) {
7 System.out.println ( "everybody likes Platinum Holiday Shopping Mall (RenRenLe)" );
8 System.out.println ( "Shop No: S131 machine No: P026 serial number: 244 " );
. 9 System.out.println (" cashier: 0312 date; 2014.12.14 " );
10 System.out.println (" ============ =========================== " );
11 System.out.println ( "trade name Quantity Unit Price Amount" );
12 System.out.println ( "1 Little Sheep hot pot soup (broth) 110g" );
13 System.out.println ( "6,935,953,399,984 1 15.80 15.80" );
14 System.out.println ( "specials" );
15 System.out.println ( "2 sea fishing pot soup broth 110g" );
16 System.out.println ( "6,942,032,700,753. 1 17.90 17.90" );
. 17 the System. out.println ( "3 Tsingtao beer bottles 600 ml of" );
18 System.out.println ( "6923740100059 1 4.50 4.50 ");
. 19 System.out.println ( "Qingdao Beer bottles. 4 600ml" );
20 is System.out.println ( "6923740100059. 1 4.50 4.50" );
21 is System.out.println ( "assembled. 5 Qingdao Beer 600ml" );
22 is System.out.println ( "6923740100059. 1 4.50 4.50" );
23 is System.out.println ( "total 47.20" );
24 }
25
26 is }
Third, screenshots operating results: