Java第三章习题3-4(for循环输出俄文字母表)

Letter.java

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Administrator
 */
public class Letter {
    public void print(){
        char startLetter='а',endLetter='я';
        int startPosition=startLetter,endPosition=endLetter;
        for(int i=startPosition;i


Test.java

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Administrator
 */
public class Test {
    public static void main(String[] args){
        Letter le=new Letter();
        le.print();
    }
    
}



你可能感兴趣的:(Java)