BHAILOG PROGRAMMER
  • Home
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Home
  • C++ PROGRAM
  • Java Program
  • VB.NET PROGRAM
  • ANDROID
  • SQL
  • Q/A
  • Books

Wednesday, December 26, 2018

JAVA PROGRAM SUBTRACTION

 BHAILOG     December 26, 2018     PROGRAMMING METHODS     No comments   

JAVA PROGRAM METHODS


1.Download the application file of java.

2.Click here to download java(jdk).

3.Install the jdk file.

4.Write the java program on notepad.

5.Save the file in java application.

6.Wrote the file name is correct.
 for ex.we can save the Subtraction file.
          Subtraction.java


7.Save the program:- C:\Program Files\Java\bin.


8.Then open the command prompt (cmd).

9.Then type the cd\
   then type cd program files   
   then type cd java
   then type cd bin



10.Now we are going in the:- C:\Program Files\Java\bin. 

11.Then compile the program,then type javac Subtraction.java


12.Then automatically create class file now check in the:- C:\Program Files\Java\bin. 



13.Then run the program write command : java Subtraction



14.Your program is successfully run.....



SUBTRACTION PROGRAM


public class Subtraction
{
   public static void main(String args[])
    {
       int a=10;
       int b=20;
       int c=b-a;
       System.out.println("Subtraction is"+c);
    }
}



//***************************************************************
END OF PROGRAM
//***************************************************************
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

0 comments:

Post a Comment

Popular

  • WINTER – 2018 EXAMINATION
    WINTER – 2018 EXAMINATION
    WINTER – 2018 EXAMINATION  MODEL ANSWER MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION DOWNLOAD PDF Information Technology Department...
  • VB.Net program
    VB.Net program
    VB.Net PROGRAM VB.Net Hello World Example Let us look at a simple code that would print the words "Hello World" − I...

Translate

About Me

indian-choice
View my complete profile

Followers

  • Home
  • C++ PROGRAM
  • Java Program
  • VB.NET PROGRAM
  • ANDROID
  • SQL
  • Q&A
  • Books

BLOG

  • About Us
  • Disclaimer
  • Privacy Policy
  • Contact Us

Copyright © BHAILOG PROGRAMMER | Powered by Bhailog Programmer
Design by Mohit and Pravin