BHAILOG PROGRAMMER
  • Home
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Home
  • C++ PROGRAM
  • Java Program
  • VB.NET PROGRAM
  • ANDROID
  • SQL
  • Q/A
  • Books
Showing posts with label PROGRAMMING METHODS. Show all posts
Showing posts with label PROGRAMMING METHODS. Show all posts

Wednesday, December 26, 2018

JAVA PROGRAM MULTIPLICATION

 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 Multiplication file.
          Multiplication.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 Multiplication.java 



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

13.Then run the program write command : java Multiplication



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


MULTIPLICATION PROGRAM


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


//***************************************************************
END OF PROGRAM
//***************************************************************
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

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
//***************************************************************
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

JAVA PROGRAMM ADDITION

 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 additon file.
          Addition.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 Addition.java


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



13.Then run the program write command : java Addition


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


ADDITION  PROGRAM



Addition.java

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







//***************************************************************
END OF PROGRAM
//***************************************************************
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Older Posts Home

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