For a problem as simple as repeat division on each of the N numbers from console, you might be tempted to use single line of code by making use of lambda expressions. ( like below )
reader.lines().limit(numOfTCs).mapToInt(parseInt(x)).foreach(buffer.append(y/divisor));
reader.lines().limit(numOfTCs).mapToInt(parseInt(x)).foreach(buffer.append(y/divisor));
But, the choice will cost you performance and readability!!
At times, its the more verbose but easier to understand piece of code that wins over the newer methods of coding.
Lesson: Just because you can code in Java8 syntax, you need not overuse it.