import java.io.*;Explanation :-
public class addition
public static void main(String args)
DataInputStream input=new DataInputStream(System.in);
System.out.println("enter two numbers for addition");
System.out.println("the total is "+c);
import :- first line of code, import is a keyword for import packages(a package is collection of many inbuilt classes and functionality can use in our program) and .* means all the classes from the package will be imported.java.io :- is a package, contains the classes that handle fundamental input and output operations in Java.
float :- datatype represents real numbers.here a,b,c three variable defined.
DataInputStream :- defined in package java.io. This class has method for reading data from the console.
System.in :- represents that we want to read from standard input system i.e. from keyboard.
Float.parse :- typecasting(convert the input stream in float).
input.readLine() :- the readLine method of class DataInputStream allows us to read a string from keyword.
c = a + b performs addition and assign results to c and we can print results.