Bioops

Bioinformatics=(ACGAAG->AK)+(#!/bin/sh)+(P(A|B)=P(B|A)*P(A)/P(B))

Learning Java #1

| Comments

Hello World!

HelloWorldApp.java
1
2
3
4
5
6
7
8
9
/**
 * The HelloWorldApp class implements an application that
 * simply prints "Hello World!" to standard output.
 */
class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); // Display the string.
    }
}

compile and run

javac HelloWorldApp.java
java HelloWorldApp

object, class, package

inheritance

class MountainBike extends Bicycle {
     // new fields and methods defining a mountain bike would go here
}

interface

class ACMEBicycle implements Bicycle {
// remainder of this class implemented as before
}

package

Comments