Skip to content

Instantly share code, notes, and snippets.

View haruple97's full-sized avatar
๐Ÿ˜

Kim Dong Hwan haruple97

๐Ÿ˜
View GitHub Profile
@haruple97
haruple97 / MainActivity.java
Last active August 25, 2021 13:39
Intent_์˜ˆ์ œ
package com.haruple97.intent_opensource;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
@haruple97
haruple97 / SubActivity.java
Created August 25, 2021 13:45
Intent ์˜ˆ์ œ
package com.haruple97.intent_opensource;
import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
public class SubActivity extends AppCompatActivity {
@Override
@haruple97
haruple97 / activity_main.xml
Created August 25, 2021 13:46
Intent ์˜ˆ์ œ
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
android:orientation="vertical"
android:gravity="center">
@haruple97
haruple97 / Baekjoon_10869.java
Created August 26, 2021 09:44
Baekjoon_10869
package baekjoon;
import java.util.Scanner;
public class Baekjoon {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
@haruple97
haruple97 / Solution.java
Created September 29, 2021 12:04
์‹ ๊ทœ ์•„์ด๋”” ์ถ”์ฒœ java
class Solution {
public String solution(String new_id) {
// 1๋‹จ๊ณ„. ์†Œ๋ฌธ์ž๋กœ ์น˜ํ™˜
new_id = new_id.toLowerCase();
// 2๋‹จ๊ณ„. ์†Œ๋ฌธ์ž ์ˆซ์ž - _ . ์ œ์™ธํ•œ ๋ชจ๋“  ๋ฌธ์ž ์ œ๊ฑฐ
String id = "";
for(int i=0; i<new_id.length(); i++){
char ch = new_id.charAt(i); //ํ•œ๋ฌธ์ž์‹ ์ฝ๊ธฐ
@haruple97
haruple97 / Baekjoon_10871.java
Created October 1, 2021 13:01
๋ฐฑ์ค€ 10871 ๋ฌธ์ œ
package baekjoon;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
//N, X ์ž…๋ ฅ
int N = sc.nextInt();
@haruple97
haruple97 / Baekjoon_4344
Created October 1, 2021 13:30
๋ฐฑ์ค€ 4344๋ฒˆ
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] arr; //์ ์ˆ˜ ๋ฐฐ์—ด
//ํ…Œ์ŠคํŠธ ์ผ€์ด์Šค์˜ ๊ฐœ์ˆ˜
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] arr; //์ ์ˆ˜ ๋ฐฐ์—ด
//ํ…Œ์ŠคํŠธ ์ผ€์ด์Šค์˜ ๊ฐœ์ˆ˜
@haruple97
haruple97 / Baekjoon_8958.java
Created October 2, 2021 13:47
๋ฐฑ์ค€ ์ž๋ฐ” 8958๋ฒˆ ๋ฌธ์ œ
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
String str;
@haruple97
haruple97 / Baekjoon_2577.java
Created October 2, 2021 14:34
๋ฐฑ์ค€ ์ž๋ฐ” 2577๋ฒˆ ๋ฌธ์ œ
import java.util.Scanner;
public class {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();