//7. Write a class called RandomNumbers to do the following:
//a. Write a method called generate to randomly generate a 1000 numbers in the range [50..100]. Find and return the sum of these numbers.
//b. Write a method called output to receive the sum. Output the sum
public class RandomNumbers
public static void main (Stringa)
// method to generate a 1000 numbers in the range [50..100]and sum up those numbers
public double random() <<<< that's where I get an error but I "illegal start of expression"
public void output(int sum)
System.out.print("The sum is :"+sum);
can you pick up an error above?? please help