Geometric number sequence

A geometric sequence is characterized by the fact that the following elements are created from the preceding element by multiplication with the constant factor q. Each term in the sequence (except the first) is the geometric mean of its two neighboring terms.

import java.util.Scanner;

public class GeometricSequenceExample {
	static void geometricSequence(int a, int ratio, int n) {
		int current;
		for (int i = 0; i < n; i++) {
			current = a * (int) Math.pow(ratio, i);
			System.out.print(current + " ");
		}
	}

	public static void main(String[] args) {
		Scanner read = new Scanner(System.in);
		int a, ratio, n;

		System.out.print("Please enter starting value: ");
		a = read.nextInt();
		System.out.print("Please enter ratio value: ");
		ratio = read.nextInt();
		System.out.print("How many values should be entered: ");
		n = read.nextInt();

		geometricSequence(a, ratio, n);
	}
}
Output
Please enter starting value: 2
Please enter ratio value: 2
How many values should be entered: 8
2 4 8 16 32 64 128 256