Skip to content
Permalink
Browse files

added Utils class

  • Loading branch information...
bretonics committed Oct 10, 2018
1 parent def237c commit 4a98d5126fd999c1b85f2ab1fd5373e490b89c0b
Showing with 20 additions and 0 deletions.
  1. +20 −0 CS665/Homework/ERP/Utils.java
@@ -0,0 +1,20 @@
/**
* Utils.java
* This is a Utils class
* @author Andres Breton
* @version 1.0
* Postcondition: .
*/

import java.util.Arrays;

public class Utils {

// Convert Modules enum Types to String[]
public static String [] convertTypes(Modules.Types[] vals) {
String [] arr;
arr = Arrays.stream(vals).map(Enum::toString).toArray(String[]::new);
return arr;
}
}

0 comments on commit 4a98d51

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.