Java언어로 많이 쓰이는 String에 대한 함수 split() replace()에 대해서 알아보자! 따로 설명할 필요 없이 사용예시를 보면 이해가 될 것이다. split() 함수 String colorPower = "빨강:주황:노랑:초록"; String[] colorPowers = colorPower.split(":");위와 같은 경우에서 colorPowers[0] == "빨강" colorPowers[1] == "주황" colorPowers[2] == "노랑" colorPowers[3] == "초록" 와 같은 결과를 얻을 수 있다. 어떠한 문자열에 대해서 ":" 이 친구로 'split'한 다음 스트링 배열에 넣게 된다. replace() 함수 String colorPower = "빨강:주황:노랑:초록..
어플 개발 중 현재 시간을 필요로 하는 경우가 꽤 많이 있다. 안드로이드에서는 이를 기본 라이브러리로 제공한다. (사실 자바 라이브러리) 1. 현재 시간을 가져온다. long now = System.currentMills(); 2. Date형식으로 고친다. Date mDate = new Date(now); 3. 날짜, 시간을 가져오고 싶은 형태로 가져올 수 있다. SimpleDateFormat simpleDate = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); String getTime = simpleDate.format(mDate); 위와 같이 작성할 경우, String 형의 getTime 변수에 "2018-07-06 01:42:00" 이런식으로 날짜를 가져올 수 있..
- Total
- Today
- Yesterday
- 2-stage Detector
- MySQL
- GaussianSplatting
- git
- ubuntu
- 3Dvision
- Macbook
- SSH
- Machine Learning
- 우분투
- Deep Learning
- numpy
- MacOS
- vscode
- pytorch
- Android
- error
- Python
- CUDA
- Computer Vision
- nginx
- Object Detection
- nvidia
- nerf
- Docker
- Novel View Synthesis
- Anaconda
- java
- GPU
- Neural Radiance Field
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |