View Single Post
Old 04-05-2001, 10:43 AM   #48
Sir_Tainly
Guest
 

Posts: n/a
Quote:
Originally posted by Gray Mage:
Good morning all, nice to see everyone!! need a cup of Java

import java.io.*;
import java.util.*;

package com.moonshope.cup;

public class cup {

private boolean isfull = false;
private String drinktype = "";

public cup(){
}

public string drinkcup() {
if (isfull) {
return "some " + drinktype;
}
else {
return "some air";
}

public void fillcup(String drink) {
drinktype = drink;
}
}

Is this what you wanted?




------------------

Holy Avenger of the OHF

HATS for sale baby!
Sponsored by Yorick
Your ad here? Call 112 -221 -123