📄 complete3_1.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 + -