⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 complete3_1.java

📁 程序练习中包括书中实例程序代码和练习中要用到的代码,是压缩文件
💻 JAVA
字号:
package questions.c3;
public class Complete3_1 {
   static char [] a = { '1','2','3','4','5',
                        '6','7','8','9' };
   public static void setCharAt( int index, char c ) {
      if ( index >=0 && index < a.length ) { 
         a[index] = c;
      }
   }
   public static char getCharAt( int index ) {
      // your code here
   }
   public static void shiftChars( int shift ) {
       // your code here
   }
   static public void main( String[] args ) {
      for ( int p = 0; p < args.length; p++ ) {
         int shift = Integer.parseInt( args[p] );
         shiftChars( shift ); 
         System.out.println( args[p] + " : " + a );
      }
   }                      
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -