forked from ramram43210/Java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClient.java
More file actions
32 lines (22 loc) · 1022 Bytes
/
Copy pathClient.java
File metadata and controls
32 lines (22 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
class Client
{
/**
* Test method
*/
public static void main( String[] args )
{
final Image IMAGE1 = new ProxyImage("HiResolution_100MB_Dog Photo");
final Image IMAGE2 = new ProxyImage("HiResolution_100MB_Lion photo");
System.out.println("IMAGE1["+IMAGE1+"] calling displayImage first time :");
IMAGE1.displayImage(); // loading necessary
System.out.println("IMAGE1["+IMAGE1+"] calling displayImage second time :");
IMAGE1.displayImage(); // loading unnecessary
System.out.println("IMAGE1["+IMAGE1+"] calling displayImage third time :");
IMAGE1.displayImage(); // loading unnecessary
System.out.println("###############################################################\n");
System.out.println("IMAGE2["+IMAGE2+"] calling displayImage first time :");
IMAGE2.displayImage(); // loading necessary
System.out.println("IMAGE2["+IMAGE2+"] calling displayImage second time :");
IMAGE2.displayImage(); // loading unnecessary
}
}