본문 바로가기

파게로그

검색하기
파게로그
프로필사진 파게

  • 전체 (348)
    • 콤퓨타 왕왕기초 (156)
      • PS (135)
      • OS (11)
      • DS (1)
      • DB (1)
      • Network (7)
      • Linux (0)
    • 콤퓨타 왕기초 (187)
      • C (11)
      • Java (12)
      • Kotlin (25)
      • JS (11)
      • Spring (32)
      • Spring Boot (12)
      • JSP (19)
      • Git (3)
      • Oracle DB (10)
      • SQLD/JDBC/Oracle DB (42)
      • JPA (8)
      • Gradle (0)
      • Junit (0)
      • Docker/Kubernetes (1)
      • Web (1)
    • 국어학 (4)
      • 국어물어방 (4)
    • 끄적끄적 (0)
Guestbook
Recent Posts
Recent Comments
Link
«   2025/09   »
일 월 화 수 목 금 토
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Kotlin readLine() (1)

파게로그

[Basic] Input and Output

Output ▪ print(): System.out.print() ▪ println(): System.out.println() ▪ print("$var"): short form of print("${var}") fun main(args: Array) { var score: Int = 80 print("score is $score") } Input Kotlin Playground에서는 readLine()이 콘솔에서 입력을 받지 않았는데, 다른 환경에서 시험하니 정상적으로 입력이 가능했다. 변수에 null이 저장되는 것으로 보아, 설명에 따르면 InputStream이 파일로 연결되어 있다든가 한 것 같다. 이건 차후에 해결해보아야겠다. !!는 unsafe nullable type(T?)을 non-nullab..

콤퓨타 왕기초/Kotlin 2021. 6. 7. 16:38
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바