HW07-JRollinson/Code.java
public static String decimalToBinary(int decimal)
	{
		StringBuilder binaryString = new StringBuilder();
		binaryString.append(Integer.toBinaryString(decimal));
		
		for(int i = binaryString.length(); i < 16; i++)
		{
			binaryString.insert(0, "0");
		} 
		
		return binaryString.toString();
	}
// POST-CONDITION:	returns 16-bit string of binary digits (first char is MSB)

POST-CONDITION:        returns 16-bit string of binary digits (first char is MSB)
POST - CONDITION : returns 16 - bit string of binary digits ( first char is MSB )
public static String decimalToBinary(int decimal)
	{
		StringBuilder binaryString = new StringBuilder();
		binaryString.append(Integer.toBinaryString(decimal));
		for(int i = binaryString.length(); i < 16; i++)
		{
			binaryString.insert(0, "0");
		} 
		return binaryString.toString();
	}
public static String decimalToBinary ( int decimal ) { StringBuilder binaryString = new StringBuilder ( ) ; binaryString . append ( Integer . toBinaryString ( decimal ) ) ; for ( int i = binaryString . length ( ) ; i < 16 ; i ++ ) { binaryString . insert ( 0 , "0" ) ; } return binaryString . toString ( ) ; }
POST-CONDITION:        returns 16-bit string of binary digits (first char is MSB)
POST - CONDITION : returns 16 - bit string of binary digits ( first char is MSB )