SHARE
TWEET

Untitled

a guest Jul 17th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //bad
  2. String anu = "my name is bar-bar";
  3. String anu2 = "im as software engineer";
  4.  
  5. //good
  6. String name = "my name is bar-bar";
  7. String jobPosition = "im as software engineer";
  8.  
  9. // bad
  10. private void penambahanAnu(){
  11.   int a = 1;
  12.   int b = 2;
  13.   int c = a+b;
  14.  
  15.   int d = 8;
  16.   int e = 8;
  17.  
  18.   int f = d+e;
  19.  
  20.   int g = c+f;
  21.  
  22.   print(g);
  23. }
  24.  
  25. //better
  26. private int fungsinPenambahan(int a, int b){
  27.   int c = a+b;
  28.   return c;
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top