Respuesta :
Answer:
See Explaination
Explanation:
Label.java:
import java.util.*;
public class Label {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in=new Scanner(System.in);
String title,firstName,lastName,streetAddress,city,state,zip,enterAnother;
int numBoxes,count;
enterAnother = "Y";
while(enterAnother.equals("Y") || enterAnother.equals("y"))
{
System.out.println("Enter title Mr./Ms./Mrs.");
title=in.nextLine();
System.out.println("Enter the first name: ");
firstName=in.nextLine();
System.out.println("Enter the last name: ");
lastName=in.nextLine();
System.out.println("Enter the street Address: ");
streetAddress=in.nextLine();
System.out.println("Enter the city: ");
city=in.nextLine();
System.out.println("Enter the state: ");
state=in.nextLine();
System.out.println("Enter the zip : ");
zip=in.nextLine();
System.out.println("Enter the number of boxes: ");
numBoxes=in.nextInt();
count=1;
while(count<=numBoxes)
{
System.out.println();
System.out.println(title+". "+firstName+" "+lastName);
System.out.println(streetAddress);
System.out.println(city+", "+state+", "+zip);
System.out.println("Box "+count +" of "+numBoxes);
System.out.println();
count+=1;
}
in.nextLine();
System.out.println("Do you want to enter another? (Y/y): ");
enterAnother=in.nextLine();
}
}
}