eightLab6 - //(assumed to an integer greater than or equal...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import type.lib.*; i public class eightLab6 { public static void main(String[] args) { double flag = Double.parseDouble(args[0]); GlobalCredit random = GlobalCredit.getRandom(); for (CreditCard card : random) { if (card.getBalance() > flag) { System.out.print("*"); } System.out.println(card.toString()); } } } //Write a program that takes one command line argument
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //(assumed to an integer greater than or equal to zero). //Your program should generate a random GlobalCredit using GlobalCredit.getRandom(). //Print each card in the collection on a separate line; every card with a balance greater //than the input amount should be output with a '*' at the beginning of the line....
View Full Document

Ask a homework question - tutors are online