Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package shoppingcart01;
- public class ShoppingCart01 {
- public static void main(String[] args) {
- // Declare and initialize String variables. Do not initialize message yet.
- String custName = "Alex";
- String itemDesc = "shirt.";
- // Assign the message variable
- String message = " wants to purchase a ";
- // Print and run the code
- System.out.println(custName + message + itemDesc);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement