title: I am creating a simple reverse string android application, please confirm me whether the way I'm proceeding is right or not
body: <pre><code>package com.example.desktop.mirror;
  
  import android.content.Intent;
  import android.provider.Settings;
  import android.support.v7.app.ActionBarActivity;
  import android.os.Bundle;
  import android.view.Menu;
  import android.view.View;
  import android.view.MenuItem;
  import android.view.MenuItem;
  import android.widget.EditText;
  import java.util.Scanner;
  
  
  public class MainActivity extends ActionBarActivity {
  public EditText a;
  public String entereda;
  public EditText b;
  public String enteredb;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  }
  
  public void OnClick(View v){
      a = (EditText) findViewById(R.id.first_text);
      b = (EditText) findViewById(R.id.second_text);
      if(boolean entereda){
          Intent i = new (this, reverseactivity.class);
          startActivity(i);
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
      getMenuInflater().inflate(R.menu.menu_main, menu);
      return true;
  }
  
  @Override
  public boolean onOptionsItemSelected(MenuItem menu) {
      // Handle action bar item clicks here. The action bar will
      // automatically handle clicks on the Home/Up button, so long
      // as you specify a parent activity in AndroidManifest.xml.
      int id = menu.getItemId();
      //noinspection SimplifiableIfStatement
      if (id == R.id.action_settings) {
          return true;
      }
      return super.onOptionsItemSelected(menu);
  }
  </code></pre>
  
  <p>I'm new to both Java and Android, so I can not be more specific.
  My question might be a silly one, since it's a simple one to be implemented in Java, but coming to implementation on Android, i'm struggling a lot with the code.</p>