setting the title of tool bar android studio code example
Example 1: android studio change title bar text
getSupportActionBar().setTitle("Hello world App");
Example 2: android studio change menu title
//android studio inside activity java
getSupportActionBar().setTitle("Your Title");