x

Choose Country Code

x

Direction

x

Ask a Question

  • Ask a Question
  • Scan a Question
  • Post MCQ
  • Note: File extension must be of jpg, jpeg, png, bmp format and file size must not exceed 5 MB
x

Ask a Question

x

x
x
x
Hire a Tutor

Answers and Solutions

What's Your Question?
Answer

public class RemoveChar {       

public static void main(String[] args) {                 

    String str = "India is my country";                 

    System.out.println(charRemoveAt(str, 7));              

}              

 

public static String charRemoveAt(String str, int p) {                 

      return str.substring(0, p) + str.substring(p + 1);              

  }  

}  

Post Answer and Earn Credit Points

Get 5 credit points for each correct answer. The best one gets 25 in all.

Post Answer