Java Cómo hacer un número con dígitos

public class Main {
  public int number = 12; // 'int' is a number in Java. but without digits.
  public double digitNumber = 12.25; // 'double' is a number in Java, but with digits.
}
Bredo