18 lines
410 B
Java
18 lines
410 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 NegativeVariableTest {
|
|
public static void main(String[] args)
|
|
{
|
|
int x = 5;
|
|
System.out.println(-x);
|
|
}
|
|
}
|