Can't get to run

All I need is a method that returns the int instead of void to get to run. There is an error under ALL of the .setSeeds. If I could correct this I could get it to run. Please help.

import java.util.Random;

import javax.swing.JOptionPane;

public class MilkDelivery {

public static void main(String[] args) {

int delivery1, delivery2, delivery3, delivery4, delivery5;

Random eagleID = new Random(900364417);

delivery1=eagleID.setSeed(900364417);

delivery2=eagleID.setSeed(900364417);

delivery3=eagleID.setSeed(900364417);

delivery4=eagleID.setSeed(900364417);

delivery5=eagleID.setSeed(900364417);

long currentTime = System.currentTimeMillis();

System.out.println("Delivery 1 took " + delivery1 + " minutes");

System.out.println("Delivery 2 took " + delivery2 + " minutes");

System.out.println("Delivery 3 took " + delivery3 + " minutes");

System.out.println("Delivery 4 took " + delivery4 + " minutes");

System.out.println("Delivery 5 took " + delivery5 + " minutes");

System.out.println("The system time is " + currentTime);

int total=delivery1+delivery2+delivery3+delivery4+delivery5;

JOptionPane.showMessageDialog(null, "The total time is " + total + " minutes");

}

}

[1309 byte] By [dukefan44a] at [2007-11-26 17:03:17]
# 1

Yet another double post.

What is your fucking problem pal? Are you too slow to realise that creating multiple posts asking the same thing pisses people off and you are less likely to get any help?

Go read the API. Go and read your textbook. Go and read your lecture notes.

floundera at 2007-7-8 23:31:03 > top of Java-index,Java Essentials,New To Java...
# 2
what are you trying to do?you cannot assign delivery1to eagleID.setSeed() because setSeed() doesnt return an int (it returns nothing).are you trying to say delivery1 = eagleID.nextInt()?
TimSparqa at 2007-7-8 23:31:03 > top of Java-index,Java Essentials,New To Java...
# 3
TimThis idiot has been told the same thing in the four other threads he has started.
floundera at 2007-7-8 23:31:03 > top of Java-index,Java Essentials,New To Java...