일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Numpy
- pandas
- mean
- SciPy
- CNN
- index
- GT-S80
- Python
- keras
- DFS
- 알고리즘
- 삼성소프트웨어멤버십
- ipad
- E-P1
- GitHub
- dataframe
- Splunk
- pip
- javascript
- SPL
- install
- Button
- LSTM
- Lotto
- mariadb
- imread
- synology
- Series
- pycharm
- RNN
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; } }