HackerRank 30 Days of Code Challenges - 1 Days.
By Cinnamon's Pot | 2016년 11월 12일 |
Scanner에서 생각하지 못한 에러가 떠서 잠깐 헤메였던 문제 목표 Task Complete the code in the editor below. The variables , , and are already declared and initialized for you. You must:Declare variables: one of type int, one of type double, and one of type String.Read lines of input from stdin (according to the sequence given in the Input Format section below) and initialize your variables.Use the operator to perfo
[Android] cannot resolve method setsupportactionbar (or getSupportActionBar) 에러
By 프로그래밍 일지 | 2018년 7월 5일 |
![[Android] cannot resolve method setsupportactionbar (or getSupportActionBar) 에러](https://img.zoomtrend.com/2018/07/05/c0241606_5b3de0fe11c91.png)
Intent를 사용하는 새로 만든 Activity에서 ToolBar를 사용하려고 새로운 Toolbar를 정의했을때 setsupportactionbar() 또는 getSupportActionBar() 함수가 정의되지 않았다는 에러가 뜨는 경우가 있다. 새롭게 만든 액티비티가 Activity 클래스를 상속하기 때문에 해당 함수가 없는 것이므로 슈퍼 클래스를 AppCompatActivity로 바꾸면 해결된다. 이렇게 바꿔야 해당 함수들이 동작하는 이유는 ActionBar를 사용하는 구형 API와의 호환을 위해 안드로이드 하위버젼의 액티비티를 지원하는 AppCompatActivity를 사용해야 하기 때문이다. 다만 이 경우 새롭게 생성된 액티비티에도 ActionBar가 추가되므로 해당 부분에 대한 처리
[eclipse]java 버전 문제로 서버 추가 안될 경우
By 앨리스의 토끼 | 2021년 11월 3일 |
이클립스에서 서버 탭을 열면 서버가 보이지 않는다. No servers are available. Click this link to create a new server만 보이는데... 클릭해 준다.화면에서 추가하려는 서버 타입을 골라준다.Server runtime environment 항목에 선택된 서버가 보인다.그 옆의 "Add..."를 눌러준다.JRE가 설정된 정보를 확인하기 위해 "Installed JREs..."를 눌러준다.설치된 JRE 정보가 맞는지 확인하고, 여기서 새로운 기본으로 사용할 JRE를 체크해 준다.물론 따로 설치된 JRE로 변경해 줄 수도 있다. 기본 JRE를 설정해 주자.이 창으로 닫아주면 이전의 화면에서 하단의 "Next" 버튼이 활성화 된 것을 볼 수 있다. 클릭해 준다. 상
자바의 반복문 - while문, do ~ while문
By 블루링의 아름다운 신세계! | 2017년 12월 14일 |
자바의 반복문 중 while문과 do~while문을 학습하는 동영상입니다. 동영상 주소 : https://youtu.be/x7aTY8iFQec