DataInputStream to capture user input using readLine

Java Program – how to use DataInputStream

Here is a Java program that helps you to understand how to use DataInputStream to capture user input. Java Program – how to use DataInputStream to capture user input using readLine import java.io.DataInputStream;class Reading{ public static void main(String args[]){DataInputStream din= new DataInputStream(System.in);int i1=0;//initialization must to compile//error: variable i1 might not have been initializedfloat f1=0.0f;//initialization must […]

Scroll to top
error: physicsTeacher.in