[Processing]About String

String(문자열)
A string is a sequence of characters. 
String은 Object이다.
  • strA==strB로 비교하지 않고, strA.equal(strB)와 같이 비교한다.

imuttable Objact (불변객체) 한번 저장하면 값을 바꿀 수 없다.
  • 참조 형태로 값을 저장함.

concatenation기능 제공.
  • '+'기호를 이용해서 문자열을 합칠 수 있다.


Displaying String on the screen
using an object of type Pfont

1. Declare PFont variable 
2. Create the font by referencing the font name and the function createFont().
3. Specify the font using textFont().
4. Specify a color using fill().
5. Call the text() function to display text.



댓글