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
49Activity
0 of .
Results for:
No results containing your search query
P. 1
JAVA Project

JAVA Project

Ratings: (0)|Views: 783 |Likes:
Published by api-3738474

More info:

Published by: api-3738474 on Oct 15, 2008
Copyright:Attribution Non-commercial

Availability:

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

03/18/2014

pdf

text

original

 
file name: array.javaterminal no: 9programmer: delos reyes, jose mari luis c.date and time created: thursday, july 26, 2007, 11:10:50 amdescription: this program uses arrayoutput: multiplying a number to itself with out using input stream readerprogram:public class array{public static void main(string[] args){int [] a = new int [5];int [] b = new int [5];for (int x=0; x<a.length; ++x){a[x] = integer.parseint(args[x]);b[x] = a[x] * a[x];system.out.println(b[x]);}}}file name: array2.javaterminal no: 9programmer: delos reyes, jose mari luis c.date and time created: thursday, june 28, 2007, 11:01:12 amdescription: this program uses arrayoutput: multiplying a number to itselfprogram:import java.io.*;public class array2{public static void main(string[] args) throws ioexception{
 
inputstreamreader isr = new inputstreamreader(system.in);bufferedreader br = new bufferedreader(isr);int[] a = new int[5];int[] b = new int[5];string s;for(int x=0; x<a.length;++x){system.out.print("enter" + (x+1) + "number: ");s = br.readline();a[x] = integer.parseint(s);}system.out.println();for(int x=0;x<a.length;++x){b[x] = a[x] * a[x];system.out.println(b[x]);}}}file name: array3.javaterminal no: 9programmer: delos reyes, jose mari luis c.date and time created: thursday, june 21, 2007, 1:23:23 pmdescription: this program combined inputstreamreader and bufferedreader in one lineoutput: multiplying a number to itselfprogram:import java.io.*;public class array3{public static void main(string[] args) throws ioexception{bufferedreader br = new bufferedreader(new inputstreamreader(system.in));int[] a = new int[5];int[] b = new int[5];string s;for(int x=0; x<a.length;++x){system.out.print("enter " + (x+1) + " number: ");a [x] = integer.parseint(br.readline());}system.out.println();for(int x=0;x<a.length;++x){b[x] = a[x] * a[x];system.out.println(b[x]);
 
}}}file name: switchtest.javaterminal no: 9programmer: delos reyes, jose mari luis c.date and time created: thursday, july 05, 2007, 1:04:22 pmdescription:output: displaying a numberprogram:public class switchtest{public static void main(string args[]){int keyvalue = 1;switch(keyvalue){case 1:system.out.println("one");break;case 2:system.out.println("two");break;case 3:system.out.println("three");break;default:system.out.println("more");break;}}}

Activity (49)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Amneet Arora liked this
ravinderjcheema liked this
Vivek Banjare liked this
Hitesh Bajaj liked this
SunayanaSharma liked this
rangeles68 liked this
harshalhm liked this
Jesh liked this

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)//-->