{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Variables - a System.out.println(a/185...

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

View Full Document Right Arrow Icon
public class Variables { private static int a = 5; private static int b = 10; p public static void funMethod() { int a = 50; int b = 25; i a = a + b;//75 b = Variables.a + b;//30 Variables.b = a + Variables.b;//85 b = b + Variables.a * b;//180 a = Variables.a + b;//185
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: a System.out.println(a);//185 System.out.println(b);//180 System.out.println(Variables.a);//5 System.out.println(Variables.b);//85 } public static void main(String args) { funMethod(); } }...
View Full Document

{[ snackBarMessage ]}