vendredi 20 février 2015

Illegal Start of Expression. Need Assist

I am a noob at using java...so this question may suggest such. I am trying to a mathematical program to calculate pound/ft^2 given that I have the radius of a piston and the psi used. my program is as follows:



int Psi,radius,any;
final double valuePi;
float outA;
String outLbft;
radius = 0; //initialized to 0. dependent on input
Psi = 0; // " " " " " "
valuePi = 3.14
outA = (float) valuePi * radius*;
outLbft = outA * Psi;


This shows my attempt at the declaring that the output lb/ft (outLbft) is equal to (valuePi*radius^2) * psi. I was able to declare that outA was equal to 3.14*radius*...but when trying to declare my outLbft I received an, 'Illegal Start of Expression' error on that line and the line before (outA = ...). How can I correct this issue?


Aucun commentaire:

Enregistrer un commentaire