public class Tester { public static void main(String[] args) { int result = 2; if ( result > 3 && result < 7 ) result++; } }