@@ -0,0 +1,748 @@
+/**%0A * @file AssertTest.java%0A * @author Valery Samovich%0A * @version 1.0.0%0A * @date 12/16/2014%0A *%0A * Demonstrates the assert with if statement with input.%0A */%0A%0Apackage com.valerysamovich.java.advanced.junit;%0A%0Aimport java.util.Scanner;%0A%0Apublic class AssertTest %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        // Create instance of Scanner%0A        Scanner input = new Scanner(System.in);%0A%0A        System.out.println(%22Enter number between 0 to 10: %22);%0A        int number = input.nextInt();%0A%0A        // Assert that the absolute value is %3E= 0%0A        if (!(number %3E= 0 && number %3C= 10))%0A            throw new AssertionError(%22Bad number: %22 + number);%0A%0A        // Print the response%0A        System.out.printf(%22You entered %25d%5Cn%22, number);%0A%0A    %7D%0A%7D%0A

Add assert example with if