<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nitish-op</title>
    <description>The latest articles on DEV Community by Nitish-op (@nitish_op).</description>
    <link>https://dev.to/nitish_op</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F625769%2F6640aa84-0995-4b30-995d-84cf3df6726a.png</url>
      <title>DEV Community: Nitish-op</title>
      <link>https://dev.to/nitish_op</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nitish_op"/>
    <language>en</language>
    <item>
      <title>Lambda Expressions in Java</title>
      <dc:creator>Nitish-op</dc:creator>
      <pubDate>Tue, 19 Oct 2021 11:13:47 +0000</pubDate>
      <link>https://dev.to/nitish_op/lambda-expressions-in-java-2687</link>
      <guid>https://dev.to/nitish_op/lambda-expressions-in-java-2687</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Lambda expressions are similar to methods, but they are anonymous methods (methods without names) used to implement a method defined by a functional interface and they can be implemented right in the body of a method. A lambda expression is a short block of code which takes in parameters and returns a value so they implement the only abstract function and therefore implement functional interfaces.&lt;/p&gt;

&lt;h3&gt;
  
  
  Syntax
&lt;/h3&gt;

&lt;p&gt;(parameters) -&amp;gt; { code block }&lt;/p&gt;

&lt;p&gt;The left side specifies the parameters required by the expression, which could also be empty if no parameters are required.&lt;/p&gt;

&lt;p&gt;The right side is the lambda body which specifies the actions of the lambda expression. The body of a lambda expression can contain zero, one or more statements.&lt;/p&gt;

&lt;p&gt;When there is a single statement curly brackets are not mandatory and the return type of the anonymous function is the same as that of the body expression.&lt;/p&gt;

&lt;p&gt;When there are more than one statements, then these must be enclosed in curly brackets (a code block) and the return type of the anonymous function is the same as the type of the value returned within the code block, or void if nothing is returned.&lt;/p&gt;

&lt;h2&gt;
  
  
  Using Lambda Expressions
&lt;/h2&gt;

&lt;h4&gt;
  
  
  1.Example: No Parameter
&lt;/h4&gt;

&lt;p&gt;interface Trigger{&lt;br&gt;&lt;br&gt;
    public String display();&lt;br&gt;&lt;br&gt;
}&lt;br&gt;&lt;br&gt;
public class LambdaExpressionExample3{&lt;br&gt;&lt;br&gt;
public static void main(String[] args) {&lt;br&gt;&lt;br&gt;
    Trigger s=()-&amp;gt;{ return "Lambda function is used";};&lt;br&gt;&lt;br&gt;
    System.out.println(s.display());&lt;br&gt;&lt;br&gt;
}&lt;br&gt;&lt;br&gt;
}&lt;/p&gt;

&lt;h4&gt;
  
  
  2.Example: Single Parameter(can also be with multiple parameter)
&lt;/h4&gt;

&lt;p&gt;interface NumericTest {&lt;br&gt;
    boolean computeTest(int n); &lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;public static void main(String args[]) {&lt;br&gt;
    NumericTest Even = (n) -&amp;gt; (n % 2) == 0;&lt;br&gt;
    NumericTest Negative = (n) -&amp;gt; (n &amp;lt; 0); &lt;br&gt;
        System.out.println(Even.computeTest(10));&lt;br&gt;
        System.out.println(Negative.computeTest(-9));&lt;br&gt;
}&lt;/p&gt;

&lt;h4&gt;
  
  
  3.Lambda expressions as arguments
&lt;/h4&gt;

&lt;p&gt;interface MyString {&lt;br&gt;
    String myStringFunction(String str);&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;public static String reverseofStr(MyString reverse, String str){&lt;br&gt;
  return reverse.myStringFunction(str);&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;public static void main (String args[]) {&lt;br&gt;
    // lambda to reverse string&lt;br&gt;
    MyString reverse = (str) -&amp;gt; {&lt;br&gt;
        String result = ""; &lt;br&gt;
        for(int i = str.length()-1; i &amp;gt;= 0; i--)&lt;br&gt;
            result += str.charAt(i);&lt;br&gt;&lt;br&gt;
        return result;&lt;br&gt;
    };&lt;br&gt;
    System.out.println(reverseofStr(reverse, "Lambda example")); &lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;lambda expressions are added in Java 8 to provide functionalities such as&lt;br&gt;
Enable to treat functionality as a method argument, or code as data.&lt;/p&gt;

&lt;p&gt;A function that can be created without belonging to any class.&lt;/p&gt;

&lt;p&gt;A lambda expression can be passed around as if it was an object and executed on demand.&lt;/p&gt;

&lt;p&gt;so it saves a lot of code. In case of lambda expression, we don't need to define the method again for providing the implementation.&lt;/p&gt;

</description>
      <category>java</category>
      <category>beginners</category>
    </item>
    <item>
      <title>MX Linux</title>
      <dc:creator>Nitish-op</dc:creator>
      <pubDate>Sat, 08 May 2021 04:38:41 +0000</pubDate>
      <link>https://dev.to/nitish_op/mx-linux-41kn</link>
      <guid>https://dev.to/nitish_op/mx-linux-41kn</guid>
      <description>&lt;p&gt;What is MX Linux?&lt;/p&gt;

&lt;p&gt;A linux distribution or linux distro is an open source (not all) operating system(os) that is based on the linux kernel mostly used in Dedicated Media Center or Video Game Machine, severs, Streaming, Torrenting and supercomputing sectors.&lt;/p&gt;

&lt;p&gt;It is downloaded as a number of software packages and includes additional tools and applications.MX linux is a midweight linux os developed based on antiX and Debian stable (another linux distro).The name “MX” was chosen to combine the first letter of MEPIS (a set of Linux distributions) with the last of antiX, thus symbolizing their collaboration. It also adds its own software packages like KDE Plasma and Fluxbox. It is said to be a family of operating systems that are designed to combine elegant and efficient desktops with high stability and solid performance. It was first started in March 24, 2014 as ‘MX-14’ and there are 20 versions released till now and the latest version is MX-19.3 which is released on November 11,2020.&lt;/p&gt;

&lt;p&gt;MX Linux features a clean desktop&lt;/p&gt;

&lt;p&gt;The default Xfce desktop is quite appealing  with a perfect mixture of simplicity, ease of use and appeal to more seasoned users.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--lLpIhSkY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kjc6yjh1vfs6ny7rl4pg.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--lLpIhSkY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kjc6yjh1vfs6ny7rl4pg.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Although Xfce defaults to the panel being vertical on the side, the user is still instantly familiar with how the desktop works. Click the X button at the bottom to reveal a well-designed desktop menu that can be resized at will. You could even resize the Whisker menu so it fills the entire desktop&lt;/p&gt;

&lt;p&gt;What do you get when you install MX Linux? A lot. The pre-installed app highlight reel looks something like this:&lt;/p&gt;

&lt;p&gt;1.Firefox&lt;/p&gt;

&lt;p&gt;2.Thunderbird&lt;/p&gt;

&lt;p&gt;3.Catfish File Search&lt;/p&gt;

&lt;p&gt;4.Bulk Rename&lt;/p&gt;

&lt;p&gt;5.Conky&lt;/p&gt;

&lt;p&gt;6.LuckyBackup&lt;/p&gt;

&lt;p&gt;7.GIMP&lt;/p&gt;

&lt;p&gt;8.LibreOffice&lt;/p&gt;

&lt;p&gt;9.Clementine&lt;/p&gt;

&lt;p&gt;10.VLC Media Player&lt;/p&gt;

&lt;p&gt;11.PDF Arranger&lt;/p&gt;

&lt;p&gt;12.antiX Advert Blocker&lt;/p&gt;

&lt;p&gt;13.Asunder CD Ripper&lt;/p&gt;

&lt;p&gt;14.Samba&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Sb_oCfFj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f5ha5ct8ttu840rqu8er.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Sb_oCfFj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f5ha5ct8ttu840rqu8er.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So you won't be missing out on much of anything. As for package management, MX Linux includes Synaptic Package Manager. The inclusion of Synaptic is one of the few dings on the user-friendliness scale to be found in MX Linux. Not that Synaptic is challenging to use, but it's certainly not one of the more user-friendly tools to be found in Linux. When you compare Synaptic to, say, GNOME Software, Synaptic not only looks a bit antiquated, it's not nearly as simple. Given that MX Linux seems to be centered on being a Linux distribution for everyone, the developers might want to consider including a more modern take on the app store. &lt;/p&gt;

&lt;p&gt;MX Tools&lt;/p&gt;

&lt;p&gt;MX Linux includes a few very handy tools, aptly named MX Tools. These tools cover the following tasks:&lt;/p&gt;

&lt;p&gt;Create system backup&lt;/p&gt;

&lt;p&gt;Install drivers &amp;amp; codecs&lt;/p&gt;

&lt;p&gt;Edit boot options &amp;amp; menu&lt;/p&gt;

&lt;p&gt;System cleaning&lt;/p&gt;

&lt;p&gt;Conky management&lt;/p&gt;

&lt;p&gt;Bash configuration&lt;/p&gt;

&lt;p&gt;Repository management&lt;/p&gt;

&lt;p&gt;USB format&lt;/p&gt;

&lt;p&gt;How to install MX Linux?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Go to the MX linux website through any browser and click on download MX Linux.&lt;/li&gt;
&lt;li&gt; Under how to get it, beside direct download, click on mirrors.&lt;/li&gt;
&lt;li&gt; In the Anywhere LinuxFreedom row click on X64.&lt;/li&gt;
&lt;li&gt; Create a bootable MX Linux disk such as USB,CD,DVD.
Note: whatever disk you select will have all of its contents deleted.&lt;/li&gt;
&lt;li&gt; Download Balena or Rufus(applications to convert a flash drive into bootable USB drivers).&lt;/li&gt;
&lt;li&gt; Launch BalenaEtcher then click select an image then select MX 19.3 then click on flash.&lt;/li&gt;
&lt;li&gt; Now restart the system or plug the MX Linux Bootable Flash Drive in a computer on which you wish to install MX Linux and re-start/ start the system to boot from Flash Drive and Install MX Linux.&lt;/li&gt;
&lt;li&gt; press F10 (or Del or F9 or F12 or Esc) to enter BIOS Setup. While the system would restart and initialize start pressing F9 (or Del or F10 or F12 or Esc) to display Boot Menu.&lt;/li&gt;
&lt;li&gt;  select Flash Drive as Boot Device and Hit Enter. Enter Login password and hit enter or press Log In button to Login to the MX Linux System. 
Minimum requirements are 512 MB of RAM,5 GB free hard drive space, Flash Drive, 4 GB free.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;MX Linux is an increasingly popular Linux distribution.  In addition to its impeccable stability – it comes packed with a lot of GUI tools which makes it easier for any user comfortable with Windows/Mac originally. Enjoy your experience with MX Linux. &lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
