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;
    a=Integer.parseInt(br.readLine());
    b=Integer.parseInt(br.readLine());
    System.out.println(" sum of two given number"+(a+b));
   
    }
 
  }

   

    
Bhanu Namikaze

Bhanu Namikaze is an Ethical Hacker, Web Developer, Student and Mechanical Engineer. He Enjoys writing articles, Blogging, Solving Errors and Social Networking. Feel Free to let me know any of your concerns about hacking or let me know if you need any more methods on hacking anything. Enjoy Learning

No comments:

Post a Comment