안드로이드/안드로이드 연습6 안드로이드(자바) 야구게임 만들기 예제 package kr.co.aiai.app; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; public class MainActivity9 extends AppCompatActivity { String com = "897"; EditText et; TextView tv; @Override protected void.. 2023. 6. 28. 안드로이드(자바) 전화번호 찍기 예제 package kr.co.aiai.app; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; public class MainActivity8 extends AppCompatActivity { Button[] btn = new Button[10]; Integer[] btn_id = {R... 2023. 6. 27. 안드로이드(자바) 별찍기 예제 package kr.co.aiai.app; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import androidx.appcompat.app.AppCompatActivity; public class MainActivity7 extends AppCompatActivity { EditText et_first; EditText et_last; TextView tv; @Override protected void onCreate(Bundle savedInstanceState) { super.onCre.. 2023. 6. 27. 안드로이드(자바) 구구단 출력 예제 package kr.co.aiai.app; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import androidx.appcompat.app.AppCompatActivity; public class MainActivity6 extends AppCompatActivity { EditText et; TextView tv; Button btn; @Override protected void onCreate(Bundle savedInstanceState) .. 2023. 6. 27. 안드로이드(자바) 홀/짝 맞추기 예제 package kr.co.aiai.app; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import androidx.appcompat.app.AppCompatActivity; import java.util.Random; public class MainActivity5 extends AppCompatActivity { //이렇게 선언할 수 있음 EditText etMe, etCom, etResult; @Override protected void onCreate(Bundle savedInstanceState.. 2023. 6. 27. 안드로이드(자바) 로또 출력 예제 package kr.co.aiai.app; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import androidx.appcompat.app.AppCompatActivity; import java.util.Random; //로또만들기 public class MainActivity4 extends AppCompatActivity { EditText et1; EditText et2; EditText et3; EditText et4; EditText et5; EditText et6; EditText et; @.. 2023. 6. 27. 이전 1 다음