Error in code, cannot figure it out. - class, interface, or enum expected
807580Feb 2 2010 — edited Feb 2 2010IT is telling me i have an error in line 22 and it says class, interface, or enum expected
import java.util.Scanner
/**
* @(#)Blahh.java
*
* Blahh application
*
* @author
* @version 1.00 2010/1/29
*/
public class Blahh {
public static void main(String[] args) {
// TODO, add your application code
System.out.println("Hello World!");
}
}
// PURPOSE: An exercise in tracing a program and understanding
// assignment statements and expressions.
import java.util.Scanner
Public class Trace
{
public static void main (String[] args)
{
int one, two, three;
double what;
Scanner scan = new Scanner(System.in);
System.out.print ("Enter two integers: ");
one = scan.nextInt();
two = scan.nextInt();
system.out.print("Enter a floating point number: ");
what = scan.nextDouble();
three = 4 * one + 5 * two;
two = 2 * one;
system.out.println ("one " + two + ":" + three);
one = 46 / 5 * 2 + 19 % 4;
three = one + two;
what = (what + 2.5) / 2;
System.out.println (what + " is what!");
}}