The Class DataInputStream is baselly handle a primitive type data types Example 1 write a programme to input your Firstname,lastname input them. import java.io.*; public class DataInputstream { public static void main(String[] args) { DataInputStream dis = new DataInputStream(System.in); String fname,lname; fname = ""; lname = ""; try { System.out.print("Enter Your FirstName"); fname = dis.readLine(); System.out.print("Enter Your LastName"); lname …