<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>java-operators | Automation Dojos</title>
	<atom:link href="https://www.automationdojos.com/tag/java-operators/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.automationdojos.com/tag/java-operators/</link>
	<description>Applied Automation Ops</description>
	<lastBuildDate>Wed, 05 Jan 2022 21:49:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.automationdojos.com/wp-content/uploads/2021/06/Adjo_X_fav_32.png</url>
	<title>java-operators | Automation Dojos</title>
	<link>https://www.automationdojos.com/tag/java-operators/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Java Tutorial #3 – Java Arrays</title>
		<link>https://www.automationdojos.com/java-tutorial-java-arrays/</link>
					<comments>https://www.automationdojos.com/java-tutorial-java-arrays/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Thu, 21 Mar 2019 15:40:22 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Java Tutorials]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[core-java]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java-operators]]></category>
		<category><![CDATA[java-tutorials]]></category>
		<guid isPermaLink="false">https://www.automationdojos.com/?p=13365</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/java-tutorial-java-arrays/">Java Tutorial #3 – Java Arrays</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="280" height="168" src="https://www.automationdojos.com/wp-content/uploads/2020/05/post_JAVA-Tutorial3-1-280x168.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" srcset="https://www.automationdojos.com/wp-content/uploads/2020/05/post_JAVA-Tutorial3-1-280x168.png 280w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_JAVA-Tutorial3-1-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_JAVA-Tutorial3-1-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_JAVA-Tutorial3-1-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_JAVA-Tutorial3-1-400x240.png 400w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_JAVA-Tutorial3-1.png 575w" sizes="(max-width: 280px) 100vw, 280px" /></p>
<p>Table of Contents One Dimensional Array Declaring Array Allocting Memory to Array Accessing Array Elements Initializing Array Length of Array Multi Dimensional Array Creating 3 Dimensional Array Introduction Arrays are used to store a group of values of the same data type. So a single variable can be used to refer to the group of [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/java-tutorial-java-arrays/">Java Tutorial #3 – Java Arrays</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/java-tutorial-java-arrays/">Java Tutorial #3 – Java Arrays</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="280" height="168" src="https://www.automationdojos.com/wp-content/uploads/2020/05/post_JAVA-Tutorial3-1-280x168.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" srcset="https://www.automationdojos.com/wp-content/uploads/2020/05/post_JAVA-Tutorial3-1-280x168.png 280w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_JAVA-Tutorial3-1-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_JAVA-Tutorial3-1-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_JAVA-Tutorial3-1-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_JAVA-Tutorial3-1-400x240.png 400w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_JAVA-Tutorial3-1.png 575w" sizes="(max-width: 280px) 100vw, 280px" /></p>
<h2 class="simpletoc-title">Table of Contents</h2>
<ul class="simpletoc">
<li> <a href="#one-dimension">One Dimensional Array</a>
<ul>
<li><a href="#declaring-array">Declaring Array</a></li>
<li> <a href="#allocating-memory">Allocting Memory to Array</a></li>
<li> <a href="#accessing-element">Accessing Array Elements</a></li>
<li> <a href="#initialize-array">Initializing Array</a></li>
<li> <a href="#length-array">Length of Array</a></li>
</ul>
</li>
<li> <a href="#multi-dimension">Multi Dimensional Array</a></li>
<li> <a href="#creating-using-3dimension">Creating 3 Dimensional Array</a></li>
</ul>


<h3>Introduction</h3>
<p>Arrays are used to store a group of values of the <strong><em>same data type</em></strong>. So a single variable can be used to refer to the group of values. Arrays can store data of <strong><em>any data type</em></strong> and can have one or more dimensions as explained below.</p>
<h3>1. One-Dimensional Array</h3>
<p>A one-dimensional array is essentially a list of values referred to by a common name.</p>
<div class="su-box su-box-style-default" id="" style="border-color:#bfbfbf;border-radius:3px;"><div class="su-box-title" style="background-color:#f2f2f2;color:#6b6b6b;border-top-left-radius:1px;border-top-right-radius:1px">(a) Declaring an array</div><div class="su-box-content su-u-clearfix su-u-trim" style="border-bottom-left-radius:1px;border-bottom-right-radius:1px">
<p>In order to create an array, you first need to declare a variable of the desired type corresponding to the array. The following code demonstrates this:</p>
<pre class="lang:java decode:true ">int myArray[]; // creates myArray to store int values</pre>
<p>Notice that the name of the array is followed by square brackets. This indicates that we are trying to create an array. Since we have declared myArray to be of type <strong>int</strong>, each element in the array can only be of <strong>int</strong> data type.</p>
</div></div>
<div class="su-spacer" style="height:20px"></div>
<div class="su-box su-box-style-default" id="" style="border-color:#bfbfbf;border-radius:3px;"><div class="su-box-title" style="background-color:#f2f2f2;color:#6b6b6b;border-top-left-radius:1px;border-top-right-radius:1px">(b) Allocating memory to the array</div><div class="su-box-content su-u-clearfix su-u-trim" style="border-bottom-left-radius:1px;border-bottom-right-radius:1px">
<p>Although the code snippet above declares an array, you need to allocate memory to it using the <strong>new</strong> keyword as follows:</p>
<pre class="lang:java decode:true ">myArray = new int[10]; // creates array of size 10</pre>
<p>Here, the keyword <strong>new</strong> is used to allocate memory. This is a special keyword that is used to allocate memory. This will be covered in detail when we take a closer look at classes.  Notice that the size (10 in this case) needs to be specified within square brackets as well. This indicates that the array is capable of storing 10 values.</p>
<p>The declaration and memory allocation can also be combined into a single statement as follows:</p>
<pre class="lang:java decode:true ">int myArray[] = new int[10]; //creates myArray with size 10</pre>
</div></div>
<div class="su-spacer" style="height:20px"></div>
<div class="su-box su-box-style-default" id="" style="border-color:#bfbfbf;border-radius:3px;"><div class="su-box-title" style="background-color:#f2f2f2;color:#6b6b6b;border-top-left-radius:1px;border-top-right-radius:1px">(c) Accessing an element in an array</div><div class="su-box-content su-u-clearfix su-u-trim" style="border-bottom-left-radius:1px;border-bottom-right-radius:1px">
<p>Each <strong>value</strong> within the array is called as an <strong>element</strong> in the array. An element in an array can be accessed via its <strong>index</strong>. Index is simply an integer that specifies a position in the array. The index needs to be specified within square brackets too. Array index begins at 0, so the 1<sup>st</sup> element is at position 0, the 2<sup>nd</sup> at position 1 and so on.</p>
<p>Consider the following code snippet that assigns a value to a particular element:</p>
<pre class="lang:java decode:true ">myArray[3] = 5; // element at index 3, i.e.4th element will be assigned 5</pre>
<p>Similarly, you can also access an element at a particular position using its index:</p>
<pre class="lang:java decode:true ">int value = myArray[2]; 
// value at index 2 i.e. 3rd position is assigned to the variable value</pre>
</div></div>
<div class="su-spacer" style="height:20px"></div>
<div class="su-box su-box-style-default" id="" style="border-color:#bfbfbf;border-radius:3px;"><div class="su-box-title" style="background-color:#f2f2f2;color:#6b6b6b;border-top-left-radius:1px;border-top-right-radius:1px">(d) Initializing an array</div><div class="su-box-content su-u-clearfix su-u-trim" style="border-bottom-left-radius:1px;border-bottom-right-radius:1px">
<p>Arrays can also be initialized with some values when they are declared. You need to specify the values to be stored in the array within curly braces as a list of comma separated values. The following code demonstrates this:</p>
<pre class="lang:java decode:true ">int myArray[] = {2,4,6,8,10}; 
//creates new array of size 5 with specified values</pre>
<p>Note that here the size is not specified in the square brackets explicitly; it is the same as the number of elements in the curly brackets.</p>
</div></div>
<div class="su-spacer" style="height:20px"></div>
<div class="su-box su-box-style-default" id="" style="border-color:#bfbfbf;border-radius:3px;"><div class="su-box-title" style="background-color:#f2f2f2;color:#6b6b6b;border-top-left-radius:1px;border-top-right-radius:1px">(e) Obtaining the length of an array</div><div class="su-box-content su-u-clearfix su-u-trim" style="border-bottom-left-radius:1px;border-bottom-right-radius:1px">
<p>There is a <strong>length</strong> property provided on the array object. This can be used to determine the number of elements in the array.  The following code demonstrates this:</p>
<pre class="lang:java decode:true ">int myArray[] = {2,4,6,8,10};
int size = myArray.length; // size will be 5
</pre>
<p>Since there are 5 values in the array myArray, size will be assigned the value 5.</p>
</div></div>
<div class="su-spacer" style="height:20px"></div>
<h3>2. Multi-Dimensional Arrays</h3>
<p>Multidimensional arrays are basically arrays of arrays. They are used to store data in tabular form. Each additional index needs to be specified using additional square brackets.</p>
<div class="su-box su-box-style-default" id="" style="border-color:#bfbfbf;border-radius:3px;"><div class="su-box-title" style="background-color:#f2f2f2;color:#6b6b6b;border-top-left-radius:1px;border-top-right-radius:1px">(a) Creating a Two-dimensional array</div><div class="su-box-content su-u-clearfix su-u-trim" style="border-bottom-left-radius:1px;border-bottom-right-radius:1px">
<p>The following code creates a two-dimensional array:</p>
<pre class="lang:java decode:true ">int myArray[][] = new int[4][6];</pre>
<p>This code creates a new two-dimensional array with the dimensions as 4 and 6. So basically, myArray is an array having 4 elements. Each element in the array is an array of 6 elements.</p>
<p>So it will store data as follows:<br />{(2,4,6,8,10,12),  // 4 arrays, each having 6 elements<br />(3,6,9,12,15,18),<br />(4,8,12,16,20,24),<br />(5,10,15,20,25,30)}</p>
</div></div>
<div class="su-spacer" style="height:20px"></div>
<div class="su-box su-box-style-default" id="" style="border-color:#bfbfbf;border-radius:3px;"><div class="su-box-title" style="background-color:#f2f2f2;color:#6b6b6b;border-top-left-radius:1px;border-top-right-radius:1px">(b) Accessing elements in a Two-dimensional array</div><div class="su-box-content su-u-clearfix su-u-trim" style="border-bottom-left-radius:1px;border-bottom-right-radius:1px">
<p>In order to access an element in a multi-dimensional array, you need to specify the position for each dimension as follows:</p>
<pre class="lang:java decode:true ">int val = myArray[2][4]; 
// a will be assigned the element at row index 2 and column index 4
</pre>
<p>Just like one dimensional arrays, array index begins at 0 even for multi-dimensional arrays. So if we consider the data above, the value 20 will be assigned to the variable val</p>
</div></div>
<div class="su-spacer" style="height:10px"></div>
<h3>3. Creating and Using a 3-Dimensional Array</h3>
<p>Similarly, you can create a 3-dimensional array as follows:</p>
<pre class="lang:java decode:true ">int myArray[][][] = new int [2][3][4];
myArray[1][0][3] = 5;</pre>
<p>This code declares a 3-dimensional array with 2,3,4 as the dimensions. It sets the element at position 1,0,3 to 5.</p>
<div class="su-spacer" style="height:10px"></div>
<h3>Conclusion</h3>
<p>So this article covers what arrays are and how you can use them. It also walks you through multi-dimensional arrays.</p>
<div class="su-spacer" style="height:10px"></div><div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/tag/java-operators/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D13365" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=java-operators&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D13365" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D13365" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/tag/java-operators/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D13365&title=java-operators" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=java-operators https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D13365" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=13365" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=13365', 'java-operators', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/java-tutorial-java-arrays/">Java Tutorial #3 – Java Arrays</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/java-tutorial-java-arrays/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Java Tutorial #2 – Operators in Java</title>
		<link>https://www.automationdojos.com/operators-in-java/</link>
					<comments>https://www.automationdojos.com/operators-in-java/#respond</comments>
		
		<dc:creator><![CDATA[Tushar Sharma]]></dc:creator>
		<pubDate>Sat, 26 Jan 2019 01:36:14 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Java Tutorials]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[core-java]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java-operators]]></category>
		<category><![CDATA[java-tutorials]]></category>
		<guid isPermaLink="false">https://www.automationdojos.com/?p=13331</guid>

					<description><![CDATA[<p><a href="https://www.automationdojos.com/operators-in-java/">Java Tutorial #2 – Operators in Java</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="280" height="168" src="https://www.automationdojos.com/wp-content/uploads/2020/05/post_java-tutorial-02-280x168.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" srcset="https://www.automationdojos.com/wp-content/uploads/2020/05/post_java-tutorial-02-280x168.png 280w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_java-tutorial-02-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_java-tutorial-02-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_java-tutorial-02-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_java-tutorial-02-400x240.png 400w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_java-tutorial-02.png 575w" sizes="(max-width: 280px) 100vw, 280px" /></p>
<p>Table of Contents Introduction 1. Assignment Operator 2. Arithmetic Operators 3. Compound Operators 4. Increment &#038; Decrement Operators 5. Relational Operators 6. Logical Operators Introduction Operators are an essential part of any programming language. In-fact it is not possible not to write a decent piece of code without making use of &#8216;Operators&#8217;. Java operators can [&#8230;]</p>
<p>The post <a href="https://www.automationdojos.com/operators-in-java/">Java Tutorial #2 – Operators in Java</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.automationdojos.com/operators-in-java/">Java Tutorial #2 – Operators in Java</a> | As Published On <a href="https://www.automationdojos.com">Automation Dojos</a></p>
<p><img width="280" height="168" src="https://www.automationdojos.com/wp-content/uploads/2020/05/post_java-tutorial-02-280x168.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" decoding="async" loading="lazy" srcset="https://www.automationdojos.com/wp-content/uploads/2020/05/post_java-tutorial-02-280x168.png 280w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_java-tutorial-02-300x180.png 300w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_java-tutorial-02-150x90.png 150w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_java-tutorial-02-200x120.png 200w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_java-tutorial-02-400x240.png 400w, https://www.automationdojos.com/wp-content/uploads/2020/05/post_java-tutorial-02.png 575w" sizes="auto, (max-width: 280px) 100vw, 280px" /></p>
<h2 class="simpletoc-title">Table of Contents</h2>
<ul class="simpletoc">
<li> <a href="#introduction">Introduction</a></li>
<li> <a href="#assignment-operator">1. Assignment Operator</a></li>
<li> <a href="#arithmetic-operators">2. Arithmetic Operators</a></li>
<li> <a href="#compund-operators">3. Compound Operators</a></li>
<li><a href="#increment-and-decrement-operators">4. Increment &#038; Decrement Operators</a></li>
<li><a href="#relational-operators">5. Relational Operators</a></li>
<li><a href="#logical-operators">6. Logical Operators</a></li>
</ul>


<h2>Introduction</h2>
<p>Operators are an essential part of any programming language. In-fact it is not possible not to write a decent piece of code without making use of &#8216;Operators&#8217;. Java operators can be categorized mainly into <strong>arithmetic</strong>, <strong>relational</strong> and <strong>logical operators</strong>. In addition, there is a special assignment operator that is used to assign values to variables. Each of these is covered in a separate section below.</p>
<h2>1. Assignment Operator</h2>
<p>The <strong>“=”</strong> sign is known as the assignment operator.  It assigns whatever is to its right to the variable on its left. The variable type must be compatible with the value being assigned. The following code demonstrates this:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="java">int a = 10; //assigns the value 10 to the variable a

int b = 5+8; // assigns the value 13 to the variable b</pre>
<h2>2. Arithmetic Operators</h2>
<p>Arithmetic operators are those that are used in ordinary mathematics, that is addition, subtraction, multiplication and division. These can only be applied to numerical operands. The Arithmetic operators can be further broken down into <em>Basic Operators, Compound Assignment Operators and Increment/Decrement operators</em>.</p>
<div class="su-table su-table-alternate">
<table width="642">
<tbody>
<tr>
<td width="70"><strong>Symbol</strong></td>
<td width="119"><strong>Name</strong></td>
<td width="258"><strong>Description</strong></td>
<td width="196"><strong>Example</strong></td>
</tr>
<tr>
<td width="70">+</td>
<td width="119">Addition</td>
<td width="258">Adds the value on the left to the value on the right</td>
<td width="196">int a=30, b=20;
<p> </p>
<p>System.out.println(a+b); //prints 50</p>
</td>
</tr>
<tr>
<td width="70">&#8211;</td>
<td width="119">Subtraction</td>
<td width="258">Subtracts value on the right from the value on the left</td>
<td width="196">int a=30, b=20;
<p> </p>
<p>System.out.println(a-b);</p>
<p>//prints 10</p>
</td>
</tr>
<tr>
<td width="70">*</td>
<td width="119">Multiplication</td>
<td width="258">Multiplies the value on the left to the value on the right</td>
<td width="196">int a=30, b=2;
<p> </p>
<p>System.out.println(a*b);</p>
<p>//prints 60</p>
</td>
</tr>
<tr>
<td width="70">/</td>
<td width="119">Division</td>
<td width="258">Divides the value on the left with the value on the Right</td>
<td width="196">int a=30, b=10;
<p> </p>
<p>System.out.println(a/b);</p>
<p>//prints 3</p>
</td>
</tr>
<tr>
<td width="70">%</td>
<td width="119">Modulus</td>
<td width="258">Returns the remainder of dividing the value on the left with the value on the right</td>
<td width="196">int a=35, b=10;
<p> </p>
<p>System.out.println(a%b);</p>
<p>//prints 5</p>
</td>
</tr>
</tbody>
</table>
</div>
<h2>3. Compound Assignment</h2>
<p>Java provides special operators which can be used to combine an operation with an assignment.  These are known as compound assignment operators. The compound operators are just shortcut operators which can be used when you want to change the value of a particular variable. Java supports compound assignment operators for each of the arithmetic operators as listed below:</p>
<div class="su-table su-table-alternate">
<table width="642">
<tbody>
<tr>
<td width="70"><strong>Symbol</strong></td>
<td width="119"><strong>Name</strong></td>
<td width="258"><strong>Description</strong></td>
<td width="196"><strong>Example</strong></td>
</tr>
<tr>
<td width="70">+=</td>
<td width="119">Addition assignment</td>
<td width="258">Adds the value on the right to the variable on the left and assigns the result to the variable on the left</td>
<td width="196">int a=30;
<p> </p>
<p>a += 10; //same as a=a+10;</p>
</td>
</tr>
<tr>
<td width="70">-=</td>
<td width="119">Subtraction assignment</td>
<td width="258">Subtracts the value on the right from the variable on the left and assigns the result to the variable on the left</td>
<td width="196">int a=30;
<p> </p>
<p>a -= 20; // same as a=a-20;</p>
</td>
</tr>
<tr>
<td width="70">*=</td>
<td width="119">Multiplication assignment</td>
<td width="258">Multiplies the value on the right to the variable on the left and assigns the result to the variable on the left</td>
<td width="196">int a=30;
<p> </p>
<p>a *= 2; // same as a=a*2;</p>
</td>
</tr>
<tr>
<td width="70">/=</td>
<td width="119">Division assignment</td>
<td width="258">Divides the variable on right with the value on the left and assigns the result to the variable on the left</td>
<td width="196">int a=30, b=10;
<p> </p>
<p>a/=b; same as a=a/10;</p>
</td>
</tr>
<tr>
<td width="70">%=</td>
<td width="119">Modulus assignment</td>
<td width="258">Obtains the remainder of dividing the variable on the left with the value on the right and assigns the result to the variable on the left</td>
<td width="196">int a=35, b=10;
<p> </p>
<p>int a %= b; // same as a=a%10;</p>
</td>
</tr>
</tbody>
</table>
</div>
<h2>4. Increment &amp; Decrement Operators</h2>
<p>Java provides two additional operators known as increment and decrement operators. These basically increment or decrement the variable on which they are invoked.</p>
<div class="su-table su-table-alternate">
<table width="642">
<tbody>
<tr>
<td width="66"><strong>Symbol</strong></td>
<td width="151"><strong>Name</strong></td>
<td width="227"><strong>Description</strong></td>
<td width="198"><strong>Example</strong></td>
</tr>
<tr>
<td width="66">+ +</td>
<td width="151">Increment</td>
<td width="227">Increments the value on which it is invoked by 1</td>
<td width="198">int a = 5;
<p> </p>
<p>a++; // same as a=a+1</p>
</td>
</tr>
<tr>
<td width="66">&#8211; &#8211;</td>
<td width="151">Decrement</td>
<td width="227">Decrements the value on which it is invoked by 1</td>
<td width="198">int b = 5;
<p> </p>
<p>b&#8211;; // same as</p>
<p>b=b-1;</p>
</td>
</tr>
</tbody>
</table>
</div>
<p>Both operators come in two variants, prefix and postfix. In the prefix form the operator precedes the operand and the operation is performed before the assignment. In the postfix form, the operator succeeds the operand and the operation is performed after the assignment. The following code demonstrates this:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="java">int i = 5;
//postfix form, will print i, then increment, so will output 5
System.out.println(i++); 
int j = 10;
//prefix form, will decrement j first then print it, so will output 9
System.out.println(--j);</pre>
<h2>5. Relational Operators</h2>
<p>Relational operators are used to determine the relationship between operands. They return a boolean value. Java has the following relationship operators:</p>
<div class="su-table su-table-alternate">
<table width="690">
<tbody>
<tr>
<td width="66"><strong>Symbol</strong></td>
<td width="151"><strong>Name</strong></td>
<td width="227"><strong>Description</strong></td>
<td width="246"><strong>Example</strong></td>
</tr>
<tr>
<td width="66">&gt;</td>
<td width="151">Greater than</td>
<td width="227">Returns true if the value on the left is greater than the value on the right, otherwise returns false</td>
<td width="246">int a=30, b=20;
<p> </p>
<p>boolean flag = a &gt; b; // flag=true</p>
</td>
</tr>
<tr>
<td width="66">&lt;</td>
<td width="151">Less than</td>
<td width="227">Returns true if the value on the left is less than the value on the right, otherwise returns false</td>
<td width="246">int a=30, b=20;
<p> </p>
<p>boolean flag = a &lt; b; // flag=false</p>
</td>
</tr>
<tr>
<td width="66">==</td>
<td width="151">Equal To</td>
<td width="227">Returns true if the value on the left is equal to the value on the right, otherwise returns false</td>
<td width="246">int a=30, b=20;
<p> </p>
<p>boolean flag = a == b; // flag=false</p>
</td>
</tr>
<tr>
<td width="66">!=</td>
<td width="151">Not Equal To</td>
<td width="227">Returns true if the value on the left is not equal to the value on the right, otherwise returns false</td>
<td width="246">int a=30, b=20;
<p> </p>
<p>boolean flag = a != b; // flag=true</p>
</td>
</tr>
<tr>
<td width="66">&gt;=</td>
<td width="151">Greater than or Equal to</td>
<td width="227">Returns true if the value on the left is greater than or equal to the value on the right, otherwise returns false</td>
<td width="246">int a=30, b=20;
<p> </p>
<p>boolean flag = a &gt;= b; // flag=true</p>
</td>
</tr>
<tr>
<td width="66">&lt;=</td>
<td width="151">Less than or Equal to</td>
<td width="227">Returns true if the value on the left is less than or equal to the value on the right, otherwise returns false</td>
<td width="246">int a=20, b=20;
<p> </p>
<p>boolean flag = a &lt;= b; // flag=true</p>
</td>
</tr>
</tbody>
</table>
</div>
<h2>6. Logical Operators</h2>
<p>Logical operators operate on boolean values and are used to combine relational comparisons. Java has the following logical operators:</p>
<div class="su-table su-table-alternate">
<table width="690">
<tbody>
<tr>
<td width="66"><strong>Symbol</strong></td>
<td width="142"><strong>Name</strong></td>
<td width="236"><strong>Description</strong></td>
<td width="246"><strong>Example</strong></td>
</tr>
<tr>
<td width="66">&amp;&amp;</td>
<td width="142">Logical And</td>
<td width="236">Returns true if both its operands are true</td>
<td width="246">boolean a = true,b=false;
<p> </p>
<p>boolean c = a &amp;&amp; b;</p>
<p>// c=false</p>
</td>
</tr>
<tr>
<td width="66">||</td>
<td width="142">Logical Or</td>
<td width="236">Returns true if any one of its operands are true</td>
<td width="246">boolean a = true,b=false;
<p> </p>
<p>boolean c = a || b;</p>
<p>// c=true</p>
</td>
</tr>
<tr>
<td width="66">!</td>
<td width="142">Not</td>
<td width="236">Reverses its operand</td>
<td width="246">boolean a = true;
<p> </p>
<p>boolean c = !a;</p>
<p>//c=false</p>
</td>
</tr>
</tbody>
</table>
</div>
<p>Logical operators can be used to combine relational comparisons as follows:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="java">int a=30, b=20, c=10;
if(a &gt; b &amp;&amp; b &gt; c){
// do something
}</pre>
<div class="su-spacer" style="height:10px"></div>
<div class="su-spacer" style="height:10px"></div><div class='the_champ_sharing_container the_champ_vertical_sharing the_champ_hide_sharing the_champ_bottom_sharing' style='width:42px;left: -10px;top: 222px;-webkit-box-shadow:none;box-shadow:none;' data-super-socializer-href="https://www.automationdojos.com/tag/java-operators/feed/"><div class="the_champ_sharing_ul"><a aria-label="Facebook" class="the_champ_facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D13331" title="Facebook" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#0765FE;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="#484848" d="M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z"></path></svg></span></a><a aria-label="Twitter" class="the_champ_button_twitter" href="https://twitter.com/intent/tweet?via=@testoxide&text=java-operators&url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D13331" title="Twitter" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_twitter" style="background-color:#55acee;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 39 39"><path d="M28 8.557a9.913 9.913 0 0 1-2.828.775 4.93 4.93 0 0 0 2.166-2.725 9.738 9.738 0 0 1-3.13 1.194 4.92 4.92 0 0 0-3.593-1.55 4.924 4.924 0 0 0-4.794 6.049c-4.09-.21-7.72-2.17-10.15-5.15a4.942 4.942 0 0 0-.665 2.477c0 1.71.87 3.214 2.19 4.1a4.968 4.968 0 0 1-2.23-.616v.06c0 2.39 1.7 4.38 3.952 4.83-.414.115-.85.174-1.297.174-.318 0-.626-.03-.928-.086a4.935 4.935 0 0 0 4.6 3.42 9.893 9.893 0 0 1-6.114 2.107c-.398 0-.79-.023-1.175-.068a13.953 13.953 0 0 0 7.55 2.213c9.056 0 14.01-7.507 14.01-14.013 0-.213-.005-.426-.015-.637.96-.695 1.795-1.56 2.455-2.55z" fill="#484848"></path></svg></span></a><a aria-label="Linkedin" class="the_champ_button_linkedin" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D13331" title="Linkedin" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_linkedin" style="background-color:#0077b5;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path d="M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z" fill="#484848"></path></svg></span></a><a aria-label="Pinterest" class="the_champ_button_pinterest" href="https://www.automationdojos.com/tag/java-operators/feed/" onclick="event.preventDefault();javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" title="Pinterest" rel="noopener" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_pinterest" style="background-color:#cc2329;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-2 -2 35 35"><path fill="#484848" d="M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z"/></svg></span></a><a aria-label="Reddit" class="the_champ_button_reddit" href="https://reddit.com/submit?url=https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D13331&title=java-operators" title="Reddit" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg the_champ_s__default the_champ_s_reddit" style="background-color:#ff5700;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-3.5 -3.5 39 39"><path d="M28.543 15.774a2.953 2.953 0 0 0-2.951-2.949 2.882 2.882 0 0 0-1.9.713 14.075 14.075 0 0 0-6.85-2.044l1.38-4.349 3.768.884a2.452 2.452 0 1 0 .24-1.176l-4.274-1a.6.6 0 0 0-.709.4l-1.659 5.224a14.314 14.314 0 0 0-7.316 2.029 2.908 2.908 0 0 0-1.872-.681 2.942 2.942 0 0 0-1.618 5.4 5.109 5.109 0 0 0-.062.765c0 4.158 5.037 7.541 11.229 7.541s11.22-3.383 11.22-7.541a5.2 5.2 0 0 0-.053-.706 2.963 2.963 0 0 0 1.427-2.51zm-18.008 1.88a1.753 1.753 0 0 1 1.73-1.74 1.73 1.73 0 0 1 1.709 1.74 1.709 1.709 0 0 1-1.709 1.711 1.733 1.733 0 0 1-1.73-1.711zm9.565 4.968a5.573 5.573 0 0 1-4.081 1.272h-.032a5.576 5.576 0 0 1-4.087-1.272.6.6 0 0 1 .844-.854 4.5 4.5 0 0 0 3.238.927h.032a4.5 4.5 0 0 0 3.237-.927.6.6 0 1 1 .844.854zm-.331-3.256a1.726 1.726 0 1 1 1.709-1.712 1.717 1.717 0 0 1-1.712 1.712z" fill="#484848"/></svg></span></a><a aria-label="Whatsapp" class="the_champ_whatsapp" href="https://api.whatsapp.com/send?text=java-operators https%3A%2F%2Fwww.automationdojos.com%2F%3Fp%3D13331" title="Whatsapp" rel="nofollow noopener" target="_blank" style="font-size:24px!important;box-shadow:none;display:inline-block;vertical-align:middle"><span class="the_champ_svg" style="background-color:#55eb4c;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block;opacity:1;float:left;font-size:24px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box"><svg style="display:block;" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-6 -5 40 40"><path class="the_champ_svg_stroke the_champ_no_fill" stroke="#484848" stroke-width="2" fill="none" d="M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046"></path><path d="M 7 19 l -1 6 l 6 -1" class="the_champ_no_fill the_champ_svg_stroke" stroke="#484848" stroke-width="2" fill="none"></path><path d="M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4" fill="#484848"></path></svg></span></a><a class="the_champ_more" title="More" rel="nofollow noopener" style="font-size:24px!important;border:0;box-shadow:none;display:inline-block!important;font-size:16px;padding:0 4px;vertical-align: middle;display:inline;" href="https://www.automationdojos.com/?p=13331" onclick="event.preventDefault()"><span class="the_champ_svg" style="background-color:#ee8e2d;width:38px;height:38px;border-radius:3px;margin:0;display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;" onclick="theChampMoreSharingPopup(this, 'https://www.automationdojos.com/?p=13331', 'java-operators', '' )"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-.3 0 32 32" version="1.1" width="100%" height="100%" style="display:block;" xml:space="preserve"><g><path fill="#484848" d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span></a></div></div><p>The post <a href="https://www.automationdojos.com/operators-in-java/">Java Tutorial #2 – Operators in Java</a> appeared first on <a href="https://www.automationdojos.com">Automation Dojos</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.automationdojos.com/operators-in-java/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
