![]() | ![]() | ![]() | 4.3 Week 3 - Strings, Comments, & Statements |
Strings, Comments, & StatementsString and overloaded operator + and +=
/* comment /*// comment
javadoc
javadoc program
javadoc comments /**
javadoc tags
@see
@author
@version
@pram
@return
@exception
@deprecated
{ and }
if( conditional ), requires boolean
while( conditional ) statement;
do statement
; while( conditional
);
for( initialization ; conditional
; incrementer ) statement ;
switch and case
break and continue
try block
catch( exception ) block
finally block
for loop
from -3 to +3 and prints out 10 divided by the loop counter.
Catch the ArithmeticException and print out
"Divide by zero"
drawRect(int x, int y, int width, int height) java.awt.Graphics
static final int width = 600;for( i=0; i<msg.length; i++)border, banner_height,
y, width, height, max_string_width, &
char_height
Turn in a copy of your program and an show me a sample run.
![]() | ![]() | ![]() | 4.3 Week 3 - Strings, Comments, & Statements |