hello everyone: i have a problem.we knew map() has it's own parameter such as map(Object key, Text value, Context context). the following is my structure.
public class aaa{ public static class bbb { public void map() { i want use the variable number here; for example; if(number==0) {print xxxxxx} } } public static void main() { we receive a number from the keyboard,for example; Scanner input = new Scanner(System.in); number = input.nextInt(); } } so how can i do?grateful!