Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int foo(int a, String s)
- {
- s = “Yellow”;
- a=a+2;
- return a;
- }
- public static void bar()
- {
- int a=3;
- String s = “Blue”;
- a = foo(a,s);
- System.out.println(“a=”+a+” s=”+s);
- }
- public static void main(String args[])
- {
- bar();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement