Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Solution {
- public static void main (String [] args ){
- int a = 10 ;
- int b; //Delete
- System.out.println("Before modificatoin:"+a);
- fun(a);
- b = a; // Delete
- b = b+10; //Delete
- System.out.println("After modificatoin: A"+a);
- System.out.println("After modificatoin: B"+b); //Delete
- }
- static void fun(int a){
- a+=10;
- System.out.println("Modified: "+a);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement