booten mit cmd-R
US-Tastatur:
/ | -
* | shift 8
_ | shift ?
- | ?
booten mit cmd-R
US-Tastatur:
/ | -
* | shift 8
_ | shift ?
- | ?
| ZonedDateTime zonedDateTime = ZonedDateTime.now(); | |
| String token = zonedDateTime.format(DateTimeFormatter.ISO_ZONED_DATE_TIME); | |
| System.out.println(token); | |
| ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(token, DateTimeFormatter.ISO_ZONED_DATE_TIME); | |
| String zeit = zonedDateTime2.format(DateTimeFormatter.ISO_ZONED_DATE_TIME); | |
| System.out.println(zeit); |
| public static HypoInterestRohdaten parseLine(String line){ | |
| Matcher match = Pattern.compile("Lfz (\\d*).*@(\\d*.\\d*).*").matcher(line); | |
| match.matches(); | |
| HypoInterestRohdaten rohdaten = new HypoInterestRohdaten(); | |
| rohdaten.setTerm(Integer.parseInt(match.group(1))); | |
| rohdaten.setInterest(Double.parseDouble(match.group(2))); | |
| return rohdaten; | |
| } | |
| //Tipp: https://regex101.com/ |
| @Test | |
| public void testSortAgentur() { | |
| InputStream xml = this.getClass().getClassLoader().getResourceAsStream("devmodel/2/sfgsfgsfdg.XML"); | |
| AgenturenType agenturenType = JAXB.unmarshal(xml, AgenturenType.class); | |
| List<AgencyType> agenturenListe = agenturenType.getAgency(); | |
| //Sortiert nach City, dann nach Typ umgekehrt | |
| List<AgencyType> sortiert = agenturenListe.stream() | |
| .sorted(Comparator.comparing(AgencyType::getAgencyType).reversed()) |
| static Optional<Path> findXmlFile(File directory, String prefix) throws IOException { | |
| if (!directory.exists()) { | |
| return Optional.empty(); | |
| } | |
| return Files | |
| .find(directory.toPath(), 3, | |
| (path, basicFileAttributes) -> path.toFile().getName().matches(prefix + ".*.XML")) | |
| .sorted(Comparator.comparing(Path::getFileName).reversed()).findFirst(); |
| package ch.schumm.orgdaten.tools; | |
| import java.io.FileInputStream; | |
| import java.io.FileNotFoundException; | |
| import java.io.IOException; | |
| import java.nio.file.DirectoryStream; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.sql.SQLException; |
| <profile> | |
| <id>tutum</id> | |
| <activation> | |
| <activeByDefault>true</activeByDefault> | |
| </activation> | |
| <repositories> | |
| <repository> | |
| <id>public-snapshots</id> | |
| <url>http://nexus.asdf.svc.tutum.io:8081/content/groups/public/ | |
| </url> |
| List<Registration> registrationList = response.readEntity(new GenericType<List<Registration>>() {}); |
| URL url = MeineKlasse.class.getClassLoader().getResource(datei); | |
| try { | |
| return new BufferedReader(new InputStreamReader(url.openStream())); | |