1. A showCharMethodWrite amethodnamed showChar. Themethod should accept twoarguments : areference toaStringobject and aninteger . Theintegerargument is acharacter position within theString , with the firstcharacter being at position 0. When themethod executes, it shoulddisplay thecharacter at thatcharacter position. Themethod does not return anything.Here is an example of a call to themethod :showChar(“New York”, 2);In this call, themethod will display thecharacter w because it is in position 2. Demonstratethemethod in a completeprogram .showChar(“New York”, 2);In this call, the method will display the character w because it is in position 2. Demonstratethe method in a complete program .