mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 13:50:45 +00:00
AS3: Empty line between traits
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
|
||||
package com.jpexs.asdec.helpers;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Class with helper method
|
||||
*
|
||||
@@ -195,4 +197,34 @@ public class Helper {
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static String joinStrings(List<String> arr,String glue)
|
||||
{
|
||||
String ret="";
|
||||
boolean first=true;
|
||||
for(String s:arr){
|
||||
if(!first){
|
||||
ret += glue;
|
||||
}else{
|
||||
first=false;
|
||||
}
|
||||
ret+=s;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static String joinStrings(String arr[],String glue)
|
||||
{
|
||||
String ret="";
|
||||
boolean first=true;
|
||||
for(String s:arr){
|
||||
if(!first){
|
||||
ret += glue;
|
||||
}else{
|
||||
first=false;
|
||||
}
|
||||
ret+=s;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user