Java: Remove brackets / leading slashes from String

My Android-app have always presented the DNS-Server(s) with brackets / leading slashes like: How can we get rid of these unnecessary characters ? String myIp2Dns1: Log: Solution: Manipulation of String myIp2Dns1: This command removes brackets / slashes / backslashes from the String. The output looks much better now:

Android: get values of the Temperature Sensor, show them on the display

Mainactivity.java: [code] public class MainActivity extends AppCompatActivity implements SensorEventListener { private SensorManager mSM; private Sensor mTemp; private TextView sensorTextView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); sensorTextView = findViewById(R.id.sensorTextview); mSM = (SensorManager) getSystemService(SENSOR_SERVICE); mTemp = mSM.getDefaultSensor(Sensor.TYPE_AMBIENT_TEMPERATURE); } @Override public void onSensorChanged(SensorEvent sensorEvent) { float tmpval = sensorEvent.values[0]; sensorTextView.setText("Temp :" + (tmpval) ); } @Override