com.daioware.commons.ScanF Maven / Gradle / Ivy
package com.daioware.commons;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
import java.math.BigInteger;
public final class ScanF {
public static final BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
public static byte readByte(){
return (byte)readDouble();
}
public static short readShort(){
return (short)readDouble();
}
public static int readInt(){
return (int)readDouble();
}
public static float readFloat(){
return (float)readDouble();
}
public static long readLong(){
return (long)readDouble();
}
public static double readDouble(){
try {
return Double.parseDouble(input.readLine());
}
catch (Exception e){
return 0;
}
}
public static char readChar(){
try{
return readString().charAt(0);
}
catch(IndexOutOfBoundsException e){
return ' ';
}
}
public static String readString(){
try{
return input.readLine();
}
catch (Exception e){
return "";
}
}
public static BigInteger readBigInteger() {
return new BigInteger(readString());
}
public static BigDecimal readBigDecimal() {
return new BigDecimal(readString());
}
public static void main(String[] args) throws IOException {
String s=ScanF.readString();
System.out.println("'"+s+"'");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy