Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
962 B
45
Indexable
Never
package lab;

public class VariableAssign {
	public static void main(String[] args) {
		int counter = 1; 
		double price = 14.95; 
		float interestRate = 8.125F; 
		long numberOfBytes = 20000L; 
		int population = 1734323; 
		population = 1_734_323;  
		double distance = 3.65e+9; 
		char letter = 'A'; 
		letter = 65; 
		boolean valid = false; 
		int x = 0, y = 0; 
		
		final int DAYS_IN_NOVEMBER = 30; 
		final float SALES_TAX = .075F; 
		final double LIGHT_YEAR_MILES = 5.879e+12; 
		
		System.out.println(counter); 
		System.out.println(price); 
		System.out.println(interestRate); 
		System.out.println(numberOfBytes); 
		System.out.println(population); 
		System.out.println(distance); 
		System.out.println(letter); 
		System.out.println(valid); 
		System.out.println(x); 
		System.out.println(y); 
		System.out.println(DAYS_IN_NOVEMBER); 
		System.out.println(SALES_TAX); 
		System.out.println(LIGHT_YEAR_MILES);
	}
}