Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
tUGAS 2

tUGAS 2

Ratings: (0)|Views: 6 |Likes:

More info:

Published by: Optionz Sick's Banditz on Oct 31, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

10/30/2009

pdf

text

original

 
TUGAS 2
2.2.1
Macam Stream Java
System.in , berguna untuk menangani pembacaan dari keyboard dan merupakan
 standard input 
System.out , berguna untuk mengirimkan keluaran ke layar dan merupakan
 standard output 
System.err , biasa digunakan untuk mengirimkan kesalahan dan merupakan
 standard kesalahan
2.2.2
Kelas turunan Input Stream
2.2.3
Program akar kuadratimport java.io.*;class akarkuadrat{ public static void main(String [] args) throws Exception{int nilInt,Hasil;DataInputStream x=new DataInputStream(System.in);System.out.print("Input :");String nil=x.readLine();nilInt=Integer.parseInt(nil);Hasil= Math.sqrt(nilInt);System.out.println("output "+nilInt+" = "+ Hasil);}}

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->