Created
August 18, 2013 15:05
-
-
Save jnugh/6262101 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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