<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1113136475896754664</id><updated>2024-11-06T08:19:33.711+05:30</updated><category term="Java"/><category term="Android"/><title type='text'>Coding Startup</title><subtitle type='html'> In this website, you will get know about some programming languages i.e Java, Android and you will also get some solved problems of hackerrank in problem solving part and last but not the least, you will also get know about some technology updates. programming in c,programming hub,android app development</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>20</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-8116817358133756142</id><published>2020-09-01T01:57:00.031+05:30</published><updated>2020-10-14T13:05:23.497+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Simple Java Program | Some Facts That Nobody Told You - CodingStartup</title><content type='html'>&lt;!--wp:paragraph--&gt;
&lt;h3&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;/div&gt;&lt;/h3&gt;&lt;h2 aria-label=&quot;Write heading…&quot; aria-multiline=&quot;true&quot; class=&quot;rich-text block-editor-rich-text__editable&quot; contenteditable=&quot;true&quot; role=&quot;textbox&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: white; box-sizing: inherit; color: #191e23; display: block; font-family: &amp;quot;noto serif&amp;quot;; font-size: 1.95em; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 600; letter-spacing: normal; line-height: 1.4; margin: 0.83em 0px; orphans: 2; outline: currentcolor none medium; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px;&quot;&gt;&lt;/h2&gt;&lt;h2 aria-label=&quot;Write heading…&quot; aria-multiline=&quot;true&quot; class=&quot;rich-text block-editor-rich-text__editable&quot; contenteditable=&quot;true&quot; role=&quot;textbox&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: white; box-sizing: inherit; color: #191e23; display: block; font-family: &amp;quot;noto serif&amp;quot;; font-size: 1.95em; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 600; letter-spacing: normal; line-height: 1.4; margin: 0.83em 0px; orphans: 2; outline: currentcolor none medium; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px;&quot;&gt;&lt;/h2&gt;&lt;h2 aria-label=&quot;Write heading…&quot; aria-multiline=&quot;true&quot; class=&quot;rich-text block-editor-rich-text__editable&quot; contenteditable=&quot;true&quot; role=&quot;textbox&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: white; box-sizing: inherit; color: #191e23; display: block; font-family: &amp;quot;noto serif&amp;quot;; font-size: 1.95em; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 600; letter-spacing: normal; line-height: 1.4; margin: 0.83em 0px; orphans: 2; outline: currentcolor none medium; text-align: start; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMnefqPiJ3ewKsdLYER0xmNxBLFJnVrqVp4plOW_H-pis0COpdJfNcEi6pTItmX8dBHh6scPSzx5fDTPrxwgeB623V4QBN-CVIKPeZEVQRtT59CI-3yvoMDGxQNC4iPx57lhWhP5sqcTxJ/s1280-rw/what-is-public-static-void-main-in-java.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMnefqPiJ3ewKsdLYER0xmNxBLFJnVrqVp4plOW_H-pis0COpdJfNcEi6pTItmX8dBHh6scPSzx5fDTPrxwgeB623V4QBN-CVIKPeZEVQRtT59CI-3yvoMDGxQNC4iPx57lhWhP5sqcTxJ/w320-h180-rw/what-is-public-static-void-main-in-java.webp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;In This Topic:&lt;/h2&gt;&lt;p&gt;In this topic, we will be covering some basic and advance details about Simple Java Program, Some Facts That Nobody Told You. &lt;b&gt;Moreover&lt;/b&gt; , we will be covering the vision of looking to a programming language.  As a result,  you will also increase you knowledge about that java  programming language.&lt;/p&gt;
&lt;!--/wp:paragraph--&gt;

&lt;!--wp:paragraph--&gt;
&lt;p&gt;&lt;b&gt;Simple Java Program&lt;/b&gt; article is also helpful in interview purpose. The points which I am considering that will make you understand that how to understand a programming language. If you are new this site and wanted to learn full java then you must watch this &lt;a href=&quot;https://codingstartupabheer.blogspot.com/search/label/Java&quot;&gt;Java Programing Course&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;
&lt;!--/wp:paragraph--&gt;

&lt;!--wp:heading--&gt;
&lt;h2&gt;Java code explained line by line&lt;/h2&gt;
&lt;!--/wp:heading--&gt;

&lt;!--wp:paragraph--&gt;
&lt;p&gt;To explain this code, I will be considering for-instance of  program. &lt;b&gt;Firstly&lt;/b&gt;, we will have look on a basic java program structure. &lt;b&gt;Last but not the least&lt;/b&gt;, we will we discussing about the some points in that simple java program structure. So lets have for-instance of a code and then we will discussing some points.&lt;/p&gt;
&lt;!--/wp:paragraph--&gt;

&lt;!--wp:preformatted--&gt;
&lt;pre class=&quot;wp-block-preformatted&quot;&gt;class CodingStartUp
{
   public static void main (String args[])
    {
    }
}&lt;/pre&gt;
&lt;!--/wp:preformatted--&gt;

&lt;!--wp:paragraph--&gt;
&lt;p&gt; Now, in the above code, we have just written a simple code in which we define class, method, data types , array and some keywords which are pre-define in java. Now Lets talk about one by one.&lt;/p&gt;
&lt;!--/wp:paragraph--&gt;

&lt;!--wp:heading {&quot;level&quot;:3}--&gt;
&lt;h3&gt;What is Class in java ?&lt;/h3&gt;
&lt;!--/wp:heading--&gt;

&lt;!--wp:paragraph--&gt;
&lt;p&gt;Class is user defined map or blueprint that in which objects are created. &lt;b&gt;In other words&lt;/b&gt;, class is place where we can create or set some properties of some group by creating objects. Objects are nothing that have some properties like place ,thing or a name of person.&lt;/p&gt;
&lt;!--/wp:paragraph--&gt;

&lt;!--wp:group--&gt;
&lt;div class=&quot;wp-block-group&quot;&gt;&lt;div class=&quot;wp-block-group__inner-container&quot;&gt;&lt;!--wp:paragraph--&gt;
&lt;p&gt; In the above, code we define class like this &lt;/p&gt;
&lt;!--/wp:paragraph--&gt;&lt;/div&gt;&lt;/div&gt;
&lt;!--/wp:group--&gt;

&lt;!--wp:group--&gt;
&lt;div class=&quot;wp-block-group&quot;&gt;&lt;div class=&quot;wp-block-group__inner-container&quot;&gt;&lt;!--wp:preformatted--&gt;
&lt;pre class=&quot;wp-block-preformatted&quot;&gt;class CodingStartUp&lt;/pre&gt;
&lt;!--/wp:preformatted--&gt;&lt;/div&gt;&lt;/div&gt;
&lt;!--/wp:group--&gt;

&lt;!--wp:group--&gt;
&lt;div class=&quot;wp-block-group&quot;&gt;&lt;div class=&quot;wp-block-group__inner-container&quot;&gt;&lt;!--wp:paragraph--&gt;
&lt;p&gt;Here class is keyword and after that space, the class name which user has to decide.Before deciding name, there are some condition while selecting the name of program or name of class.&lt;b&gt; Firstly&lt;/b&gt;, the first letter should be capital always if there is a single word. &lt;b&gt;Secondly&lt;/b&gt;, If there are two or more words you cannot give space but you can use underscore like this &lt;b&gt;Coding_start_up&lt;/b&gt; and if you don&#39;t want to use underscore then you can follow this standard &lt;b&gt;CodingStartUp&lt;/b&gt;. &lt;b&gt;Thirdly&lt;/b&gt;,and &lt;b&gt;most importantly&lt;/b&gt;, you can not use space in any case while selecting the name.&lt;/p&gt;
&lt;!--/wp:paragraph--&gt;&lt;/div&gt;&lt;/div&gt;
&lt;!--/wp:group--&gt;

&lt;!--wp:heading {&quot;level&quot;:3}--&gt;
&lt;h3&gt;What is public static void main (String args[]) in java ?&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMnefqPiJ3ewKsdLYER0xmNxBLFJnVrqVp4plOW_H-pis0COpdJfNcEi6pTItmX8dBHh6scPSzx5fDTPrxwgeB623V4QBN-CVIKPeZEVQRtT59CI-3yvoMDGxQNC4iPx57lhWhP5sqcTxJ/s1280-rw/what-is-public-static-void-main-in-java.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;what is public static void main in java&quot; border=&quot;0&quot; class=&quot;lazy&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; data-src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMnefqPiJ3ewKsdLYER0xmNxBLFJnVrqVp4plOW_H-pis0COpdJfNcEi6pTItmX8dBHh6scPSzx5fDTPrxwgeB623V4QBN-CVIKPeZEVQRtT59CI-3yvoMDGxQNC4iPx57lhWhP5sqcTxJ/w640-h360-rw/what-is-public-static-void-main-in-java.webp&quot; height=&quot;360&quot; title=&quot;what is public static void main in java&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h3&gt;&lt;/h3&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&amp;nbsp;After considering the first line of code , now we will be considering second line. In second line, we got public static void main (String args[])&lt;span style=&quot;font-weight: normal;&quot;&gt; what it means, why we use it.&lt;/span&gt;&lt;/p&gt;
&lt;!--/wp:paragraph--&gt;

&lt;!--wp:paragraph--&gt;
&lt;p&gt;First one is &lt;b&gt;public&lt;/b&gt;, it is a pre-defined keyword and access specifier. Access specifier is an term which we use to define access range of class and method.  Now the Question arises that &lt;b&gt;How many access specifier are in java?&lt;/b&gt; There are total &lt;b&gt;Four&lt;/b&gt; access specifier i.e Default, Public, Private and Protected. Now here only, we will be talking about Public access specifier. Public access specifier define by its name only that everyone can you and from everywhere like public transport. Now, we will discuss it &lt;b&gt;why main method is public in java?&lt;/b&gt;&lt;/p&gt;
&lt;!--/wp:paragraph--&gt;

&lt;!--wp:heading {&quot;level&quot;:4}--&gt;
&lt;h4&gt;&lt;b&gt;why main method is public in java&lt;/b&gt;?&lt;/h4&gt;
&lt;!--/wp:heading--&gt;

&lt;!--wp:paragraph--&gt;
&lt;p&gt;We use public access specifier only because main method is an entry point for running a program in JVM. To access the program details which we have  written should accessible to JVM so that we use public with main. Now we will talk about Static.&lt;/p&gt;
&lt;!--/wp:paragraph--&gt;

&lt;!--wp:heading {&quot;level&quot;:4}--&gt;
&lt;h4&gt;&lt;b&gt;&lt;b&gt;What is Static modifier and use in java code ?&lt;/b&gt;&lt;/b&gt;&lt;/h4&gt;
&lt;!--/wp:heading--&gt;

&lt;!--wp:paragraph--&gt;
&lt;p&gt;As the Question tells that Static is modifier and pre-define keyword. It is assign for the management of the object memory. In other words,  Static is used for object memory management. Now, The question arises that &lt;b&gt;What is the use of it? &lt;/b&gt;Static means that on creation of an object. This means that when we create a method in java we have to create its instance (object). While using main method we also have to create object in java for using it. If we create, then ambiguity we be create. So to avoid that we use static modifier that will run code without creating an object.&lt;/p&gt;
&lt;!--/wp:paragraph--&gt;

&lt;!--wp:heading {&quot;level&quot;:4}--&gt;
&lt;h4&gt;&lt;b&gt;What is void in java ?&lt;/b&gt;&lt;/h4&gt;
&lt;!--/wp:heading--&gt;

&lt;!--wp:paragraph--&gt;
&lt;p&gt;Void is a data type which give no return value. We are using void with main method because this method does not give any return value. Now, That is the reason we use void with main method.&lt;/p&gt;
&lt;!--/wp:paragraph--&gt;

&lt;!--wp:heading {&quot;level&quot;:4}--&gt;
&lt;h4&gt;&lt;b&gt;What is String []args in java ?&lt;/b&gt;&lt;/h4&gt;
&lt;!--/wp:heading--&gt;

&lt;!--wp:paragraph--&gt;
&lt;p&gt;Now, Here String []args is parameter for the main function. This parameter comes with two section words i.e &lt;b&gt;String&lt;/b&gt; and &lt;b&gt;[] args&lt;/b&gt;. &lt;b&gt;String&lt;/b&gt; is data type and also a pre-define class in java. &lt;b&gt;[] args&lt;/b&gt; is an array with the name called &lt;b&gt;args&lt;/b&gt;. We can use other names which we want to but we should use &lt;b&gt;[]&lt;/b&gt; these brackets because it define array. We can also use these bracket after name declaration like this &lt;b&gt;String codingstartup[]&lt;/b&gt;. &lt;b&gt;String []args &lt;/b&gt;is used in main method for passing command line args while running a program. Now One question came to our mind that Why we use String data type in main method in java? &lt;/p&gt;
&lt;!--/wp:paragraph--&gt;

&lt;!--wp:heading {&quot;level&quot;:4}--&gt;
&lt;h4&gt;Why we use String data type in main method in java?&lt;/h4&gt;
&lt;!--/wp:heading--&gt;

&lt;!--wp:paragraph--&gt;
&lt;p&gt;As we Know that Java is comes from C and C++. In C and C++, We can declare int in main method and it accepts that. The reason behind this is that C and C++ are both directly connected OS. While passing int parameter it will return value to OS. That are only two value i.e &lt;b&gt;exit code&lt;/b&gt; and &lt;b&gt;exit status&lt;/b&gt;. These values help to tell that program have successfully ended or error terminated. After getting these codes, OS will cleans up the process that is allocated to task. When &lt;b&gt;exit code &lt;/b&gt;return 0 that means code has been successfully run without ant error. On another hand, non zero status tells about the error or problem.&lt;/p&gt;
&lt;!--/wp:paragraph--&gt;

&lt;!--wp:paragraph--&gt;
&lt;p&gt;In Java, we know that JVM runs the code in &lt;b&gt;main thread&lt;/b&gt; and no direct interaction between OS and our code. Moreover, There is no direct link in  resource and memory allocation between program and OS. JVM is directly connected to the hardware. Then JVM complete the work of main method by sending status of &lt;b&gt;exit code&lt;/b&gt; and &lt;b&gt;exit status &lt;/b&gt;with the help of one lib i.e &lt;b&gt;java.lang.Runtime.exit&lt;/b&gt;. Moreover, if you want full explanation you can visit this site &lt;a href=&quot;https://www.geeksforgeeks.org/understanding-public-static-void-mainstring-args-in-java/&quot;&gt;Why we use String data type in main method in java?&lt;/a&gt;&lt;/p&gt;
&lt;!--/wp:paragraph--&gt;

&lt;!--wp:heading--&gt;
&lt;h2&gt;&lt;b&gt;Conclusion&lt;/b&gt;&lt;/h2&gt;
&lt;!--/wp:heading--&gt;

&lt;!--wp:paragraph--&gt;
&lt;p&gt;On the ending note, I would like to say that java language is a puzzle. More you you solving it , more you getting about it. This from my side. I hope you like to read my article and you get alot of knowledge from this article. &lt;/p&gt;
&lt;!--/wp:paragraph--&gt;</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/8116817358133756142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2020/09/simple-java-program-some-facts-that.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/8116817358133756142'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/8116817358133756142'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2020/09/simple-java-program-some-facts-that.html' title='Simple Java Program | Some Facts That Nobody Told You - CodingStartup'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMnefqPiJ3ewKsdLYER0xmNxBLFJnVrqVp4plOW_H-pis0COpdJfNcEi6pTItmX8dBHh6scPSzx5fDTPrxwgeB623V4QBN-CVIKPeZEVQRtT59CI-3yvoMDGxQNC4iPx57lhWhP5sqcTxJ/s72-w320-h180-c-rw/what-is-public-static-void-main-in-java.webp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-4770457571988719690</id><published>2020-07-29T12:56:00.035+05:30</published><updated>2020-09-01T20:23:18.666+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><title type='text'>Some Important Rules To Start A Project Of Android Studio In 2020.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTInGow9RZulREWgQvI6yq_-sh-YVrsk9FFWwH6VMqDXlgail0EK-0DBlxd4ROQIjBLJnzt1yYsARXj_mKSPwyr6bygLiZgbiwCLIV8V14NHoiRK08f6x2N84ImrQWmrD8R9XBHuIuXcsy/s1000-rw/Some-Important-Rules-To-Start-A-Project-Of-Android-Studio-In-2020.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Some Important Rules To Start A Project Of Android Studio In 2020.&quot; border=&quot;0&quot; class=&quot;lazy&quot; data-original-height=&quot;1000&quot; data-original-width=&quot;1000&quot; data-src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTInGow9RZulREWgQvI6yq_-sh-YVrsk9FFWwH6VMqDXlgail0EK-0DBlxd4ROQIjBLJnzt1yYsARXj_mKSPwyr6bygLiZgbiwCLIV8V14NHoiRK08f6x2N84ImrQWmrD8R9XBHuIuXcsy/w320-h320-rw/Some-Important-Rules-To-Start-A-Project-Of-Android-Studio-In-2020.webp&quot; height=&quot;320&quot; title=&quot;Some Important Rules To Start A Project Of Android Studio In 2020.&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;h2 style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;In This Topic: &lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In This Topic, We will be discussing about the trend of
    &lt;b&gt;App Development &lt;/b&gt;in &lt;b&gt;2020&lt;/b&gt;. How much app development is important
    for an IT person and we will also see some numbers or percentages. Last but
    not the least, we will be discussing
    &lt;b&gt;Some Important Rules To Start A Project Of Android Studio &lt;/b&gt;that will
    help while uploading on &lt;b&gt;Playstore&lt;/b&gt;.
    &lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;h2 style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Trends:&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
As we know that, Technology is getting vast and our smart phones are getting smarter and smarter day by day. All customer need everything in one hand so app is only solution to this.because in our smart phones we use apps only whether it is gaming app, social media app, banking app,shopping app, traveling app or some business apps.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; Now if we talk about the percentage of user which spend on the apps i.e &lt;b&gt;more than 60% &lt;/b&gt;and rest are on other things. Mostly those people spend more time on apps who doesn&#39;t have laptops or who does not need laptop for there work. If we talk about the social media apps that are mostly run or accessed by apps only by&amp;nbsp; the user. &lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;If you are from IT or you are planning to come in IT field, you should definitely go for app development. Before you start with android you must know about the basic one programming language i.e &lt;b&gt;Java &lt;/b&gt;because you need to now about the java programming language and if you want to learn java I have some articles on java programming language from basic you can learn that also from here &lt;a href=&quot;https://codingstartupabheer.blogspot.com/search/label/Java&quot; target=&quot;_blank&quot;&gt;Java Programming &lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/s2_6P2XCSDM/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/s2_6P2XCSDM?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;h2&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Steps To Create a project in android studio:&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;h3&gt;
&lt;b&gt;Step 1&lt;/b&gt;:-&lt;/h3&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; Open Android Studio&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To Open Android Studio , click on search at left bottom of screen and type android studio.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; double click on that first option.&lt;br /&gt;
&lt;b&gt;Note&lt;/b&gt;:- Make sure that you should have good internet connection while using android studio because it require internet while working.&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnyxQpT2TcR6Y-vBxjOhkBbARm9VTqETKGYrpQ9FklEpuZ2uMEkMiGn2m_JQCXBuqsjN8KFdM29VD7iM7gcfs-ldcFTKKjikIBdKh3GFN_pedwPy-tpWImlbT-CJKTOBoK3BC3LoIRf3e1/s1366-rw/ezgif.com-gif-maker.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Some Important Rules To Start A Project Of Android Studio In 2020.&quot; border=&quot;0&quot; class=&quot;lazy&quot; data-original-height=&quot;768&quot; data-original-width=&quot;1366&quot; data-src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnyxQpT2TcR6Y-vBxjOhkBbARm9VTqETKGYrpQ9FklEpuZ2uMEkMiGn2m_JQCXBuqsjN8KFdM29VD7iM7gcfs-ldcFTKKjikIBdKh3GFN_pedwPy-tpWImlbT-CJKTOBoK3BC3LoIRf3e1/w400-h225-rw/ezgif.com-gif-maker.webp&quot; height=&quot;225&quot; title=&quot;Android studio&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;h3&gt;
&lt;b&gt;Step 2&lt;/b&gt;:- &lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;This type layout will be shown on the screen. Now click on first option from the screen i.e&lt;b&gt; Start a new Android Studio Project&lt;/b&gt;. &lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgupB2grkuTQrPh1HF80wk1YsynyOZEmt1Y-C5KnsnMPWvQJqybHVlAqGp4rFYptXfQ_98SaZbVGNPddoH_l5JKlDL7Wm1Yzgy8K_l-p7g3Z6l7N14QODB1I5EJaXD7AaavL8XT4HQOb1JJ/s1366-rw/P3.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Some Important Rules To Start A Project Of Android Studio In 2020.&quot; border=&quot;0&quot; class=&quot;lazy&quot; data-original-height=&quot;768&quot; data-original-width=&quot;1366&quot; data-src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgupB2grkuTQrPh1HF80wk1YsynyOZEmt1Y-C5KnsnMPWvQJqybHVlAqGp4rFYptXfQ_98SaZbVGNPddoH_l5JKlDL7Wm1Yzgy8K_l-p7g3Z6l7N14QODB1I5EJaXD7AaavL8XT4HQOb1JJ/w400-h225-rw/P3.webp&quot; height=&quot;225&quot; title=&quot;Android Studio&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;h3&gt;
&lt;b&gt;Step 3&lt;/b&gt;:- &lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; After clicking that, a new type of layout will&amp;nbsp; be shown and then we have select a type activity we want in application. Now you have select &lt;b&gt;Empty Activity&amp;nbsp; &lt;/b&gt;and click on &lt;b&gt;Next&lt;/b&gt; button.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;Now let me tell you about the activity in app. An activity is the combination of two parts i.e &lt;b&gt;Java &lt;/b&gt;and &lt;b&gt;XML&lt;/b&gt;. Java is used for controlling part and XML is used for design or we can say that it used to provide interface of application.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXYnufs0c_XVZMXCcFsDuqkIsvSBc9xLwnofN2f1J8K6oYWNE-KzJLl0YA3nd1E0fSJ-NaEZC1_pjjXckFSMAHlUormG8WV1gdbMKNFRjzHUaznpksJdrTjei1ecoLNMAiHfkQ5aovGbxs/s1366-rw/P5.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Some Important Rules To Start A Project Of Android Studio In 2020.&quot; border=&quot;0&quot; class=&quot;lazy&quot; data-original-height=&quot;768&quot; data-original-width=&quot;1366&quot; data-src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXYnufs0c_XVZMXCcFsDuqkIsvSBc9xLwnofN2f1J8K6oYWNE-KzJLl0YA3nd1E0fSJ-NaEZC1_pjjXckFSMAHlUormG8WV1gdbMKNFRjzHUaznpksJdrTjei1ecoLNMAiHfkQ5aovGbxs/w400-h225-rw/P5.png&quot; height=&quot;225&quot; title=&quot;Android Studio&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;h3&gt;
&lt;b&gt;Step 4:&amp;nbsp; &lt;/b&gt;&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;After selecting the type of activity , then you we get the &lt;b&gt;Configure Your Project &lt;/b&gt;page . In this page, you have set the name of project and application name in one field i.e &lt;b&gt;Name&lt;/b&gt;. Then you have set the package name of your application.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Let me tell you that you are setting up an important field which will help when you try to upload an app on &lt;b&gt;Playstore&lt;/b&gt;. There are some set of rules while setting up package name.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;Com. :- Com is used for the commercial applications. While uploading the application you have to upload the some certificate or proof that you are an official company. For example: &lt;b&gt;com.example.myapplication&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Info. :- Info is used for apps which provide some information to user and for this you doesn&#39;t require any proof or License. For example: &lt;b&gt;info.codingstartup.abheer&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Edu. :- Edu is used for educational apps. For example: &lt;b&gt;edu.codingstartup.abheer&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Mil. :- Mil is used for military purpose apps. For example: &lt;b&gt;mil.indian.army&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&amp;nbsp;&lt;/b&gt;And so on but you can also use any thing instead of this but your app will not uploaded. And one more trick while setting up package name you should check that your package is unique or not. your &lt;b&gt;package name&lt;/b&gt; must be unique.To check you have just type your package name on playstore search bar if no apps comes then you package name is unique.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
After that you have select language in which you want to work. Last but not the least, &lt;b&gt;Minimum SDK &lt;/b&gt;is that minimum android version in which you app will run. For example we select Android 4.4 now from this version to latest version of android the will run. Lower version will not be supported.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
After filling details click on &lt;b&gt;Next &lt;/b&gt;button.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2nCrb-luF4vvy4zJd6W1EOlBnx7xP2x_VX39B2XykWxvPV2k59W18ADyTaSEgCcL4ZnyPpACupjTm1Jfp6exEN17_94Fq79gjf63WgCRcpBcysgDDcqGrpHA9024n3e4Y7spEYZYwQ158/s1366-rw/P6.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Some Important Rules To Start A Project Of Android Studio In 2020.&quot; border=&quot;0&quot; class=&quot;lazy&quot; data-original-height=&quot;768&quot; data-original-width=&quot;1366&quot; data-src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2nCrb-luF4vvy4zJd6W1EOlBnx7xP2x_VX39B2XykWxvPV2k59W18ADyTaSEgCcL4ZnyPpACupjTm1Jfp6exEN17_94Fq79gjf63WgCRcpBcysgDDcqGrpHA9024n3e4Y7spEYZYwQ158/w400-h225-rw/P6.webp&quot; height=&quot;225&quot; title=&quot;Android Studio&quot; width=&quot;400&quot; /&gt;&lt;b&gt;&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;h3&gt;
&lt;b&gt;Step 5&lt;/b&gt;:- &lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Now you have wait for something your project is building. It will also use internet to build gradle.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMUGJlPHa06o0YZ_DmnNWWYqZQzmL_ZnCspuZagRNTROUjz8TnTwhP0ZQomThJ4xcPlUgqf1y3VZL8_d-ebq6JXM7Js-kCBnBEJhJu0bPzlyjAG4iX5RNOW22GRELemiCiJTVI4xHBm-HM/s1366/P7.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Some Important Rules To Start A Project Of Android Studio In 2020.&quot; border=&quot;0&quot; class=&quot;lazy&quot; data-original-height=&quot;768&quot; data-original-width=&quot;1366&quot; data-src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMUGJlPHa06o0YZ_DmnNWWYqZQzmL_ZnCspuZagRNTROUjz8TnTwhP0ZQomThJ4xcPlUgqf1y3VZL8_d-ebq6JXM7Js-kCBnBEJhJu0bPzlyjAG4iX5RNOW22GRELemiCiJTVI4xHBm-HM/w400-h225/P7.webp&quot; height=&quot;225&quot; title=&quot;Android Studio&quot; width=&quot;400&quot; /&gt;&lt;b&gt;&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;h3&gt;
&lt;b&gt;Step 6&lt;/b&gt;: &lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;After building gradle , you project will look like this.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhuJjblQjXTfoU4hgNR46cZneayUgbl7SIOqnpvTqIdtbmsuRVAlUm3DrTKdkPV2FDUfb1zJnsnkGEpzx6Jc4NnGGto16IcvFMIB_4pKfb0VmVB2rag_LaSVuMPoBVab6_NGUekGOmq5ZY/s1366-rw/P8.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Some Important Rules To Start A Project Of Android Studio In 2020.&quot; border=&quot;0&quot; class=&quot;lazy&quot; data-original-height=&quot;768&quot; data-original-width=&quot;1366&quot; data-src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhuJjblQjXTfoU4hgNR46cZneayUgbl7SIOqnpvTqIdtbmsuRVAlUm3DrTKdkPV2FDUfb1zJnsnkGEpzx6Jc4NnGGto16IcvFMIB_4pKfb0VmVB2rag_LaSVuMPoBVab6_NGUekGOmq5ZY/w400-h225-rw/P8.webp&quot; height=&quot;225&quot; title=&quot;Android Stuido&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;/span&gt;I hope you get all the Important Rules To Start A Project Of Android Studio In 2020. If you like this content plz subscribe this website and share with your friends and also subscribe my YouTube channel for more updates.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/4770457571988719690/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2020/07/some-important-rules-to-start-project.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/4770457571988719690'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/4770457571988719690'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2020/07/some-important-rules-to-start-project.html' title='Some Important Rules To Start A Project Of Android Studio In 2020.'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/s2_6P2XCSDM/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-3770187671486070599</id><published>2019-06-17T00:22:00.002+05:30</published><updated>2020-07-04T02:09:18.190+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Pascal&#39;s Triangle in java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;height: 0px; text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;Pascal&#39;s Triangle in java.&lt;/span&gt;&lt;/h2&gt;
&lt;h2 style=&quot;height: 0px; text-align: left;&quot;&gt;
&lt;/h2&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h2 style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: medium; font-weight: 400;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;100% Working Code and Projects.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;if you need any help about project and Application Contact Shelly at:+917888361589.&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Java Code Given Below:-&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;public class&lt;/span&gt; Pattern {&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;
&lt;/span&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public static void&lt;/span&gt; main(String[] Abheer) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; int&amp;nbsp;&lt;/span&gt; abheer = 1;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i = 0; i &amp;lt;7; i++) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; space = 1; space &amp;lt; 7 - i; ++space) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.print(&lt;span style=&quot;color: #f1c232;&quot;&gt;&quot;&amp;nbsp; &quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; j = 0; j &amp;lt;= i; j++) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (j == 0 || i == 0)&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; abheer = 1;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;}&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; abheer = abheer * (i - j + 1) / j;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.printf(&lt;span style=&quot;color: #f1c232;&quot;&gt;&quot;%4d&quot;&lt;/span&gt;, abheer);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Output:-&lt;/b&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp;1&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp;1&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp;3&amp;nbsp; &amp;nbsp;1&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp;6&amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp;1&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp;5&amp;nbsp; 10&amp;nbsp; 10&amp;nbsp; &amp;nbsp;5&amp;nbsp; &amp;nbsp;1&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp;6&amp;nbsp; 15&amp;nbsp; 20&amp;nbsp; 15&amp;nbsp; &amp;nbsp;6&amp;nbsp; &amp;nbsp;1&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/3770187671486070599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/06/pascals-triangle-in-pattern-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/3770187671486070599'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/3770187671486070599'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/06/pascals-triangle-in-pattern-in-java.html' title='Pascal&#39;s Triangle in java'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-6864863504570829622</id><published>2019-06-17T00:07:00.002+05:30</published><updated>2020-07-16T12:06:00.459+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Floyd&#39;s Triangle in java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;height: 0px; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Floyd&#39;s Triangle in java&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h2 style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: medium; font-weight: 400;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;100% Working Code and Projects.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;h2 style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: medium; font-weight: 400;&quot;&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/h2&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;if you need any help about project and Application Contact Shelly at:+917888361589.&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h2 style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: medium; font-weight: 400;&quot;&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/h2&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Java Code Given Below:-&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;public class&lt;/span&gt; Pattern {&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public static void&lt;/span&gt; main(String[] Abheer) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&amp;nbsp;&lt;/span&gt; number = 1;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i = 1; i &amp;lt;= 5; i++) {&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; j = 1; j &amp;lt;= i; j++) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.print(number + &lt;span style=&quot;color: #f1c232;&quot;&gt;&quot; &quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ++number;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Output :-&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
1&lt;/div&gt;
&lt;div&gt;
2 3&lt;/div&gt;
&lt;div&gt;
4 5 6&lt;/div&gt;
&lt;div&gt;
7 8 9 10&lt;/div&gt;
&lt;div&gt;
11 12 13 14 15&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/6864863504570829622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/06/floyds-triangle-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/6864863504570829622'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/6864863504570829622'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/06/floyds-triangle-in-java.html' title='Floyd&#39;s Triangle in java'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-2631511526249668572</id><published>2019-06-16T23:57:00.000+05:30</published><updated>2020-07-16T12:06:22.109+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Full Pyramid using @ in java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;Full Pyramid using @ in java.&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;h2 style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: medium; font-weight: 400;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;100% Working Code and Projects.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;if you need any help about project and Application Contact Shelly at:+917888361589.&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Java Code Given Below:-&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;public class&lt;/span&gt; Pattern {&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; public static void&lt;/span&gt; main(String[] Abheer) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&amp;nbsp;&lt;/span&gt; k = 0;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i = 1; i &amp;lt;=5; ++i,k=0) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; space = 1; space &amp;lt;= 5 - i; ++space) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.print(&lt;span style=&quot;color: #f1c232;&quot;&gt;&quot;&amp;nbsp; &quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;while&lt;/span&gt;(k != 2 * i - 1) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.print(&lt;span style=&quot;color: #f1c232;&quot;&gt;&quot;@ &quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ++k;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Output :-&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@ @ @&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @ @ @ @ @&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; @ @ @ @ @ @ @&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;@ @ @ @ @ @ @ @ @&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/2631511526249668572/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/06/full-pyramid-using-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/2631511526249668572'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/2631511526249668572'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/06/full-pyramid-using-in-java.html' title='Full Pyramid using @ in java'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-3437485602864001987</id><published>2019-06-15T15:56:00.001+05:30</published><updated>2020-07-16T12:05:35.523+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Inverted Half Pyramid using @</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;Inverted Half Pyramid using @&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;h2 style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: medium; font-weight: 400;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;100% Working Code and Projects.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;if you need any help about project and Application Contact Shelly at:+917888361589.&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Java Code Given Below:-&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;public class&lt;/span&gt; Pattern {&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public static void main(String[] Abheer) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&amp;nbsp;i =5; i &amp;gt;= 1; --i) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; j = 1; j &amp;lt;= i; ++j) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.print(&lt;span style=&quot;color: #f1c232;&quot;&gt;&quot;@ &quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Output:-&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
@ @ @ @ @&lt;/div&gt;
&lt;div&gt;
@ @ @ @&lt;/div&gt;
&lt;div&gt;
@ @ @&lt;/div&gt;
&lt;div&gt;
@ @&lt;/div&gt;
&lt;div&gt;
@&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Explanation :-&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;First,Two Loop we are using for rows and second loop is for column . Second, we are using first loop in reverse to invert the pattern.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/3437485602864001987/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/06/inverted-half-pyramid-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/3437485602864001987'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/3437485602864001987'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/06/inverted-half-pyramid-using.html' title='Inverted Half Pyramid using @'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-845858360642807481</id><published>2019-06-15T13:09:00.000+05:30</published><updated>2020-07-16T12:07:08.994+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Half Pyramid using numbers in java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;Half Pyramid using numbers in java&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;div&gt;
&lt;h2 style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: medium; font-weight: 400;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;100% Working Code and Projects.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;if you need any help about project and Application Contact Shelly at:+917888361589.&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Java Code Given Below:-&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;public class&lt;/span&gt; Pattern&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public static void&lt;/span&gt; main(String[] args)&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i = 1; i &amp;lt;=5; ++i)&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; for(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; j = 1; j &amp;lt;= i; ++j)&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.print(i +&lt;span style=&quot;color: #f1c232;&quot;&gt; &quot; &quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Output:-&lt;/h3&gt;
&lt;div&gt;
&lt;div&gt;
1&lt;/div&gt;
&lt;div&gt;
2 2&lt;/div&gt;
&lt;div&gt;
3 3 3&lt;/div&gt;
&lt;div&gt;
4 4 4 4&lt;/div&gt;
&lt;div&gt;
5 5 5 5 5&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Explanation :-&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
In First Loop we are using for rows and second loop is for column . Second, We have use the value of i variable for printing the number&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/845858360642807481/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/06/half-pyramid-using-numbers-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/845858360642807481'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/845858360642807481'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/06/half-pyramid-using-numbers-in-java.html' title='Half Pyramid using numbers in java'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-4260509884555402324</id><published>2019-06-14T01:30:00.002+05:30</published><updated>2020-07-16T12:07:17.831+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Half Pyramid using @ in java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;Half Pyramid using &quot;@&quot; in java&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;h2 style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: medium; font-weight: 400;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;100% Working Code and Projects.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;if you need any help about project and Application Contact Shelly at:+917888361589.&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Java Code Given Below:-&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;public class&lt;/span&gt; Pattern&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;{&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public static void&lt;/span&gt; main(String []Abheer)&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;for(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i = 1; i &amp;lt;=5; ++i)&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; {&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt; for(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; j = 1; j &amp;lt;= i; ++j)&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;{&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.print(&lt;span style=&quot;color: #f1c232;&quot;&gt;&quot;@ &quot;&lt;/span&gt;);&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println();&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Output :-&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
@&lt;/div&gt;
&lt;div&gt;
@ @&lt;/div&gt;
&lt;div&gt;
@ @ @&lt;/div&gt;
&lt;div&gt;
@ @ @ @&lt;/div&gt;
&lt;div&gt;
@ @ @ @ @&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Explanation :-&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
In First Loop we are using for rows and second loop is for column .&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/4260509884555402324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/06/half-pyramid-using-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/4260509884555402324'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/4260509884555402324'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/06/half-pyramid-using-in-java.html' title='Half Pyramid using @ in java'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-5779168308697470851</id><published>2019-03-27T19:29:00.000+05:30</published><updated>2020-07-16T12:07:27.655+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>For Loop in Java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;For Loop in Java.&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;h2 style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: medium; font-weight: 400;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;100% Working Code and Projects.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h4 style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-weight: 400;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;if you need any help about project and Application Contact Shelly at:+917888361589.&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Java Code given below:-&lt;/h3&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;package&lt;/span&gt; CodingStartupAbheer;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;import&lt;/span&gt; java.util.Scanner;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;public class &lt;/span&gt;ForLoop {&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public static void&lt;/span&gt; main(String Abheer[]) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Scanner S = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; Scanner(System.&lt;span style=&quot;color: lime;&quot;&gt;in&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Enter the name&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String a = S.next();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;How many times you want to print&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; b=S.nextInt();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i=1;i&amp;lt;=b;i++)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(a);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Output :-&lt;/h3&gt;
&lt;div&gt;
&lt;div&gt;
Enter the name&lt;/div&gt;
&lt;div&gt;
CodingStartup&lt;/div&gt;
&lt;div&gt;
How many times you want to print&lt;/div&gt;
&lt;div&gt;
4&lt;/div&gt;
&lt;div&gt;
CodingStartup&lt;/div&gt;
&lt;div&gt;
CodingStartup&lt;/div&gt;
&lt;div&gt;
CodingStartup&lt;/div&gt;
&lt;div&gt;
CodingStartup&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Explanation:-&lt;/h3&gt;
&lt;div&gt;
In this loop, 1) we&amp;nbsp;initialize the value&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
2) give the condition&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
3) we increment the value&lt;/div&gt;
&lt;div&gt;
this will work only when the condition is true. when the condition get false it will stop executing the code.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/5779168308697470851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/03/for-loop-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/5779168308697470851'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/5779168308697470851'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/03/for-loop-in-java.html' title='For Loop in Java'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-5204197205047022998</id><published>2019-03-24T20:05:00.001+05:30</published><updated>2020-07-16T12:08:59.734+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>While Loop in Java.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;While Loop in Java.&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;h2 style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: medium; font-weight: 400;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;100% Working Code and Projects.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h4 style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-weight: 400;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;if you need any help about project and Application Contact Shelly at:+917888361589.&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Java Code given below:-&lt;/h3&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;package&lt;/span&gt; CodingStartupAbheer;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;import&lt;/span&gt; java.util.Scanner;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;public class&lt;/span&gt; WhileLoop {&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public static void&lt;/span&gt; main(String Abheer[]) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Scanner s = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; Scanner(System.&lt;span style=&quot;color: lime;&quot;&gt;in&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Enter your name&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String a = s.nextLine();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;How many times yo want to print name&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; q = s.nextInt();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i = 1;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;while&lt;/span&gt; (i &amp;lt;= q) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(a);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i++;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Output:-&lt;/h3&gt;
&lt;div&gt;
&lt;div&gt;
Enter your name&lt;/div&gt;
&lt;div&gt;
Abheer&lt;/div&gt;
&lt;div&gt;
How many times yo want to print name&lt;/div&gt;
&lt;div&gt;
2&lt;/div&gt;
&lt;div&gt;
Abheer&lt;/div&gt;
&lt;div&gt;
Abheer&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Explanation:-&lt;/h3&gt;
&lt;div&gt;
In this loop, firstly the condition will be checked then it will execute the inner statement in the blocks. The drawback of Do While loop is over come in this loop.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/5204197205047022998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/03/while-loop-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/5204197205047022998'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/5204197205047022998'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/03/while-loop-in-java.html' title='While Loop in Java.'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-5359125371047028657</id><published>2019-03-10T13:09:00.000+05:30</published><updated>2020-07-16T12:09:10.938+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Do While Loop in Java.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;Do While Loop in Java.&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;h2 style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-size: medium; font-weight: 400;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;100% Working Code and Projects.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h4 style=&quot;font-family: &amp;quot;times new roman&amp;quot;; font-weight: 400;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;if you need any help about project and Application Contact Shelly at:+917888361589.&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Java Code Below :-&lt;/h3&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;package&lt;/span&gt; CodingStartupAbheer;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;import&lt;/span&gt; java.util.Scanner;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;public class&lt;/span&gt; DoWhile {&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public static void&lt;/span&gt; main (String Abheer[])&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Scanner a= &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; Scanner(System.&lt;span style=&quot;color: lime;&quot;&gt;in&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Enter your name&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String c= a.nextLine();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;How many times you want to print your name&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; b=a.nextInt();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i=1;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; do&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(c);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i++;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;span style=&quot;color: blue;&quot;&gt;while&lt;/span&gt;(i&amp;lt;=b);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Output:-&lt;/h3&gt;
&lt;div&gt;
&lt;div&gt;
Enter your name&lt;/div&gt;
&lt;div&gt;
Coding Startup&lt;/div&gt;
&lt;div&gt;
How many times you want to print your name&lt;/div&gt;
&lt;div&gt;
3&lt;/div&gt;
&lt;div&gt;
Coding Startup&lt;/div&gt;
&lt;div&gt;
Coding Startup&lt;/div&gt;
&lt;div&gt;
Coding Startup&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Explanation:-&lt;/h3&gt;
&lt;div&gt;
This is a first loop which was invented. In this loop, first it will execute the main part that have to be executed then it will check the condition. In this once the statement or that part will be executed whether the condition is true ore not. if the condition is true then it will work properly.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/5359125371047028657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/03/do-while-loop-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/5359125371047028657'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/5359125371047028657'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/03/do-while-loop-in-java.html' title='Do While Loop in Java.'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-8217063138211127742</id><published>2019-03-08T15:07:00.001+05:30</published><updated>2020-07-16T12:09:24.626+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Switch Case in Java.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;Switch Case in Java.&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;text-align: left; text-indent: 0px;&quot;&gt;
&lt;h2 style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;; font-size: medium; font-style: normal; font-weight: 400; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;100% Working Code and Projects.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;; font-size: medium; font-style: normal; font-weight: 400; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;div style=&quot;margin: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h4 style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;; font-size: medium; font-style: normal; font-weight: 400; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;if you need any help about project and Application Contact Shelly at:+917888361589.&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;; font-size: medium; font-style: normal; font-weight: 400; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;; font-size: medium; font-style: normal; font-weight: 400; letter-spacing: normal; text-align: left; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
Java Code :-&lt;/h3&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;package&lt;/span&gt; CodingStartupAbheer;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;import&lt;/span&gt; java.util.Scanner;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;public class&lt;/span&gt; SwitchCase {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public static void &lt;/span&gt;main (String []Abheer)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Scanner Abheer1= &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; Scanner(System.&lt;span style=&quot;color: lime;&quot;&gt;in&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Enter number from 1 to 7&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; int &lt;/span&gt;a= Abheer1.nextInt();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;switch&lt;/span&gt; (a)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; case&lt;/span&gt; 1:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;.&lt;span style=&quot;color: lime;&quot;&gt;ou&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;t&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Sunday&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; case &lt;/span&gt;2:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;.&lt;span style=&quot;color: lime;&quot;&gt;ou&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;t&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Monday&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;case&lt;/span&gt; 3:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;.&lt;span style=&quot;color: lime;&quot;&gt;o&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;ut&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Tuesday&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;case &lt;/span&gt;4:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Wednesday&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;case&lt;/span&gt; 5:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Thursday&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; case&lt;/span&gt; 6:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Friday&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;case&lt;/span&gt; 7:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Saturday&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;default&lt;/span&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Not Valid&amp;nbsp;number&quot;&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;Output :-&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;Enter number from 1 to 7&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;times new roman&amp;quot;;&quot;&gt;
&lt;div&gt;
7&lt;/div&gt;
&lt;div&gt;
Saturday&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Explanation :-&lt;/h3&gt;
&lt;div&gt;
&amp;nbsp;In this program, when we enter number from 1 to 7 then it will directly jump to that case and execute that code which is inside the that case or block.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;; font-size: medium; font-style: normal; font-weight: 400; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;; font-size: medium; font-style: normal; font-weight: 400; letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/8217063138211127742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/03/switch-case-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/8217063138211127742'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/8217063138211127742'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/03/switch-case-in-java.html' title='Switch Case in Java.'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-5671480619037343240</id><published>2019-02-20T19:09:00.001+05:30</published><updated>2020-07-16T12:09:37.025+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Nested Else If  Statements in Java.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;Nested Else If&amp;nbsp; Statements in Java.&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h2&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;100% Working Code and Projects.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;if you need any help about project and Application Contact Shelly at:+917888361589.&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Java Code Given below :-&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;package&lt;/span&gt; abheer;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;public class&lt;/span&gt; NestedIfelse {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public static void main(String args[])&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int &lt;/span&gt;English=40;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; int &lt;/span&gt;Maths=70;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; int&lt;/span&gt; Total=70;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;(Total&amp;gt;45)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;(Maths&amp;gt;60)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; if&lt;/span&gt;(English&amp;gt;60)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Mobile&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt;{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Cycle&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; else&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;No Cycle&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; else&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;nothing&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Output :-&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Cycle&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Explanation:-&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;In this program, we are using if else statement within the if else statement. Now, in this , there will be more than one condition and every condition will be checked. If one condition gets false than that else part of that if statement will be executed. if first condition gets false then nothing will executed except else part of that if.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/5671480619037343240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/02/nested-else-if-statements-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/5671480619037343240'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/5671480619037343240'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/02/nested-else-if-statements-in-java.html' title='Nested Else If  Statements in Java.'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-8790277777251089266</id><published>2019-02-20T18:14:00.002+05:30</published><updated>2020-07-16T12:09:56.118+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Else If ladder Statements in Java.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;Else If ladder Statements in Java.&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2 style=&quot;font-size: xx-large;&quot;&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;100% Working Code and Projects.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h4&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;if you need any help about project and Application Contact Shelly at:+917888361589.&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;Java code below :-&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;package &lt;/span&gt;CodingStartupAbheer;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;import&lt;/span&gt; java.util.Scanner;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;public class&lt;/span&gt; ElseIfLadder {&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public static void &lt;/span&gt;main(String[] Abheer) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Scanner Abheer1 = new Scanner(System.in);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Enter the marks of English&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; English = Abheer1.nextInt();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Enter the marks of maths&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; int &lt;/span&gt;Maths = Abheer1.nextInt();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; int&lt;/span&gt; Total = English + Maths;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; if &lt;/span&gt;(Total &amp;lt; 90 &amp;amp;&amp;amp; Total &amp;gt;= 100) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Grade is A&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } &lt;span style=&quot;color: blue;&quot;&gt;else if&lt;/span&gt;(Total &amp;gt;80 &amp;amp;&amp;amp; Total&amp;lt;=90)&amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Grade is B&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;span style=&quot;color: blue;&quot;&gt;else if&lt;/span&gt;(Total&amp;gt;70 &amp;amp;&amp;amp; Total&amp;lt;=80)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Grade is C&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;span style=&quot;color: blue;&quot;&gt;else if&lt;/span&gt;(Total&amp;gt;60 &amp;amp;&amp;amp; Total&amp;lt;=70)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Grade is D&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Fail&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Output :&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
Enter the marks of English&lt;/div&gt;
&lt;div&gt;
80&lt;/div&gt;
&lt;div&gt;
Enter the marks of maths&lt;/div&gt;
&lt;div&gt;
90&lt;/div&gt;
&lt;div&gt;
Grade is B&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Explanation :-&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;In this , if one condition is true then the statements inside that condition will be executed. if all the condition get false then the else part will be executed.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/8790277777251089266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/02/else-if-ladder-statements-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/8790277777251089266'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/8790277777251089266'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/02/else-if-ladder-statements-in-java.html' title='Else If ladder Statements in Java.'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-6586296916693255246</id><published>2019-02-18T03:23:00.002+05:30</published><updated>2020-07-16T12:10:09.814+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Control Statement in Java.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;Control Statement in Java.&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h2 style=&quot;font-size: xx-large;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;100% Working Code and Projects.&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;if you need any help about project and Application Contact Shelly at:+917888361589.&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;span style=&quot;color: red; font-size: large;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #e06666; font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Control Statements&lt;b&gt;&amp;nbsp;:-&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Control Statements are the statements which are used to take some decision by the machine. Moreover it take decision that whether the code or statements should be executed or not.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
1) if statement :-&lt;/h3&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;In this, the code inside the if statement will be executed only when the condition is true.&amp;nbsp;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Syntax :&lt;/h4&gt;
&lt;div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 17.25pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;
if(condition){&lt;br /&gt;
&lt;br /&gt;
//code to be executed&lt;br /&gt;
&lt;br /&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;b style=&quot;background-color: white; font-family: Roboto, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;See the code below :-&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Java Code&amp;nbsp; :-&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;/h3&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;package&lt;/span&gt; CodingStartupAbheer;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;import &lt;/span&gt;java.util.Scanner;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;public class&lt;/span&gt; IfStatement {&lt;/b&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;public static void&lt;/span&gt; main(String[] Abheer) {&lt;/b&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Scanner Abheer1 = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; Scanner(System.in);&lt;/b&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #f1c232;&quot;&gt;&quot;Enter any number &quot;&lt;/span&gt;);&lt;/b&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;int &lt;/span&gt;a = Abheer1.nextInt();&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; int &lt;/span&gt;b = Abheer1.nextInt();&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;if &lt;/span&gt;(a &amp;gt; b) {&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #f1c232;&quot;&gt;&quot;A is larger&quot;&lt;/span&gt;);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; }&lt;/b&gt;&lt;/h4&gt;
&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Output 1 :-&lt;/b&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;div&gt;
Enter any number&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
9&lt;/div&gt;
&lt;div&gt;
Enter any number&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
2&lt;/div&gt;
&lt;div&gt;
A is larger&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h3&gt;
&lt;b&gt;Output 2 :-&lt;/b&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
Enter any number&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
1&lt;/div&gt;
&lt;div&gt;
Enter any number&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
5&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Explanation :-&lt;/h3&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; In first output, first number is larger than second number so that&#39;s why it gives the answer that A is larger. But in second output it does not give any output because condition is false that&#39;s why it does not print any output. To overcome this , if else is created.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;h3&gt;
2) if-else statement :-&lt;/h3&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; In this , if the condition is true then code which is inside the If column will be executed otherwise else part will be executed.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
Syntax :-&amp;nbsp;&amp;nbsp;&lt;/h4&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: white; line-height: 17.25pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;&quot;&gt;
if(condition){&lt;br /&gt;
&lt;br /&gt;
//code if condition is true&lt;br /&gt;
&lt;br /&gt;
}else{&lt;br /&gt;
&lt;br /&gt;
//code if condition is false&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Java Code&amp;nbsp; :-&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;package&lt;/span&gt; CodingStartupAbheer;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;import&lt;/span&gt; java.util.Scanner;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;public class&lt;/span&gt; IfStatement {&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public static void&lt;/span&gt; main(String[] Abheer) {&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Scanner Abheer1 = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; Scanner(System.in);&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #f1c232;&quot;&gt;&quot;Enter any number &quot;&lt;/span&gt;);&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; int &lt;/span&gt;a = Abheer1.nextInt();&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #f1c232;&quot;&gt;&quot;Enter any number &quot;&lt;/span&gt;);&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; int &lt;/span&gt;b = Abheer1.nextInt();&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;if &lt;/span&gt;(a &amp;gt; b) {&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out.&lt;/span&gt;println&lt;span style=&quot;color: blue;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #f1c232;&quot;&gt;&quot;A is larger&quot;&lt;/span&gt;);&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out.&lt;/span&gt;println(&lt;span style=&quot;color: #f1c232;&quot;&gt;&quot;B is larger&quot;&lt;/span&gt;);&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; }&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;}&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Output 1:-&lt;/h3&gt;
&lt;div&gt;
&lt;div&gt;
Enter any number&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
12&lt;/div&gt;
&lt;div&gt;
Enter any number&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
34&lt;/div&gt;
&lt;div&gt;
B is larger&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h3&gt;
Output 2:-&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
Enter any number&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
45&lt;/div&gt;
&lt;div&gt;
Enter any number&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
12&lt;/div&gt;
&lt;div&gt;
A is larger&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;/h2&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/6586296916693255246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/02/control-statement-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/6586296916693255246'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/6586296916693255246'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/02/control-statement-in-java.html' title='Control Statement in Java.'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-7198721218330435796</id><published>2019-02-18T02:34:00.001+05:30</published><updated>2020-07-16T12:10:22.151+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Runtime value in Java.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;How to give the Value on Runtime in Java.&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;100% Working Code and Projects.&lt;/span&gt;&lt;/h2&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;if you need any help about project and Application Contact Shelly at:+917888361589.&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; font-family: Roboto, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;See the code below :-&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Java Code&amp;nbsp; :-&lt;/span&gt;&lt;br /&gt;
package CodingStartupAbheer;&lt;br /&gt;
&lt;br /&gt;
import java.util.Scanner;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;public class &lt;/span&gt;ScannerClass {&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; public static void &lt;/span&gt;main(String[] Abheer) {&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Scanner q = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; Scanner(System.in);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Enter any number&quot;&lt;/span&gt;);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; a = q.nextInt();&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println&lt;span style=&quot;color: #bf9000;&quot;&gt;(&quot;Enter any number&quot;&lt;/span&gt;);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; b = q.nextInt();&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.&lt;/b&gt;&lt;b&gt;println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;Enter your name&quot;&lt;/span&gt;);&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String Abheer1=q.next();&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; c = a + b;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; d = a - b;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; e = a * b;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; f = a / b;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; g = a % b;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(Abheer1);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #f1c232;&quot;&gt;&quot;The Addition of two number you have entered is : &quot;&lt;/span&gt; + c);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #f1c232;&quot;&gt;&quot;The Subtraction of two number you have entered is : &quot;&lt;/span&gt; + d);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #f1c232;&quot;&gt;&quot;The Multiplication of two number you have entered is : &quot; &lt;/span&gt;+ e);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #f1c232;&quot;&gt;&quot;The Division of two number you have entered is : &quot;&lt;/span&gt; + f);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #f1c232;&quot;&gt;&quot;The Modulas of two number you have entered is : &quot; &lt;/span&gt;+ g);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; }&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;}&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Output :-&lt;/b&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;b&gt;Enter any number&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;12&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Enter any number&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;12&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Enter your name&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Abheer&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Abheer&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;The Addition of two number you have entered is : 24&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;The Subtraction of two number you have entered is : 0&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;The Multiplication of two number you have entered is : 144&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;The Division of two number you have entered is : 1&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;The Modulas of two number you have entered is : 0&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Explanation :-&lt;/b&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Here we use Scanner class of java to get the value on runtime.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Now in &quot;Scanner q= new Scanner (System.in);&quot; here &#39;q&#39; is object name , &#39;new&#39; is keyword which s use to allocate the memory to the object which is declared, &#39;System.in &#39; in this System is class which contains some coding and &#39;in&#39; is object which helps to take the value on runtime.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Now, q.nextInt is used to define that we taking Integer value and from this we can get the value on runtime. Moving ahead, q.next() is used to take in String input on runtime.&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/7198721218330435796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/02/how-to-give-value-on-runtime-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/7198721218330435796'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/7198721218330435796'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/02/how-to-give-value-on-runtime-in-java.html' title='Runtime value in Java.'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-6830434398602706667</id><published>2019-02-18T02:07:00.001+05:30</published><updated>2020-07-16T12:11:10.078+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'> Calculation in Java in Command Line.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;How to perform Calculation in Java in Command Line.&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;100% Working Code and Projects.&lt;/span&gt;&lt;/h2&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;if you need any help about project and Application Contact Shelly at:+917888361589.&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; font-family: Roboto, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;See the code below :-&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Java Code&amp;nbsp; :-&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; Calculation&lt;/div&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;public static void&lt;/span&gt; main(String []Abheer)&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; a= Integer.parseInt(Abheer[0]);&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int &lt;/span&gt;b= Integer.parseInt(Abheer[1]);&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; c=a+b;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; d=a-b;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;The sum of two number is :&quot;&lt;/span&gt;+c);&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;The Subtraction of two number is :&quot;&lt;/span&gt;+d);&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Output :-&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_qBAYuoUVKvBima0vOGLtAdRHaJdwlGV2Hrazx66d-ZbKXshjegaiClI1JeD8ym1XCFsuAwtEsCCuTMZes3vOlOrFap1pI7Im_yVJ2sFLXCzh1GDiH1Lw6uMeRo6-ZKiYvyukO0-XfA6z/s1600/cpic1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;94&quot; data-original-width=&quot;357&quot; height=&quot;84&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_qBAYuoUVKvBima0vOGLtAdRHaJdwlGV2Hrazx66d-ZbKXshjegaiClI1JeD8ym1XCFsuAwtEsCCuTMZes3vOlOrFap1pI7Im_yVJ2sFLXCzh1GDiH1Lw6uMeRo6-ZKiYvyukO0-XfA6z/s320/cpic1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Explanation :-&lt;/h2&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;In this, we have use Integer.parseInt(Abheer[0]) just to convert the string value to Integer value because it cannot be converted itself.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/6830434398602706667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/02/how-to-perform-calculation-in-java-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/6830434398602706667'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/6830434398602706667'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/02/how-to-perform-calculation-in-java-in.html' title=' Calculation in Java in Command Line.'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_qBAYuoUVKvBima0vOGLtAdRHaJdwlGV2Hrazx66d-ZbKXshjegaiClI1JeD8ym1XCFsuAwtEsCCuTMZes3vOlOrFap1pI7Im_yVJ2sFLXCzh1GDiH1Lw6uMeRo6-ZKiYvyukO0-XfA6z/s72-c/cpic1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-8289026659374803047</id><published>2019-02-17T17:30:00.003+05:30</published><updated>2020-07-16T12:11:21.758+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Calculation in Java program.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;How to perform Calculation in Java program.&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;100% Working Code and Projects.&lt;/span&gt;&lt;/h2&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;if you need any help about project and Application Contact Shelly at:+917888361589.&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; font-family: Roboto, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;See the code below :-&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Java Code&amp;nbsp; :-&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; Calculation&lt;br /&gt;{&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;public static void &lt;/span&gt;main(String []Abheer)&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;{&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; a=12;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; b=12;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; c=a+b;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; d=a-b;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; e=a*b;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;The Addition of two number is :&quot;&lt;/span&gt;+c);&lt;/h4&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;The Subtraction of two number is :&quot;&lt;/span&gt;+d);&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #bf9000;&quot;&gt;&quot;The Multiplication of two number is :&quot;&lt;/span&gt;+e);&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;}&lt;/h4&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Output :-&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
The Addition&amp;nbsp; of two number is :12&lt;br /&gt;The Subtraction of two number is :0&lt;br /&gt;The Multiplication of two number is :144&lt;/h4&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Explanation :-&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;font-size: large;&quot;&gt; In this , int is a data type and a,b,c,d,e are variables which store some value. Now System.out.println() is use to print the data and message on the output window and here we use &#39;+&#39; to join the message and value which has to print.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/8289026659374803047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/02/addition-in-java-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/8289026659374803047'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/8289026659374803047'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/02/addition-in-java-program.html' title='Calculation in Java program.'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-4932147775526244100</id><published>2019-02-15T19:28:00.001+05:30</published><updated>2020-07-16T12:11:34.528+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>How to print message in command line arguments</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;How to Print Message in Command Line Arguments&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;100% Working Code and Projects.&lt;/span&gt;&lt;/h2&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;roboto&amp;quot; , sans-serif;&quot;&gt;if you need any help about project and Application Contact Shelly at:+917888361589.&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; font-family: Roboto, sans-serif; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;See the code below :-&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Java Code 1 :-&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;public class&lt;/span&gt;&amp;nbsp;&lt;b&gt;Hello&lt;/b&gt;&amp;nbsp;{&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public static void&amp;nbsp;&lt;/span&gt;&lt;b&gt;main&lt;/b&gt;(String[] abheer) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(abheer[0]);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;div&gt;
&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBn4AiJlYqOgb0z0MVks8NoJIFBqlY2CqN75mWRvtWKAxjLkLgcGsJQtUGnaKZh8SmZt2EOekHwNzOo6ZbaguPvOIvvd-pI6dDRv22dl7hukT7anxaGYA51fZqlzxyF83KmXQYkZFm1BgQ/s1600/pic1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;73&quot; data-original-width=&quot;304&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBn4AiJlYqOgb0z0MVks8NoJIFBqlY2CqN75mWRvtWKAxjLkLgcGsJQtUGnaKZh8SmZt2EOekHwNzOo6ZbaguPvOIvvd-pI6dDRv22dl7hukT7anxaGYA51fZqlzxyF83KmXQYkZFm1BgQ/s1600/pic1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp; &lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Explanation :-&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; In this, we have to give the value to program before running the program but after the compilation. This code will only run in cmd(Command Prompt) .&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Java Code 2 :-&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;public class&lt;/span&gt;&amp;nbsp;&lt;b&gt;Hello&lt;/b&gt;&amp;nbsp;{&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public static void&amp;nbsp;&lt;/span&gt;&lt;b&gt;main&lt;/b&gt;(String[] abheer) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(abheer[0]);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;div&gt;
&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkFjEMN84kq9Mh9AIBcIorZGnnAWxMhbi3SdMTT4YD45BRQJTQu5V1fcIUT3IJe5zJmtT4Egcgf5bMmxmm0Ky8dzT7IpLX3Ql85ITDrY2QLbtBqjbNvZ2LpYNO6qtwYf7CTjWCrpT7CKAo/s1600/pic2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;75&quot; data-original-width=&quot;366&quot; height=&quot;65&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkFjEMN84kq9Mh9AIBcIorZGnnAWxMhbi3SdMTT4YD45BRQJTQu5V1fcIUT3IJe5zJmtT4Egcgf5bMmxmm0Ky8dzT7IpLX3Ql85ITDrY2QLbtBqjbNvZ2LpYNO6qtwYf7CTjWCrpT7CKAo/s320/pic2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Explanation :-&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; As the program stores the data in the form of array. Now in this only the first word is printing and after space it is not recognizing. The value Abheer is stored in abheer[0] and abheer is not geting any memory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Java Code 3 :-&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;public class&lt;/span&gt;&amp;nbsp;&lt;b&gt;Hello&lt;/b&gt;&amp;nbsp;{&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public static void&amp;nbsp;&lt;/span&gt;&lt;b&gt;main&lt;/b&gt;(String[] abheer) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(abheer[0]);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(abheer[1]);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;div&gt;
&amp;nbsp;&amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjX0EKyk13TfXXQoOwzCB7xgnGvzXlU0lFWNUzcl07xiHRp2shFXp5AVkBgyEVt7BUm3FND4950-j9gggJZ8NxdgZRSccrROeFeJOXJVuS76V9J-JDJ1gjbMPyCZvLzQnmCQGNzjKSAT9UO/s1600/Picc.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;87&quot; data-original-width=&quot;357&quot; height=&quot;77&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjX0EKyk13TfXXQoOwzCB7xgnGvzXlU0lFWNUzcl07xiHRp2shFXp5AVkBgyEVt7BUm3FND4950-j9gggJZ8NxdgZRSccrROeFeJOXJVuS76V9J-JDJ1gjbMPyCZvLzQnmCQGNzjKSAT9UO/s320/Picc.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Explanation :-&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;In this program, the both value are geting memory. Moreover , we are using System.out.println() that&#39;s why its printing the value in next line.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: x-large;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/4932147775526244100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/02/how-to-print-message-in-command-line.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/4932147775526244100'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/4932147775526244100'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/02/how-to-print-message-in-command-line.html' title='How to print message in command line arguments'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBn4AiJlYqOgb0z0MVks8NoJIFBqlY2CqN75mWRvtWKAxjLkLgcGsJQtUGnaKZh8SmZt2EOekHwNzOo6ZbaguPvOIvvd-pI6dDRv22dl7hukT7anxaGYA51fZqlzxyF83KmXQYkZFm1BgQ/s72-c/pic1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1113136475896754664.post-3723269663601793672</id><published>2019-02-13T23:37:00.002+05:30</published><updated>2020-07-16T12:06:46.163+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>How to Print Message in Java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;height: 0px;&quot;&gt;
&lt;span style=&quot;color: #cc0000; font-family: &amp;quot;verdana&amp;quot; , sans-serif; font-size: x-large;&quot;&gt;How to Print Message in Java&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;100% Working Code and Projects.if you need any help about project and Application Contact Shelly at:+917888361589.&lt;/span&gt;&lt;/h3&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;See the code below :-&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Java Code :-&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;public class&lt;/span&gt; &lt;b&gt;Hello&lt;/b&gt; {&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public static void &lt;/span&gt;&lt;b&gt;main&lt;/b&gt;(String[] args) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.println(&lt;span style=&quot;color: #7f6000;&quot;&gt;&quot;Hello &quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.&lt;span style=&quot;color: lime;&quot;&gt;out&lt;/span&gt;.print(&lt;span style=&quot;color: #7f6000;&quot;&gt;&quot;How are you ? &quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div style=&quot;font-size: x-large;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: x-large;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-size: x-large;&quot;&gt;
Explanation :-&lt;/div&gt;
&lt;div style=&quot;font-size: x-large;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h4 style=&quot;height: 0px;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;In first line, we have declared the class name which is public. Public is an access specifier which means that we can access it from any where.&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;height: 0px;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;In Second line,&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;height: 0px;&quot;&gt;
&lt;table align=&quot;left&quot; border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none; margin-left: 6.75pt; margin-right: 6.75pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-table-anchor-horizontal: column; mso-table-anchor-vertical: paragraph; mso-table-left: 136.75pt; mso-table-lspace: 9.0pt; mso-table-rspace: 9.0pt; mso-table-top: 8.35pt; mso-yfti-tbllook: 1184;&quot;&gt;
 &lt;tbody&gt;
&lt;tr style=&quot;height: 13.0pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0;&quot;&gt;
  &lt;td style=&quot;border: solid black 1.0pt; height: 13.0pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 108.85pt;&quot; valign=&quot;top&quot; width=&quot;145&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-left: 1.9in; mso-element-top: 8.35pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;&quot;&gt;
&amp;nbsp; Public&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-left: none; border: solid black 1.0pt; height: 13.0pt; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-themecolor: text1; mso-border-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-left: 1.9in; mso-element-top: 8.35pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;&quot;&gt;
&amp;nbsp;Access Specifier which can used any where
  again .&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 108.85pt;&quot; valign=&quot;top&quot; width=&quot;145&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-left: 1.9in; mso-element-top: 8.35pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;&quot;&gt;
&amp;nbsp; Static&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-alt: solid black .5pt; mso-border-bottom-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-right-themecolor: text1; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-left: 1.9in; mso-element-top: 8.35pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;&quot;&gt;
&amp;nbsp;Value or data remain unchanged&amp;nbsp; throughout the program.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 108.85pt;&quot; valign=&quot;top&quot; width=&quot;145&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-left: 1.9in; mso-element-top: 8.35pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;&quot;&gt;
&amp;nbsp;&amp;nbsp;Void&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-alt: solid black .5pt; mso-border-bottom-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-right-themecolor: text1; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-left: 1.9in; mso-element-top: 8.35pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;&quot;&gt;
A
  data type which does not contain any thing or null.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 108.85pt;&quot; valign=&quot;top&quot; width=&quot;145&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-left: 1.9in; mso-element-top: 8.35pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;&quot;&gt;
&amp;nbsp; Main &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-alt: solid black .5pt; mso-border-bottom-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-right-themecolor: text1; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-left: 1.9in; mso-element-top: 8.35pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;&quot;&gt;
A
  function which is entry gate of any java program.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 108.85pt;&quot; valign=&quot;top&quot; width=&quot;145&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-left: 1.9in; mso-element-top: 8.35pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;&quot;&gt;
&amp;nbsp;String &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-alt: solid black .5pt; mso-border-bottom-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-right-themecolor: text1; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-left: 1.9in; mso-element-top: 8.35pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;&quot;&gt;
It
  is a most flexible data type in java.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr&gt;
  &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 108.85pt;&quot; valign=&quot;top&quot; width=&quot;145&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-left: 1.9in; mso-element-top: 8.35pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;&quot;&gt;
[]
  args&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
  &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-alt: solid black .5pt; mso-border-bottom-themecolor: text1; mso-border-left-alt: solid black .5pt; mso-border-left-themecolor: text1; mso-border-right-themecolor: text1; mso-border-themecolor: text1; mso-border-top-alt: solid black .5pt; mso-border-top-themecolor: text1; padding: 0in 5.4pt 0in 5.4pt; width: 239.4pt;&quot; valign=&quot;top&quot; width=&quot;319&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-element-anchor-horizontal: column; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-left: 1.9in; mso-element-top: 8.35pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;&quot;&gt;
It
  is used because java program is store in array . it is not compulsory that we
  have to use args we can take any name or variable. &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;height: 0px;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;height: 0px;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;height: 0px;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;height: 0px;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;In third line, System is a class which call the another class which is PrintStream.java and that contains the two method which is println() and print(). Out is a object and println() is a method&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;height: 0px;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;height: 0px;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;height: 0px;&quot;&gt;
&lt;/h4&gt;
&lt;h4 style=&quot;height: 0px;&quot;&gt;
&lt;/h4&gt;
&lt;h4 style=&quot;height: 0px;&quot;&gt;
&lt;/h4&gt;
&lt;h4 style=&quot;height: 0px;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;
Now the difference between println and print is that println() will print the message in next line and print() will print the message in the same line.&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;height: 0px;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;height: 0px;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;height: 0px;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;height: 0px;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;height: 0px;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4 style=&quot;height: 0px;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Output :-&lt;/span&gt;&lt;br /&gt;Hello&lt;br /&gt;How are you ?&lt;span style=&quot;color: lime;&quot;&gt; BUILD SUCCESSFUL (total time: 2 seconds)&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: lime;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://codingstartupabheer.blogspot.com/feeds/3723269663601793672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/02/how-to-print-message-in-java-100.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/3723269663601793672'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1113136475896754664/posts/default/3723269663601793672'/><link rel='alternate' type='text/html' href='https://codingstartupabheer.blogspot.com/2019/02/how-to-print-message-in-java-100.html' title='How to Print Message in Java'/><author><name>Code Startup</name><uri>http://www.blogger.com/profile/12559074952570701798</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>