Java Tutorial

 
 
 
 
import java.awt.*;
import java.applet.*;

public class passingPara extends Applet
{
       String str;
       int a,b,result;

      public void init(){
             str=getParameter(\"a\");
            a=Integer.parseInt(str);
            str=getParameter(\"b\");
            b=Integer.parseInt(str);
            result=a+b;
            str=String.valueOf(result);
        }

    public void paint(Graphics g){
          g.drawString(\" Result of Addition is : \"+str,0,15);
    }
}

    Related Post:
  1. Program to find the number of and sum of all integers greater than 100 and less than 200 that are divisible by 7

  2. Corba program of date operations

  3. Program to show an example of creating String objects from Character Arrays

  4. Program of insertion sort

  5. Program to show the use of Nested If-Else Statements

  6. Develop a RMI based application for addition of two complex numbers

  7. GUI application in java, which enter the details of a student and on the submit display the details of the student

  8. Program to display following things on the client machine a)date and time of the server machine b)date and time of the client machine and difference

  9. Program to show the use of some Math Methods

  10. Program to search an element in an array using Linear Search

  11. Program sets up a String variable containing a paragraph of text of your choice. Extract the words from the text and sort them into alphabetical order

  12. Program to show the use of Logical or Boolean Negation i.e. NOT (!)

  13. Program to show an example of Calling a Base Class Method from a Derived Class

  14. Corba program to encrypt the text that you want to send on the client side. The server side decrypts it after receiving. Append server time.

  15. An applet program to add two numbers where data is entered in TextField

  16. An applet program to take user input and display

  17. Encrypt the text that you want to send on the client side. The server side decrypts it after receiving. Append server time after each word in the sent

  18. File handling program to copy characters from one file to another

  19. Program to show an example of searching Strings for subStrings

  20. Program to show an example of using multiple classes in a program

 
 
Didn't find what you were looking for? Find more on An applet program of passing parameters