Saturday, July 22, 2023

BufferedReader - Interger - JAVA

 import java.io.BufferedReader;

import java.io.IOException;
import java.io.InputStreamReader;

public class BuffReadInt {
    public static void main(String[] args)throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        System.out.println("Enter an integer value");
        String s=br.readLine();
        int n=Integer.parseInt(s);
        System.out.println(n);
    }
}

No comments:

Post a Comment

A physicist confesses that the electron is round and that Jesus rose from the dead. (Bengali)

একজন পদার্থবিজ্ঞানী স্বীকার করেন যে ইলেকট্রন গোলাকার এবং যিশু মৃতদের মধ্য থেকে পুনরুত্থিত হয়েছিলেন। আমার নিজের বিশ্বাস প্রমাণ দ্বারা প্রভাব...