What Method Would Be Useful In Programing Slot Machine

Nov 19, 2014

Here are the errors I am getting:
SlotMachine.java:21: error: illegal start of expression
public static void getNums(int [] slots)
^
SlotMachine.java:21: error: illegal start of expression
public static void getNums(int [] slots)
[code]....
i keep fixing small things and cannot get it to compile. Below is the original code,
import java.util.Scanner;
import java.util.Random;
public class SlotMachine
{
public static void main (String args[]) {
int userMoney;
Scanner input = new Scanner(System.in);
System.out.print('How much money to start with?
[code]....

What Method Would Be Useful In Programming Slot Machines

What Method Would Be Useful In Programing Slot Machine

At the Caesars Boardwalk Regency in Atlantic City, a group of cheaters surrounded a slot machine. Each of them had a job. One of the cheaters dubbed the mechanic, pried open the front and inserted 20-inch piano wires into the slot machine’s whirring guts. The group used the piano wires to jam the clock that timed each wheel’s rotation. The Zig Zag Method. This bizarre slot machine betting system relies more on the player’s powers of observation than anything else. To initiate the zig zag method, you’ll need to study several of the slot machines around you. Your objective is to find machines with certain reel patterns, especially those with the same symbols on all reels.