I just started learning the programming language like java and android I and creating status and quotes application where I have 10 WhatsApp buttons and 10 textviews. I want when WhatsApp button 1 is clicked then textview 1 will be shared on WhatsApp and same for the rest buttons but for this I have to create 10 methods for these 10 buttons but this is very bad coding standard, I also tried if else condition in this method but it also not worked, so please suggest me a better idea so that I can implement that in my method.
Thank you