본문 바로가기
반응형

분류 전체보기703

[Android] 안드로이드 스튜디오(Android Studio)_테마(Theme) 변경 안드로이드 테마를 변경하기 위해서 [File] - [Settings] 를 들어가주도록 하자 그럼 아래와 같은 화면에서 [Appearance & Behavior] - [Appearance] 탭에서 Theme 부분을 변경해 주면 끝이다. "Darcula" 테마로 변경하면 아래와 같은 화면이 나온다 흔히 말하는 Dark(다크) 테마 로 변경하는 것이다. 여담으로 Intellij 테마는 해당 제품에서 모두 적용시킬 수 있기 때문에 따로 다운로드 받아 적용시켜줄 수 있다. 2019. 6. 20.
[Android] 안드로이드 스튜디오(Android Studio)_폰트(font) 설정 Android Studio 를 실행한 상태에서 [File] - [Settings] 로 들어가 주자 설정할 수 있는 폰트가 두가지가 있는데 1. 인터페이스 폰트 2. 에디트 폰트 둘다 알아보자 - 인터페이스 폰트 - 위에서 Settings를 눌러주었다면 아래와 같은 창이 나올텐데 거기서 [Appearance & Behavior] - [Appearance] 를 들어가보자 거기서 "Use cutom font" 부분을 변경해 주면 모든 인터페이스의 폰트가 변경된다. 폰트를 16으로 변경해주었더니 위화면과 비교해 인터페이스 전체적인 폰트사이즈가 변경된것을 확인할 수 있다. (언제든 변경가능하다는것을 알고있자.) - 에디트 폰트 - 이 Edit 폰트를 변경하는게 아마 원하는 폰트 변경일것이다. 소스코드를 좀더 크게.. 2019. 6. 20.
[Android] 안드로이드 스튜디오(Android Studio) 다운로드 및 설치 -안드로이드 스튜디오 다운로드 및 설치- 우선 아래 링크를 들어가 DOWNLOAD 버튼을 클릭해준다. (스크롤을 맨 위로 올려보면 다운로드 버튼이 있다.) https://developer.android.com/studio?hl=ko#downloads 2019. 6. 19.
[JAVA] 자바_Random (랜덤 클래스) - Random 클래스 사용하기 - Java.util.Random() - Random 클래스는 난수를 생성하는 클래스로 객체를 생성하여 사용한다. 함수 설명 boolean nextBoolean() boolean형 난수 반환 int nextInt() int형 난수 반환 int nextInt(int n) 0~n 미만의 정수형 난수 반환 long nextLong() long형 난수 반환 void nextBytes(Byte[] bytes) - float nextFloat() float형 난수 반환 double nextDouble() double형 난수 반환 이렇게 많은 함수들이 존재하는데 nextInt를 제외하고는 대부분 해당 타입의 min~max값에 대한 난수를 생성한다. (아 물론 nextInt 역시 인자값.. 2019. 6. 17.
[JAVA] 자바_Math.random (랜덤 함수) - Math.random - Math.random() - Math.random() 함수는 double 형으로 0.0이상 1.0 미만 사이의 값을 반환하는 함수이다. - 난수를 만들고 싶을때 자주 이용되는 함수이다. 예제 1) Math.random() 기본 사용법 public class MathRandomTest{ public static void main(String[] args){ System.out.println( Math.random() ); // 0.23279967568276427 System.out.println( Math.random() * 10 ); // 2.3279967568276427 (0.xxx... ~ 9.xxx 까지의 값 반환) System.out.println( (int) Math.. 2019. 6. 13.
[JAVA] 자바_Math.max/min ( 두 인자 값 중 큰/작은 값 리턴 ) - Math.max/min 메서드 사용 (두 값중 크거나 작은 값 리턴) - Math.max() - static int max(int a , int b) - static double max(double a , double b) - static float max(float a , float b) - static long max(long a , long b) - max() 함수는 두 인자 값 중 큰 값을 리턴하는 함수이다. 예제 1) Math.max() 기본 사용법 public class MathMaxTest{ public static void main(String[] args){ System.out.println( Math.max(26,2) ); // 26 System.out.println( Math.ma.. 2019. 6. 12.
[JAVA] 자바_Math.abs ( 절대값 ) - 절대값 구하기 (ft. Math.abs()) - Math.abs() - static int abs(int a) - static double abs(double a) - static float abs(float a) - static long abs(long a) - abs() 함수는 인자값에 대한 절대값을 반환하는 함수이다. 예제 1) Math.abs() 기본 사용법 public class MathABSTest{ public static void main(String[] args){ int intNum = -15; double doubleNum = -3.14; //의미가 없으니 위에 두개만 예제로 듭니다. //float intNum = -123.2f; //long intNum = -18451354; S.. 2019. 6. 12.
[JAVA] 자바_matches (정규 표현식과 일치하는지 여부 확인) - 정규표현식과 일치하는지 확인하기 - matches() - boolean matches(String regex) - 주어진 정규 표현식과 일치하는지 여부를 확인하는 함수이다. - 정규 표현식을 사용하지 않아도 가능하지만 "정확히" 일치해야한다. 예제 1) matches() 기본 사용법 public class MatchesTest{ public static void main(String[] args){ String str = "my java test"; //정규표현식 사용 안할때 정확히 일치해야 한다 System.out.println( str.matches("java") ); // false System.out.println( str.matches("my java Test") ); // false (대/.. 2019. 6. 12.
[JAVA] 자바_contains (문자열 포함 여부 확인) - 문자열 포함 여부 확인하기 (ft. contains) - contains() - boolean contains(CharSequence s) - contains() 함수는 대상 문자열에 특정 문자열이 포함되어 있는지 확인하는 함수이다. - 대/소문자를 구분한다. 예제 1) contains() 기본 사용법 public class ContainsTest{ public static void main(String[] args){ String str = "my java test"; System.out.println( str.contains("java") ); // true System.out.println( str.contains(" my") ); // false System.out.println( str.co.. 2019. 6. 12.
반응형
TOP