20 lines
450 B
Java
20 lines
450 B
Java
/*
|
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
|
*/
|
|
package com.mycompany.mavenproject1;
|
|
|
|
/**
|
|
*
|
|
* @author caleb
|
|
*/
|
|
public class PrePostIncrement {
|
|
public static void main(String[] args)
|
|
{
|
|
int j = 2;
|
|
int i = j++ + j * j + 1;
|
|
|
|
System.out.println("i is: " + i);
|
|
}
|
|
}
|