Docsity

Parameters, Lecture Notes - Computer Science, Study notes of Introduction to Computers

Partial preview of the text

Download Parameters, Lecture Notes - Computer Science and more Study notes Introduction to Computers in PDF only on Docsity!

LESSON: Parameters public static void movel0() { int n; n = 10; while (n > 0) { Robot .move(); n=n-1; } } Now suppose I also want a method that moves 15 squares forward... lof 12