<?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: Annapoorani Kadhiravan</title>
    <description>The latest articles on DEV Community by Annapoorani Kadhiravan (@annapoo).</description>
    <link>https://dev.to/annapoo</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3948061%2F4dcd27ac-9741-4910-add7-07dd2bd4aec4.jpeg</url>
      <title>DEV Community: Annapoorani Kadhiravan</title>
      <link>https://dev.to/annapoo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/annapoo"/>
    <language>en</language>
    <item>
      <title>One Commit at a Time ! Series - 28</title>
      <dc:creator>Annapoorani Kadhiravan</dc:creator>
      <pubDate>Mon, 02 Nov 2026 18:21:40 +0000</pubDate>
      <link>https://dev.to/annapoo/one-commit-at-a-time-series-28-2m8e</link>
      <guid>https://dev.to/annapoo/one-commit-at-a-time-series-28-2m8e</guid>
      <description>&lt;h2&gt;
  
  
  C Sharp
&lt;/h2&gt;




&lt;h2&gt;
  
  
  SQL
&lt;/h2&gt;




&lt;p&gt;References :&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>programming</category>
      <category>100daysofcode</category>
      <category>day28</category>
    </item>
    <item>
      <title>One Commit at a Time ! Series - 27</title>
      <dc:creator>Annapoorani Kadhiravan</dc:creator>
      <pubDate>Sun, 01 Nov 2026 17:55:32 +0000</pubDate>
      <link>https://dev.to/annapoo/one-commit-at-a-time-series-27-2251</link>
      <guid>https://dev.to/annapoo/one-commit-at-a-time-series-27-2251</guid>
      <description>&lt;h2&gt;
  
  
  DOT NET
&lt;/h2&gt;

&lt;p&gt;What is C#?&lt;br&gt;
C# is pronounced "C-Sharp".&lt;/p&gt;

&lt;p&gt;It is an object-oriented programming language created by Microsoft that runs on the .NET Framework.&lt;/p&gt;

&lt;p&gt;C# has roots from the C family, and the language is close to other popular languages like C++ and Java.&lt;/p&gt;

&lt;p&gt;The first version was released in year 2002. The latest version, C# 14, was released in November 2025.&lt;/p&gt;

&lt;p&gt;C# is used for:&lt;/p&gt;

&lt;p&gt;Mobile applications&lt;br&gt;
Desktop applications&lt;br&gt;
Web applications&lt;br&gt;
Web services&lt;br&gt;
Web sites&lt;br&gt;
Games&lt;br&gt;
VR&lt;br&gt;
Database applications&lt;/p&gt;

&lt;p&gt;Why Use C#?&lt;br&gt;
It is one of the most popular programming languages in the world&lt;br&gt;
It is easy to learn and simple to use&lt;br&gt;
It has huge community support&lt;br&gt;
C# is an object-oriented language which gives a clear structure to programs and allows code to be reused, lowering development costs&lt;br&gt;
As C# is close to C, C++ and Java, it makes it easy for programmers to switch to C# or vice versa&lt;/p&gt;


&lt;h2&gt;
  
  
  SQL
&lt;/h2&gt;

&lt;p&gt;Combining AND and OR&lt;br&gt;
You can also combine AND and OR operators.&lt;/p&gt;

&lt;p&gt;The following SQL selects all customers from Spain that starts with a "G" or an "R" (make sure to use parenthesis to get the correct result):&lt;/p&gt;

&lt;p&gt;Example&lt;br&gt;
Select all Spanish customers that starts with either "G" or "R":&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Customers&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;Country&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Spain'&lt;/span&gt; &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;CustomerName&lt;/span&gt; &lt;span class="k"&gt;LIKE&lt;/span&gt; &lt;span class="s1"&gt;'G%'&lt;/span&gt; &lt;span class="k"&gt;OR&lt;/span&gt; &lt;span class="n"&gt;CustomerName&lt;/span&gt; &lt;span class="k"&gt;LIKE&lt;/span&gt; &lt;span class="s1"&gt;'R%'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;References&lt;br&gt;
&lt;a href="https://www.w3schools.com/sql/sql_and.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/sql/sql_and.asp&lt;/a&gt; &lt;br&gt;
&lt;a href="https://www.w3schools.com/cs/cs_intro.php" rel="noopener noreferrer"&gt;https://www.w3schools.com/cs/cs_intro.php&lt;/a&gt; &lt;/p&gt;

</description>
      <category>productivity</category>
      <category>programming</category>
      <category>100daysofcode</category>
      <category>day27</category>
    </item>
    <item>
      <title>One Commit at a Time ! Series - 26</title>
      <dc:creator>Annapoorani Kadhiravan</dc:creator>
      <pubDate>Sat, 31 Oct 2026 17:33:28 +0000</pubDate>
      <link>https://dev.to/annapoo/one-commit-at-a-time-series-27-cbe</link>
      <guid>https://dev.to/annapoo/one-commit-at-a-time-series-27-cbe</guid>
      <description>&lt;h2&gt;
  
  
  JAVA
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Main&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// returns true because 5 is greater than 3 AND 5 is less than 10&lt;/span&gt;
  &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Explanation :&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;int x = 5;&lt;/code&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Declares an integer variable named &lt;code&gt;x&lt;/code&gt; and assigns it the value &lt;code&gt;5&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;x &amp;gt; 3&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Evaluates whether &lt;code&gt;x&lt;/code&gt; (which is &lt;code&gt;5&lt;/code&gt;) is greater than &lt;code&gt;3&lt;/code&gt;. This statement is &lt;strong&gt;true&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;x &amp;lt; 10&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Evaluates whether &lt;code&gt;x&lt;/code&gt; (which is &lt;code&gt;5&lt;/code&gt;) is less than &lt;code&gt;10&lt;/code&gt;. This statement is &lt;strong&gt;true&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;x &amp;gt; 3 &amp;amp;&amp;amp; x &amp;lt; 10&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The &lt;code&gt;&amp;amp;&amp;amp;&lt;/code&gt; symbol is the logical &lt;strong&gt;AND&lt;/strong&gt; operator. It requires &lt;strong&gt;both&lt;/strong&gt; sides of the expression to be true for the entire condition to be true.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Since &lt;code&gt;5 &amp;gt; 3&lt;/code&gt; is true &lt;strong&gt;and&lt;/strong&gt; &lt;code&gt;5 &amp;lt; 10&lt;/code&gt; is true, the overall result of the expression is &lt;strong&gt;&lt;code&gt;true&lt;/code&gt;&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;System.out.println(...)&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Prints the result of the expression (&lt;code&gt;true&lt;/code&gt;) to the console.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  SQL
&lt;/h2&gt;

&lt;p&gt;All Conditions Must Be True&lt;br&gt;
The following SQL selects all customers where Country is "Brazil" AND City is "Rio de Janeiro" AND CustomerID is higher than 50:&lt;/p&gt;

&lt;p&gt;Example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Customers&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;Country&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Brazil'&lt;/span&gt;
&lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;City&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Rio de Janeiro'&lt;/span&gt;
&lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;CustomerID&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;References:&lt;br&gt;
&lt;a href="https://www.w3schools.com/sql/sql_and.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/sql/sql_and.asp&lt;/a&gt; &lt;br&gt;
&lt;a href="https://www.w3schools.com/java/java_examples.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/java/java_examples.asp&lt;/a&gt; &lt;/p&gt;

</description>
      <category>productivity</category>
      <category>programming</category>
      <category>100daysofcode</category>
      <category>day26</category>
    </item>
    <item>
      <title>One Commit at a Time ! Series - 25</title>
      <dc:creator>Annapoorani Kadhiravan</dc:creator>
      <pubDate>Fri, 30 Oct 2026 16:36:36 +0000</pubDate>
      <link>https://dev.to/annapoo/one-commit-at-a-time-series-25-317o</link>
      <guid>https://dev.to/annapoo/one-commit-at-a-time-series-25-317o</guid>
      <description>&lt;h2&gt;
  
  
  JAVA
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Main&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
  &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Explanation :&lt;/p&gt;

&lt;h3&gt;
  
  
  1. The Class Definition
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Main&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;public class Main&lt;/code&gt;&lt;/strong&gt;: In Java, every program must be enclosed in a class. This defines a public class named &lt;code&gt;Main&lt;/code&gt;. By convention, the name of the main class usually matches the filename (&lt;code&gt;Main.java&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. The Main Method
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;  &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;public static void main(String[] args)&lt;/code&gt;&lt;/strong&gt;: This is the &lt;strong&gt;entry point&lt;/strong&gt; of any standalone Java application. The Java runtime always looks for this exact method signature to start running the program.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;public&lt;/code&gt;&lt;/strong&gt;: Means this method can be accessed from outside the class.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;static&lt;/code&gt;&lt;/strong&gt;: Means the method belongs to the class itself, rather than an instance of the class, so Java can call it without creating an object.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;void&lt;/code&gt;&lt;/strong&gt;: Means this method does not return any value.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;String[] args&lt;/code&gt;&lt;/strong&gt;: This is an array that can store command-line arguments passed to the program.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Variable Declaration and Assignment
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight c"&gt;&lt;code&gt;    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;int x = 5;&lt;/code&gt;&lt;/strong&gt;: This declares a variable named &lt;strong&gt;&lt;code&gt;x&lt;/code&gt;&lt;/strong&gt; of type &lt;strong&gt;&lt;code&gt;int&lt;/code&gt;&lt;/strong&gt; (integer, meaning whole numbers) and assigns it the value &lt;strong&gt;&lt;code&gt;5&lt;/code&gt;&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Printing to the Console
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;    &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;System.out.println(x);&lt;/code&gt;&lt;/strong&gt;: This tells Java to print the value stored in the variable &lt;code&gt;x&lt;/code&gt; to the console, followed by a new line.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Output
&lt;/h3&gt;

&lt;p&gt;When you run this program, the console will display:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;5

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  SQL
&lt;/h2&gt;

&lt;p&gt;The WHERE clause can contain one or many AND operators.&lt;/p&gt;

&lt;p&gt;The AND operator is used to filter records based on more than one condition.&lt;/p&gt;

&lt;p&gt;Note: The AND operator displays a record if all the conditions are TRUE.&lt;/p&gt;

&lt;p&gt;The following SQL selects all customers from Spain that starts with the letter 'G':&lt;/p&gt;

&lt;p&gt;Example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;Select&lt;/span&gt; &lt;span class="k"&gt;all&lt;/span&gt; &lt;span class="n"&gt;customers&lt;/span&gt; &lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;Country&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="nv"&gt;"Spain"&lt;/span&gt; &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;CustomerName&lt;/span&gt; &lt;span class="n"&gt;starts&lt;/span&gt; &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;letter&lt;/span&gt; &lt;span class="s1"&gt;'G'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Customers&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;Country&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Spain'&lt;/span&gt; &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;CustomerName&lt;/span&gt; &lt;span class="k"&gt;LIKE&lt;/span&gt; &lt;span class="s1"&gt;'G%'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;References :&lt;br&gt;
&lt;a href="https://www.w3schools.com/sql/sql_and.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/sql/sql_and.asp&lt;/a&gt; &lt;br&gt;
&lt;a href="https://www.w3schools.com/java/tryjava.asp?filename=demo_oper_ass1" rel="noopener noreferrer"&gt;https://www.w3schools.com/java/tryjava.asp?filename=demo_oper_ass1&lt;/a&gt; &lt;/p&gt;

</description>
      <category>programming</category>
      <category>productivity</category>
      <category>100daysofcode</category>
      <category>day25</category>
    </item>
    <item>
      <title>One Commit at a Time ! Series - 24</title>
      <dc:creator>Annapoorani Kadhiravan</dc:creator>
      <pubDate>Thu, 29 Oct 2026 16:28:03 +0000</pubDate>
      <link>https://dev.to/annapoo/one-commit-at-a-time-series-24-4073</link>
      <guid>https://dev.to/annapoo/one-commit-at-a-time-series-24-4073</guid>
      <description>&lt;h2&gt;
  
  
  JAVA
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Main&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
  &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Explanation :&lt;/p&gt;

&lt;p&gt;This Java program demonstrates the use of the &lt;strong&gt;decrement operator&lt;/strong&gt; (&lt;code&gt;--&lt;/code&gt;) to decrease the value of a variable.&lt;/p&gt;

&lt;p&gt;Here is a step-by-step breakdown:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;int x = 5;&lt;/code&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Declares an integer variable named &lt;code&gt;x&lt;/code&gt; and initializes it with the value &lt;code&gt;5&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;--x;&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Applies the &lt;strong&gt;pre-decrement operator&lt;/strong&gt; to &lt;code&gt;x&lt;/code&gt;. This subtracts &lt;code&gt;1&lt;/code&gt; directly from the current value of &lt;code&gt;x&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Since &lt;code&gt;x&lt;/code&gt; was &lt;code&gt;5&lt;/code&gt;, it now becomes &lt;code&gt;4&lt;/code&gt;. (Because it is placed &lt;em&gt;before&lt;/em&gt; the variable, it decrements the value immediately).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;System.out.println(x);&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Prints the current value of &lt;code&gt;x&lt;/code&gt; (&lt;code&gt;4&lt;/code&gt;) to the console.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Output
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;4

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  SQL
&lt;/h2&gt;

&lt;p&gt;SELECT Example Without DISTINCT&lt;br&gt;
If you omit the DISTINCT keyword, the SQL statement returns the "Country" value from all the records of the "Customers" table:&lt;/p&gt;

&lt;p&gt;Example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;Country&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Customers&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;References :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.w3schools.com/sql/sql_distinct.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/sql/sql_distinct.asp&lt;/a&gt; &lt;br&gt;
&lt;a href="https://www.w3schools.com/java/java_examples.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/java/java_examples.asp&lt;/a&gt; &lt;/p&gt;

</description>
      <category>programming</category>
      <category>productivity</category>
      <category>100daysofcode</category>
      <category>day24</category>
    </item>
    <item>
      <title>One Commit at a Time ! Series - 23</title>
      <dc:creator>Annapoorani Kadhiravan</dc:creator>
      <pubDate>Wed, 28 Oct 2026 18:21:11 +0000</pubDate>
      <link>https://dev.to/annapoo/one-commit-at-a-time-series-23-11jc</link>
      <guid>https://dev.to/annapoo/one-commit-at-a-time-series-23-11jc</guid>
      <description>&lt;h2&gt;
  
  
  JAVA
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Main&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
  &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Explanation :&lt;/p&gt;

&lt;p&gt;This Java program demonstrates the use of the &lt;strong&gt;increment operator&lt;/strong&gt; (&lt;code&gt;++&lt;/code&gt;) to increase the value of a variable.&lt;/p&gt;

&lt;p&gt;Here is a step-by-step breakdown:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;int x = 5;&lt;/code&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Declares an integer variable named &lt;code&gt;x&lt;/code&gt; and initializes it with the value &lt;code&gt;5&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;++x;&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Applies the &lt;strong&gt;pre-increment operator&lt;/strong&gt; to &lt;code&gt;x&lt;/code&gt;. This adds &lt;code&gt;1&lt;/code&gt; directly to the current value of &lt;code&gt;x&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Since &lt;code&gt;x&lt;/code&gt; was &lt;code&gt;5&lt;/code&gt;, it now becomes &lt;code&gt;6&lt;/code&gt;. (Because it is placed &lt;em&gt;before&lt;/em&gt; the variable, it increments the value immediately before using it).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;System.out.println(x);&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Prints the current value of &lt;code&gt;x&lt;/code&gt; (&lt;code&gt;6&lt;/code&gt;) to the console.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Output
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;6

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  SQL
&lt;/h2&gt;

&lt;p&gt;SQL SELECT DISTINCT Statement&lt;br&gt;
The SELECT DISTINCT statement is used to return only distinct (unique) values.&lt;/p&gt;

&lt;p&gt;In a table, a column may contain several duplicate values - and sometimes you want to list only the unique values.&lt;/p&gt;

&lt;p&gt;Example&lt;br&gt;
Select all the distinct (unique) countries from the "Customers" table:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="k"&gt;DISTINCT&lt;/span&gt; &lt;span class="n"&gt;Country&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Customers&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;SELECT DISTINCT Syntax&lt;/p&gt;

&lt;p&gt;SELECT DISTINCT column1, column2, ...&lt;br&gt;
FROM table_name;&lt;/p&gt;




&lt;p&gt;References :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.w3schools.com/sql/sql_distinct.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/sql/sql_distinct.asp&lt;/a&gt; &lt;br&gt;
&lt;a href="https://www.w3schools.com/java/java_examples.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/java/java_examples.asp&lt;/a&gt; &lt;/p&gt;

</description>
      <category>programming</category>
      <category>productivity</category>
      <category>100daysofcode</category>
      <category>day23</category>
    </item>
    <item>
      <title>One Commit at a Time ! Series - 22</title>
      <dc:creator>Annapoorani Kadhiravan</dc:creator>
      <pubDate>Tue, 27 Oct 2026 17:19:30 +0000</pubDate>
      <link>https://dev.to/annapoo/one-commit-at-a-time-series-22-2ki4</link>
      <guid>https://dev.to/annapoo/one-commit-at-a-time-series-22-2ki4</guid>
      <description>&lt;h2&gt;
  
  
  JAVA
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Main&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
  &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Explanation :&lt;/p&gt;

&lt;p&gt;This Java program is a simple script that performs basic arithmetic by adding two integers and printing the result.&lt;/p&gt;

&lt;p&gt;Here is a step-by-step breakdown:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;int x = 5;&lt;/code&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Declares an integer variable named &lt;code&gt;x&lt;/code&gt; and initializes it with the value &lt;code&gt;5&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;int y = 3;&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Declares an integer variable named &lt;code&gt;y&lt;/code&gt; and initializes it with the value &lt;code&gt;3&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;System.out.println(x + y);&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Adds the values of &lt;code&gt;x&lt;/code&gt; and &lt;code&gt;y&lt;/code&gt; together ($5 + 3$) and prints the resulting sum (&lt;code&gt;8&lt;/code&gt;) to the console.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Output
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;8

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  SQL
&lt;/h2&gt;

&lt;p&gt;Operators in The WHERE Clause&lt;br&gt;
You can use other operators than the = operator to filter the search.&lt;/p&gt;

&lt;p&gt;Example&lt;br&gt;
Select all customers with a CustomerID greater than 80:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Customers&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;CustomerID&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;References :&lt;br&gt;
&lt;a href="https://www.w3schools.com/sql/sql_where.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/sql/sql_where.asp&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.w3schools.com/java/java_examples.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/java/java_examples.asp&lt;/a&gt; &lt;/p&gt;

</description>
      <category>programming</category>
      <category>productivity</category>
      <category>100daysofcode</category>
      <category>day22</category>
    </item>
    <item>
      <title>One Commit at a Time ! Series - 21</title>
      <dc:creator>Annapoorani Kadhiravan</dc:creator>
      <pubDate>Mon, 26 Oct 2026 16:57:28 +0000</pubDate>
      <link>https://dev.to/annapoo/one-commit-at-a-time-series-21-47am</link>
      <guid>https://dev.to/annapoo/one-commit-at-a-time-series-21-47am</guid>
      <description>&lt;h2&gt;
  
  
  JAVA
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Main&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="kt"&gt;double&lt;/span&gt; &lt;span class="n"&gt;myDouble&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;9.78d&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;myInt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="n"&gt;myDouble&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// Explicit casting: double to int&lt;/span&gt;

    &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;myDouble&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
    &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;myInt&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
  &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Explanation :&lt;/p&gt;

&lt;p&gt;This Java program demonstrates &lt;strong&gt;type casting&lt;/strong&gt;, specifically converting a &lt;code&gt;double&lt;/code&gt; (a floating-point decimal number) into an &lt;code&gt;int&lt;/code&gt; (a whole number) using explicit casting.&lt;/p&gt;

&lt;p&gt;Here is a step-by-step breakdown:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;double myDouble = 9.78d;&lt;/code&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Declares a variable named &lt;code&gt;myDouble&lt;/code&gt; of type &lt;code&gt;double&lt;/code&gt; and assigns it the value &lt;code&gt;9.78&lt;/code&gt;. The &lt;code&gt;d&lt;/code&gt; suffix explicitly denotes a double literal (though it is optional in Java).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;int myInt = (int) myDouble;&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Performs &lt;strong&gt;explicit casting&lt;/strong&gt; (also known as narrowing conversion). Because a &lt;code&gt;double&lt;/code&gt; can hold decimals and an &lt;code&gt;int&lt;/code&gt; cannot, Java requires you to explicitly tell it to convert the type by putting &lt;code&gt;(int)&lt;/code&gt; in front of the variable.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Crucial detail:&lt;/strong&gt; When casting a floating-point number to an integer, Java truncates the decimal part entirely—it does &lt;strong&gt;not&lt;/strong&gt; round up. Therefore, &lt;code&gt;9.78&lt;/code&gt; becomes &lt;code&gt;9&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;System.out.println(myDouble);&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Prints the original &lt;code&gt;double&lt;/code&gt; value to the console: &lt;code&gt;9.78&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;System.out.println(myInt);&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Prints the converted integer value to the console: &lt;code&gt;9&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Output
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;9.78
9
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  SQL
&lt;/h2&gt;

&lt;p&gt;Text Fields vs. Numeric Fields&lt;br&gt;
SQL requires single quotes around text values (most database systems will also allow double quotes).&lt;/p&gt;

&lt;p&gt;However, numeric fields should not be enclosed in quotes:&lt;/p&gt;

&lt;p&gt;Example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Customers&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;CustomerID&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;References &lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.w3schools.com/sql/sql_where.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/sql/sql_where.asp&lt;/a&gt; &lt;br&gt;
&lt;a href="https://www.w3schools.com/java/java_examples.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/java/java_examples.asp&lt;/a&gt; &lt;/p&gt;

</description>
      <category>programming</category>
      <category>productivity</category>
      <category>100daysofcode</category>
      <category>day21</category>
    </item>
    <item>
      <title>One Commit at a Time ! Series - 20</title>
      <dc:creator>Annapoorani Kadhiravan</dc:creator>
      <pubDate>Sun, 25 Oct 2026 13:31:44 +0000</pubDate>
      <link>https://dev.to/annapoo/one-commit-at-a-time-series-20-5fpb</link>
      <guid>https://dev.to/annapoo/one-commit-at-a-time-series-20-5fpb</guid>
      <description>&lt;h2&gt;
  
  
  JAVA
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Main&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;myInt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="kt"&gt;double&lt;/span&gt; &lt;span class="n"&gt;myDouble&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;myInt&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// Automatic casting: int to double&lt;/span&gt;

    &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;myInt&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
    &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;myDouble&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
  &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Explanation :&lt;/p&gt;

&lt;p&gt;This program demonstrates &lt;strong&gt;widening casting&lt;/strong&gt; (also known as implicit casting or type promotion) in Java, where a smaller primitive data type is automatically converted into a larger primitive data type.&lt;/p&gt;

&lt;p&gt;Step-by-step breakdown:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;int myInt = 9;&lt;/code&gt;&lt;/strong&gt;: Declares an integer variable named &lt;code&gt;myInt&lt;/code&gt; and assigns it the value &lt;code&gt;9&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;double myDouble = myInt;&lt;/code&gt;&lt;/strong&gt;: Automatically casts the integer value to a &lt;code&gt;double&lt;/code&gt;. Because a &lt;code&gt;double&lt;/code&gt; has a larger memory footprint and can hold decimals, Java performs this conversion safely behind the scenes without any data loss.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;System.out.println(myInt);&lt;/code&gt;&lt;/strong&gt;: Prints the integer value (&lt;code&gt;9&lt;/code&gt;) to the console.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;System.out.println(myDouble);&lt;/code&gt;&lt;/strong&gt;: Prints the converted double value (&lt;code&gt;9.0&lt;/code&gt;) to the console.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The output of the program will be:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;9
9.0

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  Widening Casting in Detail
&lt;/h3&gt;

&lt;p&gt;Widening casting happens when you assign a value of a smaller data type to a variable of a larger data type. In Java, this process is &lt;strong&gt;automatic (implicit)&lt;/strong&gt; because there is no risk of losing magnitude or precision during the conversion.&lt;/p&gt;

&lt;h4&gt;
  
  
  The Java Primitive Type Hierarchy
&lt;/h4&gt;

&lt;p&gt;To understand why casting is necessary or automatic, look at the size hierarchy of Java's numeric primitive types (from smallest to largest):&lt;/p&gt;

&lt;p&gt;$$\text{byte} \rightarrow \text{short} \rightarrow \text{int} \rightarrow \text{long} \rightarrow \text{float} \rightarrow \text{double}$$&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(Note: &lt;code&gt;char&lt;/code&gt; behaves like a 16-bit unsigned integer and can also be widened to &lt;code&gt;int&lt;/code&gt; or larger types).&lt;/em&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Key Characteristics of Widening Casting
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Safe Conversion:&lt;/strong&gt; Since the target type has an equal or greater capacity than the source type, the original value fits completely within the new memory allocation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No Explicit Syntax Required:&lt;/strong&gt; Unlike narrowing casting (which requires manual casting syntax like &lt;code&gt;(int) myDouble&lt;/code&gt;), widening happens implicitly. You do not need to write type cast operators.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Precision Preservation:&lt;/strong&gt; Converting integers to floating-point numbers (&lt;code&gt;int&lt;/code&gt; to &lt;code&gt;double&lt;/code&gt; or &lt;code&gt;float&lt;/code&gt;) preserves whole numbers while adding a decimal representation (e.g., &lt;code&gt;9&lt;/code&gt; becomes &lt;code&gt;9.0&lt;/code&gt;). However, casting very large &lt;code&gt;long&lt;/code&gt; values to &lt;code&gt;float&lt;/code&gt; or &lt;code&gt;double&lt;/code&gt; can occasionally result in a minor loss of fractional precision because of how floating-point numbers are stored in memory, though the magnitude remains accurate.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  SQL
&lt;/h2&gt;

&lt;p&gt;Operators in The WHERE Clause&lt;br&gt;
You can use other operators than the = operator to filter the search.&lt;/p&gt;

&lt;p&gt;Example&lt;br&gt;
Select all customers with a CustomerID greater than 80:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Customers&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;CustomerID&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;References :&lt;br&gt;
&lt;a href="https://www.w3schools.com/sql/sql_where.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/sql/sql_where.asp&lt;/a&gt; &lt;br&gt;
&lt;a href="https://www.w3schools.com/java/java_examples.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/java/java_examples.asp&lt;/a&gt; &lt;/p&gt;

</description>
      <category>programming</category>
      <category>productivity</category>
      <category>100daysofcode</category>
      <category>day20</category>
    </item>
    <item>
      <title>One Commit at a Time ! Series - 19</title>
      <dc:creator>Annapoorani Kadhiravan</dc:creator>
      <pubDate>Sat, 24 Oct 2026 16:49:47 +0000</pubDate>
      <link>https://dev.to/annapoo/one-commit-at-a-time-series-19-26em</link>
      <guid>https://dev.to/annapoo/one-commit-at-a-time-series-19-26em</guid>
      <description>&lt;h2&gt;
  
  
  JAVA
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Main&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;String&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"10"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="nc"&gt;String&lt;/span&gt; &lt;span class="n"&gt;z&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;z&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
  &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Explanation :&lt;/p&gt;

&lt;p&gt;This program demonstrates string concatenation and type coercion in Java. When a &lt;code&gt;String&lt;/code&gt; is added to a primitive data type like an &lt;code&gt;int&lt;/code&gt; using the &lt;code&gt;+&lt;/code&gt; operator, Java automatically converts the integer into a string and concatenates them together rather than performing mathematical addition.&lt;/p&gt;

&lt;p&gt;Step-by-step breakdown:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;String x = "10";&lt;/code&gt;&lt;/strong&gt;: Declares a string variable named &lt;code&gt;x&lt;/code&gt; holding the text &lt;code&gt;"10"&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;int y = 20;&lt;/code&gt;&lt;/strong&gt;: Declares an integer variable named &lt;code&gt;y&lt;/code&gt; holding the numeric value &lt;code&gt;20&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;String z = x + y;&lt;/code&gt;&lt;/strong&gt;: Combines &lt;code&gt;x&lt;/code&gt; and &lt;code&gt;y&lt;/code&gt;. Because &lt;code&gt;x&lt;/code&gt; is a &lt;code&gt;String&lt;/code&gt;, the integer &lt;code&gt;y&lt;/code&gt; is converted to the string &lt;code&gt;"20"&lt;/code&gt; and joined with &lt;code&gt;"10"&lt;/code&gt;, resulting in the string &lt;code&gt;"1020"&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;System.out.println(z);&lt;/code&gt;&lt;/strong&gt;: Prints the final value of &lt;code&gt;z&lt;/code&gt; to the console.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The output of the program will be:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1020

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  SQL
&lt;/h2&gt;

&lt;p&gt;Text Fields vs. Numeric Fields&lt;br&gt;
SQL requires single quotes around text values (most database systems will also allow double quotes).&lt;/p&gt;

&lt;p&gt;However, numeric fields should not be enclosed in quotes:&lt;/p&gt;

&lt;p&gt;Example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Customers&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;CustomerID&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;References :&lt;br&gt;
&lt;a href="https://www.w3schools.com/sql/sql_where.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/sql/sql_where.asp&lt;/a&gt; &lt;br&gt;
&lt;a href="https://www.w3schools.com/java/java_examples.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/java/java_examples.asp&lt;/a&gt; &lt;/p&gt;

</description>
      <category>programming</category>
      <category>productivity</category>
      <category>100daysofcode</category>
      <category>day19</category>
    </item>
    <item>
      <title>One Commit at a Time ! Series - 18</title>
      <dc:creator>Annapoorani Kadhiravan</dc:creator>
      <pubDate>Fri, 23 Oct 2026 16:37:59 +0000</pubDate>
      <link>https://dev.to/annapoo/one-commit-at-a-time-series-18-588p</link>
      <guid>https://dev.to/annapoo/one-commit-at-a-time-series-18-588p</guid>
      <description>&lt;h2&gt;
  
  
  JAVA
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Main&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;String&lt;/span&gt; &lt;span class="n"&gt;txt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"Hello World"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;txt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;toUpperCase&lt;/span&gt;&lt;span class="o"&gt;());&lt;/span&gt;
    &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;txt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;toLowerCase&lt;/span&gt;&lt;span class="o"&gt;());&lt;/span&gt;
  &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Explanation :&lt;/p&gt;

&lt;p&gt;This Java program demonstrates how to transform the casing of characters in a string using built-in string methods.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;public class Main&lt;/code&gt;&lt;/strong&gt;: The container class required by Java to hold the executable code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;public static void main(String[] args)&lt;/code&gt;&lt;/strong&gt;: The main entry point where program execution begins.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;String txt = "Hello World";&lt;/code&gt;&lt;/strong&gt;: Creates a &lt;code&gt;String&lt;/code&gt; variable named &lt;code&gt;txt&lt;/code&gt; containing the characters &lt;code&gt;"Hello World"&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;txt.toUpperCase()&lt;/code&gt;&lt;/strong&gt;: Returns a new string with every letter converted to uppercase (&lt;code&gt;"HELLO WORLD"&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;txt.toLowerCase()&lt;/code&gt;&lt;/strong&gt;: Returns a new string with every letter converted to lowercase (&lt;code&gt;"hello world"&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;System.out.println(...)&lt;/code&gt;&lt;/strong&gt;: Prints each converted string to the console on a new line, leaving the original &lt;code&gt;txt&lt;/code&gt; variable unchanged since strings in Java are immutable.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  SQL
&lt;/h2&gt;

&lt;p&gt;WHERE Clause&lt;br&gt;
The WHERE clause is used to filter records.&lt;/p&gt;

&lt;p&gt;The WHERE clause is used to extract only those records that fulfill a specific condition.&lt;/p&gt;

&lt;p&gt;Example&lt;br&gt;
Here we select all customers from Mexico:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Customers&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;Country&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Mexico'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;References :&lt;br&gt;
&lt;a href="https://www.w3schools.com/sql/sql_where.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/sql/sql_where.asp&lt;/a&gt; &lt;br&gt;
&lt;a href="https://www.w3schools.com/java/java_examples.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/java/java_examples.asp&lt;/a&gt; &lt;/p&gt;

</description>
      <category>programming</category>
      <category>productivity</category>
      <category>100daysofcode</category>
      <category>day18</category>
    </item>
    <item>
      <title>One Commit at a Time ! Series - 17</title>
      <dc:creator>Annapoorani Kadhiravan</dc:creator>
      <pubDate>Thu, 22 Oct 2026 18:08:48 +0000</pubDate>
      <link>https://dev.to/annapoo/one-commit-at-a-time-series-17-dio</link>
      <guid>https://dev.to/annapoo/one-commit-at-a-time-series-17-dio</guid>
      <description>&lt;h2&gt;
  
  
  JAVA
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Main&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;String&lt;/span&gt;&lt;span class="o"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;String&lt;/span&gt; &lt;span class="n"&gt;txt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"ABCDEFGHIJKLMNOPQRSTUVWXYZ"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;out&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;println&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"The length of the txt string is: "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;txt&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;length&lt;/span&gt;&lt;span class="o"&gt;());&lt;/span&gt;
  &lt;span class="o"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Explanation :&lt;/p&gt;

&lt;p&gt;This Java program calculates and prints the number of characters inside a given text string.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;public class Main&lt;/code&gt;&lt;/strong&gt;: Defines the main container class for the program, which Java requires for all code execution.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;public static void main(String[] args)&lt;/code&gt;&lt;/strong&gt;: The entry point or starting mechanism where the Java Virtual Machine begins running the code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;String txt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";&lt;/code&gt;&lt;/strong&gt;: Declares a variable named &lt;code&gt;txt&lt;/code&gt; of type &lt;code&gt;String&lt;/code&gt; and assigns it the entire alphabet in uppercase letters.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;txt.length()&lt;/code&gt;&lt;/strong&gt;: Calls the built-in &lt;code&gt;length()&lt;/code&gt; method on the string object, which counts every character stored inside &lt;code&gt;txt&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;System.out.println(...)&lt;/code&gt;&lt;/strong&gt;: Outputs the resulting string concatenation—combining the descriptive text with the number &lt;code&gt;26&lt;/code&gt;—directly to your console screen.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  SQL
&lt;/h2&gt;

&lt;p&gt;ORDER BY Several Columns&lt;br&gt;
The following SQL statement selects all customers from the "Customers" table - and sorts it by the "Country" and the "CustomerName" column.&lt;/p&gt;

&lt;p&gt;This means that it sorts it first by Country, and if some records have the same Country, it sorts them by CustomerName:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Customers&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;Country&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;CustomerName&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Combine ASC and DESC&lt;br&gt;
The following SQL statement selects all customers from the "Customers" table, and sorts it ASCENDING by the "Country" and DESCENDING by the "CustomerName" column:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;Customers&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;Country&lt;/span&gt; &lt;span class="k"&gt;ASC&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;CustomerName&lt;/span&gt; &lt;span class="k"&gt;DESC&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;References :&lt;br&gt;
&lt;a href="https://www.w3schools.com/sql/sql_orderby.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/sql/sql_orderby.asp&lt;/a&gt; &lt;br&gt;
&lt;a href="https://www.w3schools.com/java/java_examples.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/java/java_examples.asp&lt;/a&gt; &lt;/p&gt;

</description>
      <category>programming</category>
      <category>productivity</category>
      <category>100daysofcode</category>
      <category>day17</category>
    </item>
  </channel>
</rss>
