This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DateApp{ | |
//Instance variables | |
public int day; | |
public int month; | |
public int year; | |
//Constructors | |
// 1st. Constructor without parameters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class carClass{ | |
public class Car{ | |
private String brand; | |
private double pricePerDay; | |
private int availablity; | |
public Car(String brand, double pricePerDay int availablity){ | |
this.availablity = availablity; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
import java.util.*; | |
import java.io.*; | |
public class StudentAppBinary { | |
public static void main(String [] args) throws IOException { | |
Scanner input = new Scanner(System.in); | |
OlderNewer