Помогите разобраться с BufferedReader. Почему иногда нужно после этого писать in, а иногда buf?
чем отличаются
int a = Integer.parseInt(in.readLine());
от
int n =Integer.parseInt(bufferedReader.readLine());
package com.javarush.task.task04.task0419;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Максимум четырех чисел
*/
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(in.readLine());
int b = Integer.parseInt(in.readLine());
int c = Integer.parseInt(in.readLine());
int d = Integer.parseInt(in.readLine());
if(a>b && a>c && a>d){
System.out.println(a);
}else if(b>a && b>c && b>d){
System.out.println(b);
}else if(c>a && c>b && c>d){
System.out.println(c);
}else if(a == b || a == c || a==d){
System.out.println(a);
}else if(b == c || b == d){
System.out.println(b);
}else if(c == d){
System.out.println(c);
}else
System.out.println(d);
}
}