All pastes #274330 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-12-10 17:08 UTC
rendered paste body
public boolean equals(Scanner scan){
		if(this.shapeEquals(scan) == false){
			System.out.println("false");
			return false;
		}
		else{
			
			String thisLine = in.readLine();
			thisLine.trim();
			String scanLine = scan.in.readLine();
			scanLine.trim();
			while(thisLine != null){
				if(thisLine.length() > 0){
					if(thisLine != scanLine){
						System.out.println("false");
						return false;
					}
				}
				thisLine = in.readLine();
				scanLine = scan.in.readLine();
			}
			System.out.println("true");
			return true;
		}
	}