代码更新如下,分隔的效果更好了,而且割好之后可以直接粘贴使用
/**
*
*/
package com.zrar.main.tjfx.blh;
/*
* Project: 税总12366
* Author: 陈宜康
* Company: 杭州中软安人网络通信有限公司
* Created Date: 2018-4-2
*
* Copyright @ 2018 CS&S.COM – Confidential and Proprietary
*
* History:
* ------------------------------------------------------------------------------
* Date |time |Author |Change Description */
/**
* 把一句很长的sql每隔80个字符拆分一次拆分成
*/
public class AutoPatch {
public static void main(String[] args) {
StringBuilder sql=new StringBuilder("");
String sqlString=sql.toString().replace("\n", " ");
for (int i = 1; i < 100; i++) {
String shit="";
for (int j = 0; j < i; j++) {
shit+=" ";
}
sqlString=sqlString.replace(shit, " ");
}
String shit2=sqlString.toString();
for (int i = 1; i < 100; i++) {
String hehe="";
for (int j = 0; j < i; j++) {
hehe+=" ";
}
shit2=shit2.replace(hehe, " ");
}
System.out.println(makeli

最低0.47元/天 解锁文章
906

被折叠的 条评论
为什么被折叠?



