如何在Java中打印部分字符串?例如:字符串是“Application No:ABCD”,我只想打印ABCD?

时间:2017-05-09 05:21:20

标签: java string

如何在Java中打印部分字符串? 例如:字符串是“应用程序编号:ABCD”,我只想打印ABCD?

1 个答案:

答案 0 :(得分:0)

您可以从":",

中分割te字符串
{
    "compilerOptions": {
        "target": "es5",
        "module": "commonjs",
        "moduleResolution": "node",
        "sourceMap": true,
        "emitDecoratorMetadata": true,
        "experimentalDecorators": true,
        "removeComments": false,
        "noImplicitAny": false,
        "lib": ["es2015", "dom"]
    }
}