I want to pass URL string from main activity to second activity and load the URL in second activity.... but when I click the go button at main activity it goes to second activity but it shows nothing but blank.

here is my code ..

```
public class MainActivity extends AppCompatActivity {

EditText editText;
Button go;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

editText=findViewById(R.id.urltext);
go=findViewById(R.id.button6);

final String link=editText.getText().toString();

go.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View view) {
        Intent intent = new Intent(getApplicationContext(),Webview.class);
        intent.putExtra("link",link);
        startActivity(intent);

    }
});

}

}

```

Second Activity:

```
 public class Webview extends AppCompatActivity {

 @Override
 protected void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
     setContentView(R.layout.activity_webview);

String one = getIntent().getExtras().getString("link");
String http="https://";
String url=http+one;

WebView webView = (WebView)findViewById(R.id.webview);
webView.getSettings().setJavaScriptEnabled(true);
webView.loadUrl(url);
}
}

```