m a bit confused.sometimes i declare variables inside main method sometimes not.same with method...where to declare variables n methods.any rule??