概述
chapter1
import java.util.*;
public class chapter1 {
//希腊字母+折半查找
void a0(){
System.out.println("hi");
char A='你',B='我',C='他';
System.out.println("汉字'你'在unicode表中的位置:"+(int)A);
System.out.println("汉字'我'在unicode表中的位置:"+(int)B);
System.out.println("汉字'他'在unicode表中的位置:"+(int)C);
//
int firstLetter, lastLetter;
char firstG = 'α', lastG = 'ω'; //获取首字母与末字母的值
firstLetter = (int)firstG;
lastLetter = (int)lastG;
System.out.println("希腊字母表: ");
for(int i = firstLetter; i <= lastLetter; ++i)
{
char greekLetter;
greekLetter = (char)i;
System.out.print(" "+greekLetter);
}
System.out.println();
//
int startPosition = 0, endPosition = 0;
char cSrart = 'α', cEnd = 'ω';
startPosition = (int) cSrart;
endPosition = (int) cEnd;
System.out.println("希腊字母表:");
System.out.println("小写:");
for (int i = startPosition; i <= endPosition; i++) {
char c = '