A Simple Basic Java Program

package javaapplication17;
import java.io.*;
public class JavaApplication17 {
   public static void main(String[] argv) throws Exception
    System.out.print("Enter your name: ");
    InputStreamReader in = new InputStreamReader(System.in);
    BufferedReader br = new BufferedReader(in);
    String name = br.readLine();
    System.out.println("Hello, " + name+" enter a value and b value");
    int a,b;
    System.out.println(" sum of two given number"+(a+b));


Bhanu Namikaze

Bhanu Namikaze is an Ethical Hacker, Security Analyst, Blogger, Web Developer and a Mechanical Engineer. He Enjoys writing articles, Blogging, Debugging Errors and Capture the Flags. Enjoy Learning; There is Nothing Like Absolute Defeat - Try and try until you Succeed.

No comments:

Post a Comment