"Possible loss of precision" when trying to compile, please help! :(
<p>So here's the .java file I created, demonstrating different methods:</p>

<pre><code>class DataWork {

{
int hours = 24;
int week = 7;
int weekhours = week * hours;
System.out.println("the number of hours in a day is " + hours);
System.out.println("the number of hours in a week is " + weekhours);
// Use of INTEGER variable "int" to declare "hours" equals 24, "the number of hours in a day is 24" and 

"the number of hours in a week is 168"

char ch1 = 65;
char ch2 = 88;
char ch3 = 'E';

System.out.print("ch1 and ch2 and ch3 ");
System.out.print("ch3 and ch2 and ch3 ");
// Use of CHAR variable to display the words "AXE" and "EXE"  

float fee = 1.50f;
int two = 2;
int twosodas = fee * two; 
System.out.println ("The price of a soda is " + fee);
System.out.println ("The price of two sodas is " + twosodas);
// Should display "The price of a soda is 1.50"

boolean b1 = true;
boolean b2 = false;
boolean b3 = (14 &lt; 8)? true:false;


System.out.println("Value of boolean variable b1 is " + b1);
System.out.println("Value of boolean variable b2 is " + b2);
System.out.println("Value of boolean variable b3 is " + b3);
//Output should return; Value of boolean variable b1 is :true; Value of boolean variable b2 is :false; 

Value of boolean variable b3 is :false


}

}
</code></pre>

<p>When I go to compile, I get this error message:</p>

<pre><code>c:\myjava&gt;javac DataWork.java
DataWork.java:29: error: possible loss of precision
byte twosodas = fee * two;
                    ^
  required: byte
  found:    float
1 error
</code></pre>

<p>I've tried researching the net and can't find the answer. And my professor has nothing else for me other than "search the net for the answer." Please, someone help? :(</p>
