Hello I am brand new to Java having only programed in Python before. I am trying to write a Java program that displays the result of(1.3x2.4)-(2.6x4)/(45.5-6.7).
What I have tried...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package assignment1.pkg3b; /** * * @author Pavilion */ public class Assignment13b { /** * @param args the command line arguments */ public static void main(String[] args) { sum = (1.3*2.4)-(2.6*4)/(45.5-6.7); } }
The error returned says- create filed "sum" in assignment.pkb3b.Assignment13b, creat parameter "sum", create local variable "sum".
Thank you in advance as I same I am brand new to this language.