Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

LocalInitializerVariableNotBlank.java 368B

il y a 21 ans
123456789101112131415161718
  1. import java.awt.Color;
  2. public class LocalInitializerVariableNotBlank {
  3. static Color[] greys;
  4. static {
  5. greys=new Color[16];
  6. int gr;
  7. for(int i=0;i<greys.length;i++) {
  8. gr=(int)(170.0*(1.0-Math.pow(i/15.0,2.3)));
  9. greys[i]=new Color(gr,gr,gr);
  10. }
  11. }
  12. public static void main(String[] args) {
  13. }
  14. }