home *** CD-ROM | disk | FTP | other *** search
/ Sams Teach Yourself C in 21 Days (6th Edition) / STYC216E.ISO / mac / Examples / Day26 / UseCircle2.java < prev   
MacBinary  |  2002-05-26  |  1.4 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, Sun May 26 00:57:46 2002, modified Sun May 26 00:57:46 2002, creator 'LMAN', type ASCII, 771 bytes "UseCircle2.java" , at 0x383 286 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% 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 0f 55 73 65 43 69 72 | 63 6c 65 32 2e 6a 61 76 |..UseCir|cle2.jav|
|00000010| 61 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |a.......|........|
|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 03 03 00 | 00 01 1e b9 16 1b ca b9 |........|........|
|00000060| 16 1b ca 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 1f 67 00 00 |........|.....g..|
|00000080| 69 6d 70 6f 72 74 20 6a | 61 76 61 2e 6c 61 6e 67 |import j|ava.lang|
|00000090| 2e 53 74 72 69 6e 67 3b | 0d 0a 69 6d 70 6f 72 74 |.String;|..import|
|000000a0| 20 6a 61 76 61 2e 6c 61 | 6e 67 2e 44 6f 75 62 6c | java.la|ng.Doubl|
|000000b0| 65 3b 0d 0a 0d 0a 70 75 | 62 6c 69 63 20 63 6c 61 |e;....pu|blic cla|
|000000c0| 73 73 20 43 6f 6e 73 74 | 72 75 63 74 6f 72 44 65 |ss Const|ructorDe|
|000000d0| 6d 6f 20 7b 0d 0a 20 20 | 70 75 62 6c 69 63 20 73 |mo {.. |public s|
|000000e0| 74 61 74 69 63 20 76 6f | 69 64 20 6d 61 69 6e 28 |tatic vo|id main(|
|000000f0| 53 74 72 69 6e 67 20 61 | 72 67 73 5b 5d 29 20 7b |String a|rgs[]) {|
|00000100| 0d 0a 0d 0a 20 20 20 20 | 63 69 72 63 6c 65 20 63 |.... |circle c|
|00000110| 31 3b 0d 0a 20 20 20 20 | 63 69 72 63 6c 65 20 63 |1;.. |circle c|
|00000120| 32 3b 0d 0a 20 20 20 20 | 63 69 72 63 6c 65 20 63 |2;.. |circle c|
|00000130| 33 3b 0d 0a 0d 0a 20 20 | 20 20 63 31 20 3d 20 6e |3;.... | c1 = n|
|00000140| 65 77 20 63 69 72 63 6c | 65 28 29 3b 0d 0a 20 20 |ew circl|e();.. |
|00000150| 20 20 63 32 20 3d 20 6e | 65 77 20 63 69 72 63 6c | c2 = n|ew circl|
|00000160| 65 28 39 39 2e 39 39 29 | 3b 0d 0a 20 20 20 20 63 |e(99.99)|;.. c|
|00000170| 33 20 3d 20 6e 65 77 20 | 63 69 72 63 6c 65 28 30 |3 = new |circle(0|
|00000180| 2e 30 30 31 2c 20 22 48 | 61 72 6f 6c 64 22 29 3b |.001, "H|arold");|
|00000190| 0d 0a 20 20 20 20 53 79 | 73 74 65 6d 2e 6f 75 74 |.. Sy|stem.out|
|000001a0| 2e 70 72 69 6e 74 6c 6e | 28 22 46 6f 72 20 63 31 |.println|("For c1|
|000001b0| 3a 22 29 3b 0d 0a 20 20 | 20 20 53 79 73 74 65 6d |:");.. | System|
|000001c0| 2e 6f 75 74 2e 70 72 69 | 6e 74 6c 6e 28 22 20 20 |.out.pri|ntln(" |
|000001d0| 54 68 65 20 72 61 64 69 | 75 73 20 69 73 20 22 20 |The radi|us is " |
|000001e0| 2b 20 44 6f 75 62 6c 65 | 2e 74 6f 53 74 72 69 6e |+ Double|.toStrin|
|000001f0| 67 28 63 31 2e 72 61 64 | 69 75 73 29 29 3b 0d 0a |g(c1.rad|ius));..|
|00000200| 20 20 20 20 53 79 73 74 | 65 6d 2e 6f 75 74 2e 70 | Syst|em.out.p|
|00000210| 72 69 6e 74 6c 6e 28 22 | 20 20 54 68 65 20 6e 61 |rintln("| The na|
|00000220| 6d 65 20 69 73 20 22 20 | 2b 20 63 31 2e 6e 61 6d |me is " |+ c1.nam|
|00000230| 65 29 3b 0d 0a 20 20 20 | 20 53 79 73 74 65 6d 2e |e);.. | System.|
|00000240| 6f 75 74 2e 70 72 69 6e | 74 6c 6e 28 22 46 6f 72 |out.prin|tln("For|
|00000250| 20 63 32 3a 22 29 3b 0d | 0a 20 20 20 20 53 79 73 | c2:");.|. Sys|
|00000260| 74 65 6d 2e 6f 75 74 2e | 70 72 69 6e 74 6c 6e 28 |tem.out.|println(|
|00000270| 22 20 20 54 68 65 20 72 | 61 64 69 75 73 20 69 73 |" The r|adius is|
|00000280| 20 22 20 2b 20 44 6f 75 | 62 6c 65 2e 74 6f 53 74 | " + Dou|ble.toSt|
|00000290| 72 69 6e 67 28 63 32 2e | 72 61 64 69 75 73 29 29 |ring(c2.|radius))|
|000002a0| 3b 0d 0a 20 20 20 20 53 | 79 73 74 65 6d 2e 6f 75 |;.. S|ystem.ou|
|000002b0| 74 2e 70 72 69 6e 74 6c | 6e 28 22 20 20 54 68 65 |t.printl|n(" The|
|000002c0| 20 6e 61 6d 65 20 69 73 | 20 22 20 2b 20 63 32 2e | name is| " + c2.|
|000002d0| 6e 61 6d 65 29 3b 0d 0a | 20 20 20 20 53 79 73 74 |name);..| Syst|
|000002e0| 65 6d 2e 6f 75 74 2e 70 | 72 69 6e 74 6c 6e 28 22 |em.out.p|rintln("|
|000002f0| 46 6f 72 20 63 33 3a 22 | 29 3b 0d 0a 20 20 20 20 |For c3:"|);.. |
|00000300| 53 79 73 74 65 6d 2e 6f | 75 74 2e 70 72 69 6e 74 |System.o|ut.print|
|00000310| 6c 6e 28 22 20 20 54 68 | 65 20 72 61 64 69 75 73 |ln(" Th|e radius|
|00000320| 20 69 73 20 22 20 2b 20 | 44 6f 75 62 6c 65 2e 74 | is " + |Double.t|
|00000330| 6f 53 74 72 69 6e 67 28 | 63 33 2e 72 61 64 69 75 |oString(|c3.radiu|
|00000340| 73 29 29 3b 0d 0a 20 20 | 20 20 53 79 73 74 65 6d |s));.. | System|
|00000350| 2e 6f 75 74 2e 70 72 69 | 6e 74 6c 6e 28 22 20 20 |.out.pri|ntln(" |
|00000360| 54 68 65 20 6e 61 6d 65 | 20 69 73 20 22 20 2b 20 |The name| is " + |
|00000370| 63 33 2e 6e 61 6d 65 29 | 3b 0d 0a 20 20 7d 0d 0a |c3.name)|;.. }..|
|00000380| 7d 0d 0a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |}.......|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 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 |........|........|
|00000400| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000410| 54 68 69 73 20 72 65 73 | 6f 75 72 63 65 20 66 6f |This res|ource fo|
|00000420| 72 6b 20 69 6e 74 65 6e | 74 69 6f 6e 61 6c 6c 79 |rk inten|tionally|
|00000430| 20 6c 65 66 74 20 62 6c | 61 6e 6b 20 20 20 00 00 | left bl|ank ..|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+