I was just going through some basic stuff as I am learning C. I came upon a question to multiply a number by 7 without using the * operator. Basically it\'s like this
Another thinking-outside-the-box answer:
BigDecimal a = new BigDecimal(123); BigDecimal b = new BigDecimal(2); BigDecimal result = a.multiply(b); System.out.println(result.intValue());