Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Applet {
- static int x,
- y,
- z;
- public Applet(int in_x, int in_y)
- {
- x = in_x;
- y = in_y;
- }
- public static void main(string[] args)
- {
- z = x + y;
- System.out.println("x = " + x);
- System.out.println("y + " + y);
- System.out.println("x + y =" + z);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement