public void updateDisplay(View v){
s1=(String) ((Button)v).getTag();
ss.add(s1);
System.out.println("nos are**********"+ss);
}
set some tag to the corresponding buttons
solved how to know which button is clicked ” first”” [closed]