< prev index next >

src/demo/share/jfc/J2Ddemo/java2d/demos/Arcs_Curves/Ellipses.java

Print this page

        

@@ -1,8 +1,8 @@
 /*
  *
- * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
  *

@@ -42,16 +42,16 @@
  * Ellipse2D 25 animated expanding ellipses.
  */
 @SuppressWarnings("serial")
 public final class Ellipses extends AnimatingSurface {
 
-    private static Color colors[] = {
+    private static Color[] colors = {
         BLUE, CYAN, GREEN, MAGENTA, ORANGE, PINK, RED,
         YELLOW, LIGHT_GRAY, WHITE };
     private Ellipse2D.Float[] ellipses;
-    private double esize[];
-    private float estroke[];
+    private double[] esize;
+    private float[] estroke;
     private double maxSize;
 
     public Ellipses() {
         setBackground(BLACK);
         ellipses = new Ellipse2D.Float[25];

@@ -100,9 +100,9 @@
             g2.setStroke(new BasicStroke(estroke[i]));
             g2.draw(ellipses[i]);
         }
     }
 
-    public static void main(String argv[]) {
+    public static void main(String[] argv) {
         createDemoFrame(new Ellipses());
     }
 }
< prev index next >