본문 바로가기

카테고리 없음

20190910

1. String to int, int to String 형변환하는 거 잊음.

String to int

String f="123";
int t=Integer.parseInt(f);

int to String

int f=123;
String t=Integer.toString(f);

https://nota.tistory.com/49

 

2. int값 여러 개 받는 거 잊음.

Scanner sc = new Scanner(System.in);
int a=sc.nextInt(), b=sc.nextInt();

https://limkydev.tistory.com/170

 

3. 포맷 형태로 출력하는 거 잊음.

int age=10;
System.out.printf("%d%n",age);

https://keep-cool.tistory.com/15

 

4. 분만 계산하고 시는 계산 안하는 바보야. 

 if(m1 < 0){
 	m1 += 60;
    h1--;
    if(h1 < 0){
        h1 += 24;
    }
 }

https://wellohorld.tistory.com/6

 

5. Scanner의 함수 hasNextInt()를 몰라서 못풀 뻔한 문제 발생.

https://wanna-b.tistory.com/59

 

6. Math의 절대값 활용했으나 안됨.

http://mwultong.blogspot.com/2007/02/java-method-absolute-value-mathabs.html

 

7. 다시 공부 시작해야겠다는 생각이 들어서 백준 켜서 하고 있는데 여러모로 다시 시작하니 어려움이 생겨버렸다. 계속 문제 풀어보고 했어야 하는데 몇개월만에 다시 코딩하는 거냐고, 도대체. 리액트 네이티브도 공부해야하는데 앞으로 야스미 때는 무조건 집에 꽁 박혀가지곤 코딩을 하는 것이 좋을 것 같은 느ㅡ낌.

 

8. expo start 했더니

Error: React Native is not installed. Please run npm install in your project directory.

라고 오류 떠서 찾아봄. 노드 v.10.15.3 사용하는 것과 동일한 문제라고 판단한 사람이 해결법을 알려줌.

1) node_modules 폴더 및 package.lock.json 제거

2) npm yarn install 실행

3) expo start 실행

반응형