Actually the readLine() method will reads the data through the bufferdReader object. It reads only one line of data through keyboard. We can't enter the multiple lines of data at runtime.This is the main functionality of the readLine() method.
I don't think that is right because if it was then changing the value inside the called function should reflect the change when the passed variable is accessed in calling function.
what is point behind sending integer by reference???Still if you want to do so... lookclass Demo{private int i;public static void main(String[] ar){ Demo d=new Demo();&nb...