핵심구현Zxing(Zebra Crossing) Library - QR코드 스캔AsyncTask class 사용하여 서버 접근 - Json을 넘겨주는 서버에 접속하여 값을 가져옴openFileOutput 함수를 사용하여 내부 스토리지에 파일 write 및 read 중복되는코드가 많고... 코드가 너무 더럽다... 너무시간에재촉되나보니...덕지덕지짠거같다...ㅎㅎ MainActivity.javapublic class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.a..
//Serialization and File I/O //Serialization//WriteFileOutputStream f = new FileOutputStream("filename");ObjectOutputStream os = new ObjectOutputStream(f);os.writeObject(myFoo);os.close();//ReadFileInputStream f = new FileInputStream("filename");ObjectInputStream os = new ObjectInputStream(f);Object a = os.readObject();Foo myFoo = (Foo) a;//File I/O//File AccessFile f = new File("filename"); //파..
First, write a function class Solution { public int solution(int[] A); }that, given a zero-indexed array A consisting of N integers, returns the number of distinct values in array A. For example, given array A consisting of six elements such that:A[0] = 5 A[1] = 1 A[2] = 1 A[3] = 5 A[4] = 7 A[5] = 1the function should return 3, because there are 3 distinct values appearing in array A, namely 1, ..
Write a Java program to answer about the statistical information such as arithmetic mean, median, mode, and standard deviation of an integer data set. (The arithmetic median, median, and mode mean that the arithmetic average, mid-point of the distribution, and most frequent response, respectively.) The input data can be generated by random method or keyboard. Your program should display the outp..
1. Write a program that calculates the area of circle using it’s radius. The following is an example.Please enter the radius of a circle: 19 Area of a circle is 1134.114947 import java.util.*;public class Main {public static void main (String[] args) {var scanner = new Scanner(System.in);System.out.print("Please enter the radius of circle: ");int radius = scanner.nextInt(); //get radius from use..
코드 package assignment; import java.util.*; public class Assignment { public static int xx; public static int yy; public static void main(String[] args) { char [][] boggle = new char[5][5]; char[][] cp_array = new char[5][5]; init_boggle(boggle); print_boggle(boggle); while(true) { System.out.print("Input word: "); var scanner = new Scanner(System.in); String input_word = scanner.next(); if (!wor..
- Total
- Today
- Yesterday
- se846
- egpu
- C++
- 파이썬
- 프로그래밍
- 서버
- 맥북
- 코드업
- eclipse
- NAS
- 환경오염
- 자바
- 문제
- 우분투
- 알고리즘
- 맥
- CodeUp
- 아키티오
- 슈어
- 산업화
- 외장그래픽
- 모바일 프로그래밍
- Java
- 코딩
- 개발
- 백준
- python
- 이클립스
- 카카오톡
- Vega64
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |