
// clear console
native void clear();

/*
 * println methods
 */
native void println();

void println( long i ) {
  print( i );

  println();
}

void println( ulong i ) {
  print( i );

  println();
}

void println( float d ) {
  print( d );

  println();
}

void println( double d ) {
  print( d );

  println();
}

void println( decimal d ) {
  print( d );

  println();
}

void println( boolean b ) {
  print( b );

  println();
}

void println( char c ) {
  print( c );

  println();
}

void println( String s ) {
  print( s );

  println();
}

void println( Object obj ) {
  print( obj );

  println();
}

/*
 * print methods
 */
native void print( long x );

native void print( ulong x );

native void print( float x );

native void print( double x );

native void print( decimal x );

native void print( boolean x );

native void print( char x );

native void print( String s );

void print( Object obj ) {
  if ( obj != null )
    print( obj.toString() );
  else
    print( "null" );
}
