@Test public void testShowRGB() throws Exception { colorUtil.showRGB(); }
public void showRGB() { Class colorClazz = null; try { colorClazz = Class.forName(colorClass); } catch (ClassNotFoundException e) { e.printStackTrace(); } Color color = null; try { color = (Color) colorClazz.newInstance(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } color.showRGB(); }
ColorUtil { public void showRGB() { Class colorClazz = null; try { colorClazz = Class.forName(colorClass); } catch (ClassNotFoundException e) { e.printStackTrace(); } Color color = null; try { color = (Color) colorClazz.newInstance(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } color.showRGB(); } }
ColorUtil { public void showRGB() { Class colorClazz = null; try { colorClazz = Class.forName(colorClass); } catch (ClassNotFoundException e) { e.printStackTrace(); } Color color = null; try { color = (Color) colorClazz.newInstance(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } color.showRGB(); } ColorUtil(String colorClass); }
ColorUtil { public void showRGB() { Class colorClazz = null; try { colorClazz = Class.forName(colorClass); } catch (ClassNotFoundException e) { e.printStackTrace(); } Color color = null; try { color = (Color) colorClazz.newInstance(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } color.showRGB(); } ColorUtil(String colorClass); void showRGB(); }
ColorUtil { public void showRGB() { Class colorClazz = null; try { colorClazz = Class.forName(colorClass); } catch (ClassNotFoundException e) { e.printStackTrace(); } Color color = null; try { color = (Color) colorClazz.newInstance(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } color.showRGB(); } ColorUtil(String colorClass); void showRGB();  }