commit
0cdb2e654c
@ -0,0 +1,16 @@
|
||||
<component name="ArtifactManager">
|
||||
<artifact type="exploded-war" name="gdms:Web exploded">
|
||||
<output-path>$PROJECT_DIR$/out/artifacts/gdms_Web_exploded</output-path>
|
||||
<root id="root">
|
||||
<element id="javaee-facet-resources" facet="gdms/web/Web" />
|
||||
<element id="directory" name="WEB-INF">
|
||||
<element id="directory" name="classes">
|
||||
<element id="module-output" name="gdms" />
|
||||
</element>
|
||||
<element id="directory" name="lib">
|
||||
<element id="file-copy" path="C:/Program Files/Apache Software Foundation/Tomcat 9.0/lib/tomcat-jdbc.jar" />
|
||||
</element>
|
||||
</element>
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
@ -0,0 +1,18 @@
|
||||
package core.process;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface Utils {
|
||||
static void formatResult(List<String[]> result, List<Map<String, String>> studentsInfo) {
|
||||
for(String[] s:result){
|
||||
Map<String,String> studentInfo = new HashMap<>();
|
||||
studentInfo.put("id",s[0]);
|
||||
studentInfo.put("name",s[2]);
|
||||
studentInfo.put("e_mail_location",s[3]);
|
||||
studentInfo.put("phone_number",s[4]);
|
||||
studentsInfo.add(studentInfo);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue