<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Java on Samarthya</title><link>https://samarthya.me/tags/java/</link><description>Recent content in Java on Samarthya</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© Samarthya 2018-2026. All rights reserved.</copyright><lastBuildDate>Sun, 06 Dec 2020 10:26:53 +0000</lastBuildDate><atom:link href="https://samarthya.me/tags/java/index.xml" rel="self" type="application/rss+xml"/><item><title>Building a tree from Traversal.</title><link>https://samarthya.me/posts/building-a-tree-from-traversal/</link><pubDate>Sun, 06 Dec 2020 10:26:53 +0000</pubDate><guid>https://samarthya.me/posts/building-a-tree-from-traversal/</guid><description>&lt;p&gt;What good is an software engineer if he can&amp;rsquo;t keep revisiting the DS problems. It is like a pill for my laziness that keeps crawling ever so often.&lt;/p&gt;&#10;&lt;blockquote&gt;&lt;p&gt;The problem I am talking about is mentioned in this cool portal &lt;code&gt;exercism.io&lt;/code&gt; that I use almost on a weekly basis.&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item><item><title>Consumer &lt;Intf&gt;</title><link>https://samarthya.me/posts/consumer/</link><pubDate>Fri, 04 Dec 2020 14:38:51 +0000</pubDate><guid>https://samarthya.me/posts/consumer/</guid><description>&lt;p&gt;The utility package &lt;code&gt;java.util.function&lt;/code&gt; has this functional &lt;a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/package-summary.html" target="_blank" rel="noreferrer"&gt;interface Consumer&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Each functional interface (Annotated with @&lt;a href="https://docs.oracle.com/javase/8/docs/api/java/lang/FunctionalInterface.html" target="_blank" rel="noreferrer"&gt;FunctionalInterface&lt;/a&gt;) conceptually has a single method (abstract) called the functional method to which the lambda expression&amp;rsquo;s parameter and return types are matched against. Functional interfaces often represent abstract concepts like functions, actions, or predicates.&lt;/p&gt;</description></item></channel></rss>