Help on interface tutorial
just started trying to learn java today, so i am a total newbie. anyways, this is what my current code looks like:
/*
* Main.java
*
* Created on July 2, 2007, 1:13 AM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package javaapplication20;
/**
*
* @author spacemonkeys
*/
publicclass Main{
interface Bicycle{
void changeCadence(int newValue);
void changeGear(int newValue);
void speedUp(int increment);
void applyBrakes(int decrement);
}
/** Creates a new instance of Main */
public Main(){
}
/**
* @param args the command line arguments
*/
publicstaticvoid main(String[] args){
class ACMEBicycleimplements Bicycle{
// remainder of this class implemented as before
publicvoid changeCadence(int newValue){
}
publicvoid changeGear(int newValue){
}
publicvoid speedUp(int increment){
}
publicvoid applyBrakes(int decrement){
}
}
}
}
when i click run, nothing shows up and it just says init:
deps-jar:
compile:
run:
BUILD SUCCESSFUL (total time: 1 second)
am i doing something wrong or what is this supposed to do? heres the link to the tutorial page (i wish they would include a file with the correct .java file ><) http://java.sun.com/docs/books/tutorial/java/concepts/interface.html

