SHARE
TWEET

Untitled

a guest Aug 13th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2. public class Test {
  3.     public static void main(String ars[]){
  4.  
  5.         int blacks, mexicans, whites, legal_citizens, illegal_citizens, hood_rats;
  6.        
  7.         Scanner Dustin = new Scanner(System.in);
  8.        
  9.         System.out.println("How many black people do you want?");
  10.         blacks = Dustin.nextInt();
  11.        
  12.         System.out.println("How many mexicans do you want?");
  13.         mexicans = Dustin.nextInt();
  14.        
  15.         System.out.println("How many whites do you want?");
  16.         whites = Dustin.nextInt();
  17.        
  18.         hood_rats = blacks;
  19.         illegal_citizens = mexicans;
  20.         legal_citizens = whites;
  21.        
  22.         System.out.println("There are: " + hood_rats +  " hood rats," + illegal_citizens + " illegal citizens," + legal_citizens + " legal citizens");
  23.        
  24.     }
  25.  
  26. }
RAW Paste Data
Top