Created
October 22, 2015 13:35
-
-
Save vbalien/5ef0f9fd2827ef369256 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
Scanner scan = new Scanner(System.in); | |
// Desktop 지원 여부 체크 | |
if(Desktop.isDesktopSupported()) | |
{ | |
Desktop.getDesktop().browse(new URI( | |
"http://search.naver.com/search.naver?where=nexearch&query=" + | |
URLEncoder.encode(scan.next(), "UTF-8") + // URL 인코딩 | |
"&sm=top_hty&fbm=2&ie=utf8")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment