Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
// template routine Java
package routines;
public class f10515 {
public static String deleteRedundantSpace(String line) {
line = line.trim();
String newLine = "";
if (line.contains(" ")) {
String[] s = line.split(" ");
for (int i = 0; i < s.length; i++) {
if (!s.equals("")) {
newLine = newLine + " " + s;
}
}
}
return newLine.trim();
}
}
Starting job forum10515 at 14:23 08/04/2010.
connecting to socket on port 3948
connected
.---------+----------+----------.
| tLogRow_1 |
|=--------+----------+---------=|
|newColumn|newColumn1|newColumn2|
|=--------+----------+---------=|
|abc |100 |def |
|ab |97 |x |
|ab |33 |s |
'---------+----------+----------'
disconnected
Job forum10515 ended at 14:23 08/04/2010.
// template routine Java
package routines;
public class f10515 {
public static String deleteRedundantSpace(String line) {
line = line.trim();
String newLine = "";
if (line.contains(" ")) {
String[] s = line.split(" ");
for (int i = 0; i < s.length; i++) {
if (!s.equals("")) {
newLine = newLine + " " + s;
}
}
}
return newLine.trim();
}
}
Starting job forum10515 at 14:23 08/04/2010.
connecting to socket on port 3948
connected
.---------+----------+----------.
| tLogRow_1 |
|=--------+----------+---------=|
|newColumn|newColumn1|newColumn2|
|=--------+----------+---------=|
|abc |100 |def |
|ab |97 |x |
|ab |33 |s |
'---------+----------+----------'
disconnected
Job forum10515 ended at 14:23 08/04/2010.