Skip to content

Instantly share code, notes, and snippets.

@jnugh
Created August 18, 2013 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnugh/6262101 to your computer and use it in GitHub Desktop.
Save jnugh/6262101 to your computer and use it in GitHub Desktop.
public class ShippingCalculatorTest {
public static void main(String[] args) {
Book[] testBooks = { new Book("ABC", 125), new Book("DEF", 375, 12.95),
new Book("GHI", 490, 27.5) };
for (Book book : testBooks) {
System.out.println(book);
}
System.out.println("Versandkosten: "
+ ShippingCalculator.calculateShippingCost(testBooks) + "€");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment