ScopeRuleA - + " " +...

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

View Full Document Right Arrow Icon
< //import java.io.*; / public class ScopeRuleA { static int x; static double y; public static void main (String[] args) { int a = 10; int b = 12; int y = 13; x = 14; System.out.println(a + " " + b + " " + " " + x + " " + y); funcOne(a, b); funcTwo(45.67, 10); test(); } public static void funcOne(int u, int v) { int a; a = u + v; y = 30; w = 780; System.out.println("funcOne: " + a + " " + u
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: + &quot; &quot; + &quot; &quot; + v + &quot; &quot; + w); } static int w; public static void funcTwo(double z, int funcOne) { funcOne = (int) z; System.out.println(&quot;funcTwo: &quot; + funcOne + &quot; &quot; + z); funcOne(5, 6); } public static void test() { int x = 10; int y = 90; x = x + 2; y = y + 1; System.out.println(&quot;test: &quot; + x + &quot; &quot; + y); } }...
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