Java Tutorial

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

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

      public void init(){

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

    Related Post:
  1. Program to display attributes of a specified file

  2. Program to declare, initialize and print an array of integers

  3. Develop a game application in CORBA for which the player will guess a number between 1 to 100, which will be compared to the random number generated b

  4. Program to declare, initialize and print a String object

  5. Program to read bytes from a file

  6. Program to show an example of Arrays of String

  7. Program to convert the given temperature in faherenhiet to celsius using the following conversion formula C= F- 32/1.8

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

  9. Program to show the use of operator (>>) Shift Right, propagating the sign bit from the left

  10. Program using Switch case to compute the net amount to be paid by a customer

  11. Corba program to develop a simple calculator with addition, subtraction, multiplication and division capabilities, data collection from client side

  12. Program of writing Bytes to a File

  13. Program to read the ballots and count the votes cast for each candidate using an array variable count

  14. Program to show an example of Multiple Levels of Inheritance

  15. An applet program that display blinking rectangle

  16. Program that accepts a shopping list of five items from the command line and stores them in vector

  17. Program to show an example of using a recursive method in a class

  18. Program to show the use of Logical OR Operator (|) in If Statements

  19. File handling program to count number of characters in a file

  20. Program to display text

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