ini bukan cara sebanding buat kalah-kalahan java dibikin bagus bisa, dibikin ancur juga bisa c/c++ juga demikian
2008/6/2 Feris Thia <[EMAIL PROTECTED]>: > Felix, > > Tantangan menarik ;) > > Code gue ini lulus ga ? => http://pastebin.com/m4f36f681 > > Atau kalo gue paste disini : > > package test.io; > > import java.io.PrintWriter; > import java.text.DecimalFormat; > > public class FelixIO { > public static void main(String[] args) { > //Mencatat waktu awal proses > > long waktuMulai= System.currentTimeMillis(); > PrintWriter out = new PrintWriter(System.out); > > for (int i = 0; i <= 1000000; i++) { > out.write("felix\n",0,6); > if(i==2000) out.flush(); > } > > //Mencatat waktu akhir proses > long waktuSelesai = System.currentTimeMillis(); > > double newRunTime = (double)(waktuSelesai - waktuMulai) / 1000; > DecimalFormat runtimeDF = new DecimalFormat("##0.000000"); > > out.println("Durasi ekseksi : " + > runtimeDF.format(newRunTime) + > " detik"); > out.flush(); > out.close(); > } > } > > > Regards, > > Feris > > > > -- > Thanks & Best Regards, > > Feris > PT. Putera Handal Indotama > A Business Intelligence Company > Jl. K.H. Moh Mansyur No. 11 B 8 - 12 > Jakarta - Indonesia > Phone : +6221-30119353 > Fax : +6221-5513483 > Mobile : +628176-474-525 > http://business-intelligence.phi-integration.com > http://blog.komputasiawan.com > > -- syaiful.mukhlis gtalk:[EMAIL PROTECTED]