pastebin

Paste Search Dynamic
Recent pastes
Date date
  1. import java.util.Date;
  2.  
  3.  public class Main {
  4.     public static void main(string[] args) {
  5.         date date = new date(1234567);
  6.         m1(date);
  7.         system.out.print(date.getTime() + " ");
  8.  
  9.         m2(date);
  10.         system.out.println(date.getTime());
  11.     }
  12.  
  13.     public static void m1(date date) {
  14.         date = new date(7654321);
  15.     }
  16.  
  17.     public static void m2(date date) {
  18.         date.setTime(7654321);
  19.     }
  20. }
Parsed in 0.024 seconds