You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* description: This is my first program for AP Compsci!
*/
public class FirstProgram
{
public static void main(String[] args){
// creates the 5 variables
int num = 99;
double price = 7.99;
String fruit = "peach";
boolean flag = true;
final double GRAVITY = 9.81;
//prints out the variables
System.out.println("The number is "+ num + ".\nThe price is $" + price + ".\nThe fruit is " + fruit + ".\nIs is yummy? " + flag + ".\nGravity is " + GRAVITY + " m/s^2.");