Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  Grades
Language: JAVA
Code:
import java.util.Scanner;
import java.util.ArrayList;
public class Grades {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);        
ArrayList<Double> grades = new ArrayList<Double>();
System.out.println("Enter next grade, when done add 0: ");
while( i !=0){
grades.add(sc.nextInt());
System.out.println("Enter next grade, when done add 0: ");}
System.out.println(grades);
}
}
Comments: