ScopeRuleB - + z + " " + t + " " + rate...

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

View Full Document Right Arrow Icon
public class ScopeRuleB { static final double rate = 10.50; static int z; static double t; public static void main(String[] args) { int num = 13; double w = 4, z = 2.5; char ch = '&'; c System.out.println("Main: " + num + " " + w + " " + z + " " + ch + " " + rate + " " + t); one(num, ch); two(10, 20); } public static void one(int x, char y) { z = 10; t = 23.45; x = z; y = '@'; w = 12; System.out.println("FuncOne: " + x + " " + y + " "
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: + z + " " + t + " " + rate + " " + w); } public static int w; public static void two(int one, int z) { char ch = '*'; int a = 14; one = 5; z = 10; //Block three { int x = 12; System.out.println("Block Three: " + x + " " + a + " " + one + " " + z + " " + ch); }//end block three int x = 10; System.out.println("FuncTwo: " + x + " " + a + " " + one + " " + z + " " + ch); one(10,'A'); } }...
View Full Document

This note was uploaded on 06/17/2011 for the course COMP 2301 taught by Professor Staff during the Spring '10 term at Kennesaw.

Ask a homework question - tutors are online