I am using BlueJ as my IDE for this school project...
This is my code:
import java.util.Scanner;
public class Calculator{
public static void main(String[]args){
System.out.println("Enter your first number here:");
Scanner input = new Scanner (System.in);
double number1 = input.nextDouble();
System.out.println(""); //Skipping a line for a better organised presentation
System.out.println("Enter the second number here");
double number2 = input.nextDouble();
System.out.println("");
double answer = number1 + number2;
//code for highlighting the answer
System.out.println("The answer is:"+answer);
}
}
I was working on this Calculator class then I thought about highlighting the answer to that it stands out more than the other numbers...
I've tried experimenting with JFrame before but it didn't quite work out for me...
Any suggestions? Thanks!