Last active
March 18, 2018 04:40
-
-
Save VintageAppMaker/f97c7b3a080a8d68c1219d6e7ca972fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun 나의업무인가(업무요청 : String) : Boolean { | |
val 나의업무 = arrayListOf<String>("개발", "기술검토", "솔루션설계") | |
if( 업무요청 in 나의업무 ){ | |
return true | |
} | |
return false | |
} | |
fun main(args: Array<String>) { | |
나의업무인가("기획회의").let{ | |
답변 -> println ("기획회의는 ${답변}") | |
} | |
나의업무인가("기술지원(응대)").let{ | |
답변 -> println ("기술지원(응대) ${답변}") | |
} | |
나의업무인가("제품 시장성").let{ | |
답변 -> println ("제품 시장성 ${답변}") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
결과화면
![image](https://user-images.githubusercontent.com/31234716/37562624-dfb7fd5a-2ab0-11e8-9d32-4a03fabc2896.png)