import java.awt.*;
import java.util.*;

// Assignment 1, CSci 1211
// Created by Elena Machkasova, 1/16/04
// Modified by ...

// this is a Java application which performs addition
// of two random numbers

public class Add  {

    public static void main(String [] args) {
	// create a random number generator
	Random r = new Random();

	//generate the number of apples picked by Jack (from 0 to 9)
	int jack = r.nextInt(10);
	//print out how many apples Jack picked:
	System.out.println("Jack picked " + jack + " apples");

	// fill in your code here:

The views and opinions expressed in this page are strictly those of the page author. The contents of this page have not been reviewed or approved by the University of Minnesota.