📄 stringutils.java
字号:
/** * */package com.pjaol.ifodder.storage;import java.util.StringTokenizer;/** * @author pjaol * */public class StringUtils { public static String getNextToken(StringTokenizer tokenizer) { boolean withinQuotes = false; StringBuffer buffer = new StringBuffer(); String token = ""; while (tokenizer.hasMoreTokens()) { token = tokenizer.nextToken(); if (token.equals("\"")) { withinQuotes = !withinQuotes; } if (!token.equals(",") || withinQuotes) { buffer.append(token); } if (!withinQuotes && token.equals(",")) break; } return buffer.toString(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -