showchar.java
来自「《A first book of java》by Gary J.Bronson 」· Java 代码 · 共 13 行
JAVA
13 行
public class ShowChar
{
public static void main(String[] args)
{
char ch; // this declares a character variable
ch = 'a'; // store the letter a into ch
System.out.println("The character stored in ch is " + ch);
ch = 'm'; // now store the letter m into ch
System.out.println("The character now stored in ch is "+ ch);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?