All pastes #43305 Raw Edit

CurrencyProject

public java v1 · immutable
#43305 ·published 2006-02-27 02:54 UTC
rendered paste body
import java.util.Scanner;public class Money {	private int dollars;	private int cents;			public Money()	{		dollars = 0;		cents = 0;	}	public Money(int dollars) {		this.dollars = dollars;	}	public Money(int dollars, int cents) {					this.dollars = dollars;			this.cents = cents;		}		public static int addMoney (int dollars, int cents)	{				return (0);		}				}