일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- imread
- Numpy
- pip
- Lotto
- CNN
- ipad
- mean
- pandas
- Splunk
- RNN
- javascript
- pycharm
- synology
- Button
- GitHub
- mariadb
- SciPy
- E-P1
- DFS
- Python
- SPL
- dataframe
- GT-S80
- 삼성소프트웨어멤버십
- index
- Series
- LSTM
- keras
- 알고리즘
- install
Archives
- Today
- Total
잠토의 잠망경
Ex5-test 본문
import java.util.*; public class ex5 { /** * @param args */ public static int[] a; public static void main(String[] args) { // TODO Auto-generated method stub Random rnd=new Random(System.currentTimeMillis()); a=new int[10]; for(int i=0;i<10;i++) { a[i]=rnd.nextInt(200); System.out.println("a["+i+"]"+a[i]); } System.out.println("합계"+sum()); } public static int sum() { int ret=0; for(int i=0;i<10;i++) { ret+=a[i]; } return ret; } }