All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kilim.tools.P Maven / Gradle / Ivy

Go to download

Coroutines, continuations, fibers, actors and message passing for the JVM

There is a newer version: 2.0.2-jdk7
Show newest version
/* Copyright (c) 2006, Sriram Srinivasan
 *
 * You may distribute this software under the terms of the license 
 * specified in the file "License"
 */

package kilim.tools;

// Various print routines to call from jvml files (*.j). More convenient
// than calling System.out.println.

public class P {
    // Call as invokestatic  kilim/tools/P/pi(I)V
    public static void pi(int i) {
        System.out.println(i);
    }

    // Call as invokestatic kilim/tools/P/pn()V
    public static void pn() {
        System.out.println();
    }

    // Call as invokestatic kilim/tools/P/pn(Ljava/lang/Object;)V
    public static void pn(Object o) {
        System.out.println(o);
    }

    // Call as invokestatic  kilim/tools/P/p(Ljava/lang/Object;)V
    public static void p(Object o) {
        System.out.print(o);
    }

    // Call as invokestatic kilim/tools/P/ps(Ljava/lang/Object;)V
    public static void ps(Object o) {
        System.out.print(o);
        System.out.print(" ");
    }
    // Call as invokestatic kilim/tools/P/ptest()V
    public static void ptest() {
        System.out.println("test");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy