You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicstaticStringtoBinaryString(inti) // 返回i的二进制String表示publicstaticStringtoOctalString(inti) // 八进制publicstaticStringtoHexString(inti) // 十六进制// int i 或者 long i 都可以
String常用方法👌
「操作String的方法」
「String对象和基本数据类型的转换⇄」
String ➡️ 基本型
基本型 ➡️ String
基本类型的进制表示
main()方法的参数化💕
main()方法中的args[] 可以接受从键盘上面键入的字符序列(相当于数组),在运行时可以像以下来键入
「对象的String对象表示」
对一个对象调用 toString() 方法会返回String对象的字符序列串
🤔要注意的是:toString() 是Object类的方法,是可以被重写的
「String对象与字符数组、字节数组」
String对象与字符数组
String对象与字节数组
字符序列加密算法
以下是具体实现
The text was updated successfully, but these errors were encountered: