일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- c언어 구조체
- 로드바이크
- 안드로이드 이미지 로드
- workbench
- mysql
- NetworkImageView
- image zoom
- android facebook
- laravel
- spring boot
- 부산에서 창원
- 창원에서 부산
- 낙동강 종주
- 구포에서 삼량진
- 삼량진 자전거
- spring
- 구조체
- 구포에서 자전거
- httpclient post
- 자바
- C언어
- android ImageLoad
- elk stack
- volley
- 부산에서 창원 자전거
- 삼량진
- ImageLoad
- android imageView zoom
- 자전거
- android loadImage
- Today
- Total
은근한
메소드의 개요 voidclose () 현재의 스캐너를 클로즈 합니다. Patterndelimiter () 이 Scanner 가 단락지어 문자의 매칭에 현재 사용하고 있는 Pattern 를 돌려줍니다. StringfindInLine (Pattern pattern) 단락 문자를 무시해, 다음에 나타나는 지정된 패턴의 검색을 시도합니다. StringfindInLine (String pattern) 단락 문자를 무시해, 다음에 나타나는, 지정된 캐릭터 라인으로부터 구축된 패턴의 검색을 시도합니다. StringfindWithinHorizon (Pattern pattern, int horizon) 다음에 나타나는 지정된 패턴의 검색을 시도합니다. StringfindWithinHorizon (String patter..
Scanner method API voidclose()Closes this scanner.Patterndelimiter()Returns the Pattern this Scanner is currently using to match delimiters.StringfindInLine(Pattern pattern)Attempts to find the next occurrence of the specified pattern ignoring delimiters.StringfindInLine(String pattern)Attempts to find the next occurrence of a pattern constructed from the specified string, ignoring delimiters.St..
IF문 사용하기 Colored By Color Scripter™12345678910111213import java.util.Scanner; public class SuccessOrFail { public static void main(String[] args){ Scanner in = new Scanner(System.in); System.out.print("점수를 입력하시오:"); int score = in.nextInt(); if(score >= 80) System.out.println("축하합니다. 합격입니다."); }} IF-ELSE 사용하기 Colored By Color Scripter™123456789101112131415import java.util.Scanner; public class S..
키보드로부터 문자 입력, 화면 출력Colored By Color Scripter™12345678910111213141516171819import java.io.*;public class InputExample { public static void main(String[] args) { InputStreamReader rd = new InputStreamReader(System.in); try{ while(true){ int a = rd.read(); if(a == -1) // ctrl-z 가 입력되면 read()는 -1을 리턴 break; System.out.println((char)a); // 입력된 문자 출력(강제 형변환) } } catch(IOException e){ System.out.printl..
원의 면적 구하기 예시 Colored By Color Scripter™1234567891011121314151617public class CircleArea { public static void main(String[] args) { // TODO Auto-generated method stub final double PI = 3.14; //원주율을 상수로 선언 double radius = 10; //원의 반지름 double circleArea = 0; // 원의 면적 circleArea = radius*radius*PI; // 원의 면적을 화면에 출력 System.out.print("원의 면적 = "); System.out.println(circleArea); }} 자동 타입 변환, 강제 타입 변환 C..