CoC any shorter way to read inputstream in Java?

Java is not the right tool to write short code I know but if I wan’t to use Java then what tricks can I use?
Reading input is a part of all clashes.
Is using Scanner the shortest way?

import java.util.*;
import java.io.*;
interface Solution{static void main(String[]a){
System.out.print(new Scanner(System.in).nextLine());
}
}

I tried using System.in without scanner.
But it forced me to throw Exeption, and set up a byte[] so code ended up longer
EDIT:

import java.io*;
interface Solution{static void main(String[]a)throws Exception{
int b;
while((b=System.in.read())>-1)System.out.print((char)b);
}
}