TIL

20231103 TIL

김빵그 2023. 11. 3. 18:35

Today 요약 

[] 프로그래머스 코딩테스트 2문제

[] dart 기초 강의 14개


배운 점

1. dart

1-1 StringBuffer class

  • 문자열을 효율적으로 연결하기 위한 클래스이다
  • 메소드를 사용해 문자열을 점진적으로 빌드 할 수 있음
final buffer = StringBuffer('DART');
print(buffer.length); // 4
 

StringBuffer class - dart:core library - Dart API

A class for concatenating strings efficiently. Allows for the incremental building of a string using write*() methods. The strings are concatenated to a single string only when toString is called. Example: final buffer = StringBuffer('DART'); print(buffer.

api.dart.dev

1-2 dart 줄바꿈 

\n