java连接字符串和空字符
我对java完全陌生,我正在尝试连接到字符串中,在它们之间使用一个空字符
String header = "text 19"
String content = "this is the content"
String wholething = // this is supposed to be "text 19\0this is the content"
这里的最终目标是将所有内容的sha-1和写入一个文件。我试过一些谷歌搜索,但不知道怎么做
你可以在下面搜索框中键入要查询的问题!
我对java完全陌生,我正在尝试连接到字符串中,在它们之间使用一个空字符
String header = "text 19"
String content = "this is the content"
String wholething = // this is supposed to be "text 19\0this is the content"
这里的最终目标是将所有内容的sha-1和写入一个文件。我试过一些谷歌搜索,但不知道怎么做
# 1 楼答案
连接字符串的其他方法(无特定顺序),每种方法都有自己的特定用途: