Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

char[] to String

Empfohlene Antworten

Hi

also normalerweise kannst du ein string genauso ansprechen wie ein "Array of Char", da ein String nichts anderes als ein "Array of Char" ist (kann natürlich sein, dass das in Java nicht funzt, glaub ich aber net)

->

eine For-Schleife in der du jeweils string = char ausführst (sollte funktionieren)

mFg Sillie

Servus,

wie wärs mit String bla = new String(namedeschararrays);

Peter

String s = String.valueOf(chararray)

oder String s = new String(chararry)

sollte gehen

hth...

  • Autor

Danke, hatte es grad eben selbst gefunden !!!!!

hab dauernd nach sachen gesucht wie Insert oder SetAt wie in C ....

Musste erstma auf die Idee kommen nach nem passenden Konstruktor zu gucken,

Danke trotzdem !

Gruß Scratch

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.