new to java, can't get this shit to work.
/* CS7 - Summer 2003
* Ben Bucher
* This program generates hailstone sequences, and determines how
* many elements were in the sequence as well as the largest element
* seen. Sequences are formed by repeatedly dividing numbers by 2
* when even, and tripling and adding 1 when odd.
public class hail
public static void main(String args)
int startval; //variable assignments
System.out.println("Welcome to the Hailstone generator.
for(startval=1; startval<=6; startval++)
current = startval*13;
System.out.println("Running Hailstone series for "+ current);
count=1; // initializes count to one
max=current; //max may be first number
current = 3 * current + 1;
current = current / 2; // if even, divide by 2
if (current > max)
max = current;
count = count + 1;
System.out.println("You had "+ count+ " elements in that sequence."); //pr$
System.out.println("The maximum was "+ max);