2000Fall

Green greenvalue acolorblue bluevalue driver code

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: & 5 78, $%&  // driver code int r=-1, g=-1, b=-1; pen.getRGBColor(r,g,b); System.out.println(“red = “ + r + ”, green = “ + g + “, blue = “ + b); class Pen{ int redValue, greenValue, blueValue; ... void getRGBColor(int red, int green, int blue){ red = redValue; green = greenValue; blue = blueValue; } } i) -$0&&$5System.out.println %9  /% :' , :' &:'     2'&$%$5 &&,$$,2;<*&  $   $%5 =& , =& &=&57 8        $ ,$ $ System.out.println %">+%%$$5 5$%$%%5 "  /%  class RGBColor { public int red, green, blue; } class Pen { int redValue, greenValue, blueValue; void getRGBColor(...
View Full Document

This document was uploaded on 03/11/2014.

Ask a homework question - tutors are online