This file contains 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
package class3; | |
//class definition | |
public class Date { | |
//member variables | |
String month; | |
int day; | |
int year; | |
This file contains 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 HelloWorld | |
{ | |
public static void main(String[] args) | |
{ | |
int kevin = 2348; | |
double numberToIncrement = -45.3; | |
This file contains 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 Salary | |
{ | |
public static void main(String[] args) | |
{ | |
final double PAY_RATE = 15; //pay rate | |
double pay = 0; // uninitialized variable | |
int hoursWorked = 40; |