일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 헬레나크로닌
- UPSERT
- 공작과개미
- 비밀번호변경
- linux명령어
- git 업로드
- 지방사람이보는서울사람
- 훌륭한모국어
- 중용
- 옹졸함
- 다산의마지막습관
- todolist
- Face Detection
- Python
- db
- 네인생우습지않다
- 나만의주식5법칙
- php
- 꼭읽어봐야할책
- Git
- 일일투자금액
- OpenCV
- 독후감
- 클라우드
- MySQL
- delete
- 성선택
- Django
- 서울로가자
- ChatGPT
- Today
- Total
목록RPA (29)
Terry Very Good
가끔 \n가 안먹히는 언어나 환경들이 있는데, 이럴 때는 environment.NewLine을 써보자 String 2rowSTR = "첫번째 줄입니다."+ Environment.NewLine + "두번째 줄입니다." print 2rowSTR; ----결과----------------- 첫번째 줄입니다. 두번째 줄입니다.
1. intellij > project struct > Artifacts > + > jar > from modules with dependencies > Main Class는 main으로 설정 > ok > ok 2. build > build artifacts > Clean 한 번 하고 Build 3. 프로젝트 경로 내 out/artifacts 에 jar 파일이 생성되어있고, cmd에서 java -jar Building_ID_Checker.jar "인수1" "인수2"... 명령어 입력해주면, 동작 ※(주의1) 만약 "'java'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다."라는 메시지가 출력될 경우 intellij > project struct > SDKs > 의 ..
JOptionPane aa=new JOptionPane(); String numbere=aa.showInputDialog("추출을 원하는 날짜를 입력하세요(입력가능한 단어: 오늘 or 어제 )"); int number = 0; if (numbere=="오늘"){number=1;} if (numbere=="어제"){number=24;} System.out.println(numbere);
import java.io.IOException; import java.io.FileOutputStream; import java.io.OutputStreamWriter; import com.opencsv.CSVWriter; try { // 저장할 csv파일 생성 FileOutputStream output3 = new FileOutputStream("./completecomos.csv"); // 저장할 csv파일의 쓰기 형식 지정 OutputStreamWriter writecsv = new OutputStreamWriter(output3, "MS949"); // 쓰는 객체 생성 CSVWriter csvwrite = new CSVWriter(writecsv); // 크롤링데이터는 row마다 엔터처리가 되어..
String path = System.getProperty("user.dir"); System.out.println("Working Directory = " + path);
File > Project Structures > Modules > Dependencies > + > Jars or Directories > 폴더선택 > OK
로그 뿌리는 법 System.out.println(arg_cnt); 매개변수 사용법 // 이 메인문 돌릴 때 입력 파라미터값을 "키워드" 로 줬음(아래 getPlayStore()함수를 보면~!) public class Main { public static void main(String[] args) throws IOException, InterruptedException, ParseException, CsvValidationException { String keyword = args[0]; buildingIdChecker bi = new buildingIdChecker(); bi.getPlayStore(keyword); } } public class buildingIdChecker { String g_i..
결과물은 아래 내용이 적힌 cfg파일을 생산하는 것 "iUserId":"아이디" "passWd":"비밀번호" 그러기 위해서 1. Json으로 만들고 2. Json의 앞뒤에 있는 "{"와 "}"를 제거해주고, 3. ","를 개행으로 변환해준 뒤 4. 그걸 txt파일로 만들고 5. cfg파일로 이름바꾸기 or 파일복사 를 하려고 한다. Json 만드는 법은 아래 링크 참고하고, https://terryvery.tistory.com/141