超初心者です。よろしくお願いします。
(Ver) J2SE JDK5.0 Update 7

(Instructions)

NewYorkLottery is your chance to win millions of dollars!
All you have to do is pick five different numbers from 1 to 50
and one MEGA number from 1 to 25 and match them to the numbers drawn.
Write a NewYorkLottery Simulator Program in modular form.
This program should utilize at least one other method outside
of main to generate these numbers.
Remember the five numbers from 1 to 50 must be different!
The MEGA number can be the same as one of the five numbers.

(Example Output)

NewYorkLottery Simulator

This Week’s Winning Numbers Are:

153972348MEGA number 21