String []

설명

String의 개별 문자에 접근하는 것을 허용.

문법

char thisChar = myString1[n]

매개변수

  • char thisChar - 문자 변수
  • myString1 - String 변수
  • int n - 숫자 변수

반환값

  • String의 n번째 char. Same as charAt().
  • 스트링의 n번째 문자. charAt()와 같음.

※ 주의 및 경고:

If the string is modified, it is highly recommended using String.reserve() to prevent the memory fragmentation issue

ARDUINO BUY RECOMMENDATION

Arduino UNO R3
Arduino Starter Kit
Please note: These are affiliate links. If you buy the components through these links, We may get a commission at no extra cost to you. We appreciate it.

※ OUR MESSAGES

  • We are AVAILABLE for HIRE. See how to hire us to build your project
  • Any suggestion, correction, and translation? please email us at ArduinoGetStarted@gmail.com, We appreciate it
  • We mainly keep improving the references in English. See English version of this page for the latest update.