일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 구포에서 자전거
- NetworkImageView
- 로드바이크
- 낙동강 종주
- 창원에서 부산
- android loadImage
- 구포에서 삼량진
- spring
- C언어
- elk stack
- workbench
- mysql
- laravel
- 삼량진 자전거
- 자전거
- 구조체
- c언어 구조체
- volley
- android ImageLoad
- 삼량진
- 자바
- image zoom
- 부산에서 창원 자전거
- ImageLoad
- android facebook
- 부산에서 창원
- 안드로이드 이미지 로드
- spring boot
- httpclient post
- android imageView zoom
- Today
- Total
은근한
배열의 길이를 알아보기 위해 length메소드 사용 Colored By Color Scripter™123456789101112131415161718192021import java.util.Scanner; public class ArrayLength { public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); int intArray[] = new int[5]; double sum = 0; for(int i =0;i
break와 continue는 보통 반복문에서 조건을 제어하기 위해 사용하는 명령입니다.break 같은 경우는 해당 조건이 충족되면 반복문을 빠져나오는 (종료하는) 명령이고continue 같은 경우는 해당 조건이 충족되면 해당 반복문을 다음으로 넘기는 명령입니다.예를 들면Colored By Color Scripter™1234567for(int i =0; i Colored By Color Scripter™1234567for(int i =0; i
배열을 이용하여 평균 계산 Colored By Color Scripter™123456789101112131415161718192021import java.util.Scanner; public class ArrayTest1 { public static void main(String[] args){ final int STUDENT = 5; //상수 선언 int total =0; Scanner scan = new Scanner(System.in); int[] score = new int[STUDENT]; //배열 생성 for(int i=0;i
for 문을 이용한 구구단 출력!! Colored By Color Scripter™12345678910111213public class sample { public static void main(String[] args) { // TODO Auto-generated method stub int i=1,j=1; for(i=1;i
for문 구조 for(초기문;조건식;증감식){작업문;} 실행 순서는 초기문 -> 조건식->작업문->증감식 ->조건식->작업문->증감식 이런식으로 반복이 된다. 초기문에는 초기화 값이 들어가며 조건식에는 논리값이 들어가게 된다. 증감식은 증가와 감소의 값이 들어가며 작업문에서는 우리가 쓰고자 하는 내용이 들어간다. For 문을 이용한 반복문 예시 1~10까지의 합한 값 Colored By Color Scripter™12345678910111213141516171819 public class ForSample { public static void main(String[] args){ int i,j; for(j=0,i=1;iColored By Color Scripter™1234567891011121314151..