home *** CD-ROM | disk | FTP | other *** search
/ Sams Teach Yourself C in 21 Days (6th Edition) / STYC216E.ISO / mac / Examples / Day25 / InputOutputTest.java next >
MacBinary  |  2002-05-25  |  1.0 KB  |  [TEXT/LMAN]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sat May 25 21:15:10 2002, modified Sat May 25 21:15:10 2002, creator 'LMAN', type ASCII, 511 bytes "InputOutputTest.java" , at 0x27f 286 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID raw Group 3 FAX bitmap default (weak)
16% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[LMAN]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 14 49 6e 70 75 74 4f | 75 74 70 75 74 54 65 73 |..InputO|utputTes|
|00000010| 74 2e 6a 61 76 61 00 00 | 00 00 00 00 00 00 00 00 |t.java..|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4c 4d 41 | 4e 00 00 ff ff ff ff 00 |.TEXTLMA|N.......|
|00000050| 00 00 00 00 00 01 ff 00 | 00 01 1e b9 15 e7 9e b9 |........|........|
|00000060| 15 e7 9e 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 e0 91 00 00 |........|........|
|00000080| 69 6d 70 6f 72 74 20 6a | 61 76 61 2e 6c 61 6e 67 |import j|ava.lang|
|00000090| 2e 53 79 73 74 65 6d 3b | 0d 0a 69 6d 70 6f 72 74 |.System;|..import|
|000000a0| 20 6a 61 76 61 2e 69 6f | 2e 49 6e 70 75 74 53 74 | java.io|.InputSt|
|000000b0| 72 65 61 6d 52 65 61 64 | 65 72 3b 0d 0a 69 6d 70 |reamRead|er;..imp|
|000000c0| 6f 72 74 20 6a 61 76 61 | 2e 69 6f 2e 42 75 66 66 |ort java|.io.Buff|
|000000d0| 65 72 65 64 52 65 61 64 | 65 72 3b 0d 0a 69 6d 70 |eredRead|er;..imp|
|000000e0| 6f 72 74 20 6a 61 76 61 | 2e 69 6f 2e 49 4f 45 78 |ort java|.io.IOEx|
|000000f0| 63 65 70 74 69 6f 6e 3b | 0d 0a 0d 0a 70 75 62 6c |ception;|....publ|
|00000100| 69 63 20 63 6c 61 73 73 | 20 49 6e 70 75 74 4f 75 |ic class| InputOu|
|00000110| 74 70 75 74 54 65 73 74 | 20 7b 0d 0a 0d 0a 20 20 |tputTest| {.... |
|00000120| 20 20 70 75 62 6c 69 63 | 20 73 74 61 74 69 63 20 | public| static |
|00000130| 76 6f 69 64 20 6d 61 69 | 6e 28 53 74 72 69 6e 67 |void mai|n(String|
|00000140| 20 61 72 67 73 5b 5d 29 | 20 74 68 72 6f 77 73 20 | args[])| throws |
|00000150| 49 4f 45 78 63 65 70 74 | 69 6f 6e 20 7b 0d 0a 20 |IOExcept|ion {.. |
|00000160| 20 20 20 2f 2f 20 53 65 | 74 20 75 70 20 74 6f 20 | // Se|t up to |
|00000170| 72 65 61 64 20 6c 69 6e | 65 73 20 66 72 6f 6d 20 |read lin|es from |
|00000180| 74 68 65 20 6b 65 79 62 | 6f 61 72 64 2e 0d 0a 20 |the keyb|oard... |
|00000190| 20 20 20 42 75 66 66 65 | 72 65 64 52 65 61 64 65 | Buffe|redReade|
|000001a0| 72 20 6b 62 3b 0d 0a 20 | 20 20 20 53 74 72 69 6e |r kb;.. | Strin|
|000001b0| 67 20 73 31 3b 0d 0a 0d | 0a 20 20 20 20 6b 62 20 |g s1;...|. kb |
|000001c0| 3d 20 6e 65 77 20 42 75 | 66 66 65 72 65 64 52 65 |= new Bu|fferedRe|
|000001d0| 61 64 65 72 28 6e 65 77 | 20 49 6e 70 75 74 53 74 |ader(new| InputSt|
|000001e0| 72 65 61 6d 52 65 61 64 | 65 72 28 53 79 73 74 65 |reamRead|er(Syste|
|000001f0| 6d 2e 69 6e 29 29 3b 0d | 0a 20 20 20 20 53 79 73 |m.in));.|. Sys|
|00000200| 74 65 6d 2e 6f 75 74 2e | 70 72 69 6e 74 6c 6e 28 |tem.out.|println(|
|00000210| 22 45 6e 74 65 72 20 61 | 20 6c 69 6e 65 20 6f 66 |"Enter a| line of|
|00000220| 20 74 65 78 74 3a 20 22 | 29 3b 0d 0a 20 20 20 20 | text: "|);.. |
|00000230| 73 31 20 3d 20 6b 62 2e | 72 65 61 64 4c 69 6e 65 |s1 = kb.|readLine|
|00000240| 28 29 3b 0d 0a 20 20 20 | 20 53 79 73 74 65 6d 2e |();.. | System.|
|00000250| 6f 75 74 2e 70 72 69 6e | 74 6c 6e 28 22 59 6f 75 |out.prin|tln("You|
|00000260| 20 65 6e 74 65 72 65 64 | 20 22 20 2b 20 73 31 29 | entered| " + s1)|
|00000270| 3b 0d 0a 0d 0a 20 20 20 | 20 7d 0d 0a 7d 0d 0a 00 |;.... | }..}...|
|00000280| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000290| 54 68 69 73 20 72 65 73 | 6f 75 72 63 65 20 66 6f |This res|ource fo|
|000002a0| 72 6b 20 69 6e 74 65 6e | 74 69 6f 6e 61 6c 6c 79 |rk inten|tionally|
|000002b0| 20 6c 65 66 74 20 62 6c | 61 6e 6b 20 20 20 00 00 | left bl|ank ..|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+