ScopeThing

ScopeThing - System.out.println("crunch:...

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

View Full Document Right Arrow Icon
public class ScopeThing { p int sneezy = 5; public void munch () { double grumpy = 12.5; int sneezy = 8; System.out.println("munch: "+sneezy); System.out.println("munch: "+grumpy); crunch(grumpy); System.out.println("munch, grumpy: "+grumpy); } public void crunch(double parm) {
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: System.out.println("crunch: "+sneezy); System.out.println("crunch, parm: "+parm); parm = 19.9; System.out.println("crunch, parm: "+parm); //System.out.println("crunch: "+grumpy);// not visible } }...
View Full Document

This note was uploaded on 11/30/2009 for the course COMP 110 taught by Professor Stotts during the Spring '08 term at UNC.

Ask a homework question - tutors are online