Skip to content

Tag: java

Get the max value using kotlin-exposed

I want to simulate this query using kotlin exposed framework: I tried the next one query: But this query just results in: and the max value is selected in the code. How to perform finding max value on the side of the database and map it to Int? Answer I tried similar query and I believe it fits your need.

Read a word (.docx) file in java

I have a word document which was generated with docx4j, when i unzip the docx file, the contents of folder is the contents of ./word/document.xml is as below the relationship xml has below relationship when we unzip chunk.docx it has below file contents and the ./word/document.xml has below contents relations…

Method to delete certain level of binary tree

I have class SimpleTree just basic binary tree: And the problem is to write method: Where level is the level of the elements in some tree (root level == 0). For example level == 1: Only LEFT leaf of DELETED elements is saved, if we dont have such -> save the right. Answer Your tree seems to be a recursive