package sample;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;

public class Hello {

	public static void main(String[] args) {

		String str = "abc";
		try {
			// String byte[];
			byte[] bytes = str.getBytes("UTF-8"); // String.getBytes();orString.getBytes(encoding);

			String xx = newString(bytes, "UTF-8");
			System.out.println(xx);
		} catch (UnsupportedEncodingException e) {
			// TODO&#33258;&#21205;&#29983;&#25104;&#12373;&#12428;&#12383;catch&#12502;&#12525;&#12483;&#12463;
			e.printStackTrace();
		}
		

		if (false) {
			try {
				File csv = new File("sample.csv");
				BufferedReader br = new BufferedReader(new FileReader(csv));

				String line = "";
				while ((line = br.readLine()) != null) {
					// StringTokenizer st = new StringTokenizer(line, ",");
					// byte[] st = "".getBytes(Charset.forName("UTF-8"));

					// while(st.hasMoreTokens()){
					// System.out.print(st.nextToken() + "\t");
					// }
					System.out.println();
				}
				br.close();
			} catch (Exception e) {
				e.printStackTrace();
			}
		}

		if (false) {
			// TODO ꂽ\bhEX^u
			String str = new String();
			for (int i = 0; i < 10; i++) {
				// System.out.println("Hello, java\n");
				str += "قق\n";
			}
			System.out.println(str);
		}
	}
}
