diff options
Diffstat (limited to 'java/demo/Ice/value/PrinterI.java')
-rw-r--r-- | java/demo/Ice/value/PrinterI.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/java/demo/Ice/value/PrinterI.java b/java/demo/Ice/value/PrinterI.java new file mode 100644 index 00000000000..2ea69cefbd6 --- /dev/null +++ b/java/demo/Ice/value/PrinterI.java @@ -0,0 +1,25 @@ +// ********************************************************************** +// +// Copyright (c) 2001 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +class PrinterI extends Printer +{ + public void + printBackwards(Ice.Current current) + { + char[] arr = _message.toCharArray(); + for (int i = 0; i < arr.length / 2; i++) + { + char tmp = arr[arr.length - i - 1]; + arr[arr.length - i - 1] = arr[i]; + arr[i] = tmp; + } + System.out.println(new String(arr)); + } +} |