Last change
on this file since 383 was 378, checked in by wouter, 2 years ago |
#114 cleaned up PrintStream translator. It now recognises much more calls and checks which of the overloaded functions is really called to map it to corresponding python code.
|
File size:
504 bytes
|
Rev | Line | |
---|
[378] | 1 | package testcode;
|
---|
| 2 |
|
---|
| 3 | /**
|
---|
| 4 | * Test for PrintStream. Uses several variants of print/println TODO also test
|
---|
| 5 | * the other functions: write, append, printf, format etc
|
---|
| 6 | */
|
---|
| 7 | public class PrintStreamExample {
|
---|
| 8 | /**
|
---|
| 9 | *
|
---|
| 10 | * @param args the arguments of the call.
|
---|
| 11 | */
|
---|
| 12 | static public void main(String[] args) {
|
---|
| 13 | System.out.print("H");
|
---|
| 14 | System.out.print('e');
|
---|
| 15 | System.out.print(1);
|
---|
| 16 | System.out.print(1.0);
|
---|
| 17 | System.out.print(true);
|
---|
| 18 | System.out.println();
|
---|
| 19 | System.out.println(new char[] { 'b', 'y', 'e' });
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.