fork download
  1. class TesteSubstring {
  2. public static void main(String[] args) {
  3. String conteudoLote = "((1,'SCAB17003066B','Suprimento com Defeito e com Resíduo','Lexmark International','60FBX00','Fraco',15),(1,'SCAB160632D9FRET','Vazio','Lexmark International','50FBX00',null,50), (1,'SCAB17003066B','Vazio','Lexmark International','60FBX00',null,null), (1,'SCAB1714435C2','Vazio','Lexmark International','50F0Z00',null,null))";
  4. System.out.println(conteudoLote.replace("[", "(").replace("]",")").substring(1,(conteudoLote.length()-1)));
  5. }
  6. }
Success #stdin #stdout 0.07s 2841600KB
stdin
Standard input is empty
stdout
(1,'SCAB17003066B','Suprimento com Defeito e com Resíduo','Lexmark International','60FBX00','Fraco',15),(1,'SCAB160632D9FRET','Vazio','Lexmark International','50FBX00',null,50), (1,'SCAB17003066B','Vazio','Lexmark International','60FBX00',null,null), (1,'SCAB1714435C2','Vazio','Lexmark International','50F0Z00',null,null)