Skip to main content
used anonymous class instead of M. Removed some spaces.
Source Link

Java (aka never wins at codegolf) : 234 211211 187 chars

public class   M extends Thread{long v;Mpublic static void main(longString[]s){for(final String a:s)new Thread(){v=s;}public   void   run(){try{sleep(v*1000Long.parseLong(a));}catch(Exception e){}System.out.println(va);}}.start();}} 

ungolfed:

public class M {  public static   void   main(String[]sString[] s) { for(final String a:s) new MThread(){ public void run() { try { sleep(Long.parseLong(a)); } catch(Exception e){} System.out.println(a); } }.start(); }  } 

Java (aka never wins at codegolf) : 234 211 chars

class  M extends Thread{long v;M(long s){v=s;}public  void  run(){try{sleep(v*1000);}catch(Exception e){}System.out.println(v);}public static  void  main(String[]s){for(String a:s)new M(Long.parseLong(a)).start();}} 

Java (aka never wins at codegolf) : 234 211 187 chars

public class M{public static void main(String[]s){for(final String a:s)new Thread(){public void run(){try{sleep(Long.parseLong(a));}catch(Exception e){}System.out.println(a);}}.start();}} 

ungolfed:

public class M {  public static void main(String[] s) { for(final String a:s) new Thread(){ public void run() { try { sleep(Long.parseLong(a)); } catch(Exception e){} System.out.println(a); } }.start(); }  } 
deleted 10 characters in body
Source Link

Java (aka never wins at codegolf) : 234234 211 chars

import java.lang.*;classclass M extends Thread{long v;M(Stringlong s){v=Long.parseLong(s);v=s;}public void run(){try{sleep(vv*1000);}catch(Exception e){}System.out.println(v);}public static void main(String[] argsString[]s){for(String a:argss)new M(Long.parseLong(a)).start();}} 

Java (aka never wins at codegolf) : 234 chars

import java.lang.*;class M extends Thread{long v;M(String s){v=Long.parseLong(s);}public void run(){try{sleep(v);}catch(Exception e){}System.out.println(v);}public static void main(String[] args){for(String a:args)new M(a).start();}} 

Java (aka never wins at codegolf) : 234 211 chars

class M extends Thread{long v;M(long s){v=s;}public void run(){try{sleep(v*1000);}catch(Exception e){}System.out.println(v);}public static void main(String[]s){for(String a:s)new M(Long.parseLong(a)).start();}} 
Rollback to Revision 1
Source Link

Java (aka never wins at codegolf) : 213234 chars

classimport java.lang.*;class M extends Thread{long v;M(String s){v=Long.parseLong(s)*1000;;}public void run(){try{sleep(v);}catch(Exception e){}System.out.println(v);}public static void main(String[]sString[] args){for(String a:sargs)new M(a).start();}} 

Java (aka never wins at codegolf) : 213 chars

class M extends Thread{long v;M(String s){v=Long.parseLong(s)*1000;}public void run(){try{sleep(v);}catch(Exception e){}System.out.println(v);}public static void main(String[]s){for(String a:s)new M(a).start();}} 

Java (aka never wins at codegolf) : 234 chars

import java.lang.*;class M extends Thread{long v;M(String s){v=Long.parseLong(s);}public void run(){try{sleep(v);}catch(Exception e){}System.out.println(v);}public static void main(String[] args){for(String a:args)new M(a).start();}} 
deleted 21 characters in body
Source Link
Loading
Source Link
Loading