<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aldyputu on Medium]]></title>
        <description><![CDATA[Stories by Aldyputu on Medium]]></description>
        <link>https://medium.com/@aldyputu?source=rss-70e07f3942b8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*R8En4baNb0Nh0Bsl</url>
            <title>Stories by Aldyputu on Medium</title>
            <link>https://medium.com/@aldyputu?source=rss-70e07f3942b8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 22:59:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aldyputu/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Learn Prompting in AI Generate Tools]]></title>
            <link>https://medium.com/@aldyputu/learn-prompting-in-ai-generate-tools-8aef5bf7c657?source=rss-70e07f3942b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/8aef5bf7c657</guid>
            <category><![CDATA[prompt]]></category>
            <dc:creator><![CDATA[Aldyputu]]></dc:creator>
            <pubDate>Sun, 04 Feb 2024 13:24:33 GMT</pubDate>
            <atom:updated>2024-02-04T13:24:33.564Z</atom:updated>
            <content:encoded><![CDATA[<p>I got free course on Entry Level about AI prompting. Prompting is a method to give command on AI tools to generate result that we need.</p><p>Let’s put some context first:</p><blockquote>“Can you suggest a visualization technique for the top 20 Udemy courses?”</blockquote><p>Based on the context above, we can try several several structures of prompting, but mostly come with these format:</p><p><strong>Action Word</strong></p><p>We can use Generate, provide, show, suggest, construct, and design</p><blockquote>Provide the best choices of charts or graphs to visualize the top 20 Udemy courses.</blockquote><p><strong>Context</strong></p><p>With every talk in human level, we always put context to make it more clear, right? We can attempt to put context on our prompt. Enhance your prompt by incorporating specifics about your request, the goals you’re trying to achieve, or any constraints that need to be considered. For example:</p><blockquote>I want to showcase the top 20 Udemy courses visually. Provide the best choices of charts or graphs to visualize that and include the steps as well. I will use this in a report for my senior managers.</blockquote><p><strong>Roleplay</strong></p><p>To put it together, we can added more specific keyword for prompting. It is roleplay. Imagine yourself as Data Analyst, Senior Data Analyst, Product Manager, and etc. It will give more deeper result and make it more in contextual level and role that we need achieve to result.</p><blockquote>You are a seasoned data analyst and an expert in Excel, Provide the best choices of charts or graphs to visualize the top 20 Udemy courses and include the steps I should take as well. I will use this in a report for my senior managers.</blockquote><p>Another thing that we can consider is:</p><ul><li><strong>Give examples</strong> — Want ChatGPT to get inspired from an existing content piece? Then using examples in prompts can help you get the desired responses.</li><li><strong>Include the length of the response </strong>— ChatGPT does not know if you want a crisp two lines response or a comprehensive paragraph for your prompt. To avoid confusion and regenerations, it is good to specify the response length in the prompt. Or you can simply ask it to be brief and concise in the response.</li></ul><p>Some tools example:</p><ul><li><a href="https://chat.openai.com/">ChatGPT</a>: OpenAI’s language model that can generate conversational, human-like text and serve as a valuable resource for developers.</li><li><a href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-ai-insights">Power BI:</a> Developed by Microsoft, Power BI offers interactive visualizations and business intelligence capabilities for creating reports and dashboards. In Power BI, you can use AI Insights to gain access to a collection of pre-trained machine learning models that enhance your data preparation efforts.</li><li><a href="https://www.polymersearch.com/">Polymer</a>: Polymer’s AI analyzes your data to suggest rich insights and build beautiful dashboards for you automatically.</li><li><a href="https://looker.com/">Looker</a>: A modern platform for data that offers powerful exploration and visualization capabilities to help analysts make sense of complex datasets.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8aef5bf7c657" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java: Recursive Method]]></title>
            <link>https://medium.com/@aldyputu/java-recursive-method-66df6f44e9a5?source=rss-70e07f3942b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/66df6f44e9a5</guid>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Aldyputu]]></dc:creator>
            <pubDate>Wed, 13 Dec 2023 09:12:09 GMT</pubDate>
            <atom:updated>2023-12-13T09:12:09.656Z</atom:updated>
            <content:encoded><![CDATA[<p>Recursive means we called the method to execute the method again and again until the program crash or output needed :)</p><p>We can talk about factorial, 10! -&gt; 1 x 2 x 3 x 4 x 5 x 6 x … x 10. Its the same method that used again and again to times the first number to the next and the next until the n limit reaches and we get the exact result, in this case the result is 3628800.</p><pre>public class Factorial {<br><br>  static int factorial(int value) {<br>  <br>  var result = 1; //the number always start from one<br>  for (int i = 1; i &lt;= value; i++){<br>     <br>      result *= i; //the loop will get us throught the number until the value reached   <br>      //it will keep multiply by the last result to the next number until we get final result<br>    } <br>    <br>    return result;<br>  }<br><br>  public static void main(String[] args) {<br>    factorial(10);<br>  }<br><br>}<br>/*<br>Output<br>3628800<br>*/</pre><p>Above code is an example to write factorial method without recursive. Lets try to write the code using recursive:</p><pre>public class FactorialRecursive {<br><br>  static int factorial(int value) {<br>  <br>     if (value == 0) {<br>        return 1;<br>      }<br>     //recursive calling the method inside the method<br>     //develop factorial calculation in it<br>     return value * factorial(value - 1);<br>  }<br><br>  public static void main(String[] args) {<br>    factorial(10);<br>    factorial(5);<br>    factorial(2);<br>  }<br><br>}<br>/*<br>OUTPUT<br>3628800<br>120<br>2<br>*/</pre><p>It is easier to write the code when we need to input the result value to the current method and make next operation on the method until finally hit the parameter method.</p><p>But, becareful with the fanciness of recursive. There is stack overflow that can be happen to your program when the method deeply call the method again and again that cause the process got it stacked. Just like we place some box above box, if too high it will fall. The limit of method stack is different based on your device specification.</p><p>Lets write the code:</p><pre>public class FactorialRecursive {<br><br>  static static void loop(int value) {<br>    if (value == 0){<br>      System.out.println(&quot;Done!&quot;);<br>      } else {<br>        System.out.println(&quot;Called of &quot; + value);<br>        loop(value - 1);<br>      }<br>    }<br><br>  public static void main(String[] args) {<br>    loop(10);<br>    loop(100);<br>    loop(10000);<br>  }<br><br>}<br>/*<br>Output<br>-&gt; the first one should be fine<br>-&gt; second also fine<br>-&gt; the third messed with error: Stack Overflow, THE METHOD CALLED DEEPLY and <br>cannot completely finish the task<br>*/</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66df6f44e9a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java: method overloading]]></title>
            <link>https://medium.com/@aldyputu/java-method-overloading-551703f74d6e?source=rss-70e07f3942b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/551703f74d6e</guid>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Aldyputu]]></dc:creator>
            <pubDate>Mon, 11 Dec 2023 09:12:28 GMT</pubDate>
            <atom:updated>2023-12-11T09:12:28.921Z</atom:updated>
            <content:encoded><![CDATA[<p>It is possible to write the same method in java but, we need to make sure the parameter and number of it is different. This thing called method overloading. When we define it clearly, we can choose the method that we used by using the parameter that construct on the method.</p><p>Lets write the code:</p><pre>public class Main {<br><br>static void sayMyName(){<br>  System.out.println(&quot;My name is&quot;);<br>} <br><br>static void sayMyName(String firstName){<br>  System.out.println(&quot;My name is &quot; + firstName);<br>}<br><br>static void sayMyName(String firstName, String lastName){<br>  System.out.println(&quot;My name is &quot; + firstName + &quot; &quot; + lastName);<br>}<br><br>public static void main(String[] args) {<br>   sayMyname();<br>   sayMyname(&quot;Putu&quot;);<br>   sayMyname(&quot;Putu&quot;, &quot;Reynaldy&quot;);<br>  }<br>}<br><br>/*<br>Output<br>My name is<br>My name is Putu<br>My name is Putu Reynaldy<br><br>Now we can call same function with method overload but always make sure <br>we understand the parameter needed to call the right method<br>*/</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=551703f74d6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java: Method Variable Argument]]></title>
            <link>https://medium.com/@aldyputu/java-method-variable-argument-c1ec11b5a08f?source=rss-70e07f3942b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1ec11b5a08f</guid>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Aldyputu]]></dc:creator>
            <pubDate>Mon, 11 Dec 2023 08:50:18 GMT</pubDate>
            <atom:updated>2023-12-11T08:50:56.088Z</atom:updated>
            <content:encoded><![CDATA[<p>When we face real problem to create an app, we always use method that will process any number of data, from less to huge chunk I mean.</p><p>Lets write method without variable argument:</p><pre>public class Main {<br>  <br>//method here<br>  static void sayCongrats(String name, int[] values) {<br>  var total = 0;<br>  <br>  for (var value : values){<br>    total =+ value;<br>    }<br>  <br>  var finalValue = total / values.length;<br><br>  if (finalValue &gt;= 75) {<br>    System.out.println(&quot;Congratulation &quot; + name + &quot;, you passed!&quot;);<br>    } else {<br>    System.out.println(&quot;Sorry &quot; + name + &quot;, you failed.&quot;);<br>    }<br><br>  }<br>  <br>  public static void main(String[] args) {<br><br>  //create array values with score list on it<br>  int[] values = {80, 75, 90, 75, 90};<br>  sayCongrats(&quot;Putu&quot;, values);<br><br>  int[] values = {60, 75, 75, 75, 65};<br>  sayCongrats(&quot;Putu&quot;, values);<br>  }<br>}<br><br>/*<br>Output<br>Congratulation Putu, you passed!<br>Sorry Putu, you failed.<br>*/</pre><p>Our method created to receive array on the parameter. After we construct the method, we need to define the array var first and put it on the parameter, and then the program start work on the parameter from string to the list of integer. Finally the output printed based on the total score.</p><p>Now lets try to write method on using Variable Argument</p><pre>public class Main {<br>  <br>//method here<br>  static void sayCongrats(String name, int... values) {<br>  var total = 0;<br>  <br>  for (var value : values){<br>    total =+ value; //still the same we need to for loop to iterate array of int<br>    }<br>  <br>  var finalValue = total / values.length;<br><br>  if (finalValue &gt;= 75) {<br>    System.out.println(&quot;Congratulation &quot; + name + &quot;, you passed!&quot;);<br>    } else {<br>    System.out.println(&quot;Sorry &quot; + name + &quot;, you failed.&quot;);<br>    }<br><br>  }<br>  <br>  public static void main(String[] args) {<br><br>  //right now we can directly write our array on the parameter <br>  // and get the same result<br>  sayCongrats(name:&quot;Putu&quot;, values:80, 75, 90, 75, 90);<br><br>  sayCongrats(name:&quot;Putu&quot;, values:60, 75, 75, 75, 65);<br>  }<br>}<br><br>/*<br>Output<br>Congratulation Putu, you passed!<br>Sorry Putu, you failed.<br>*/</pre><p>Variable argument can used by putting “…” triple dot after we define data type of our array parameter, and then we can put variable array or put array list directly to the method parameter. Voila!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1ec11b5a08f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java: Method Return Value]]></title>
            <link>https://medium.com/@aldyputu/java-method-return-value-461d8ed1a3d9?source=rss-70e07f3942b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/461d8ed1a3d9</guid>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Aldyputu]]></dc:creator>
            <pubDate>Mon, 11 Dec 2023 06:35:59 GMT</pubDate>
            <atom:updated>2023-12-11T06:35:59.593Z</atom:updated>
            <content:encoded><![CDATA[<p>Before we write a method using void. Void itself is a default that will return nothing from our method. So now, method has a way to return a value, a specific one that will make it useful in some cases.</p><pre>public class Main {<br>  /*<br>  We declare that we want String output from our method, so we write it when<br>  initialize the method return. Adding parameter based on what we need but,<br>  make sure the output/return statement is String or any datatype that <br>  we declare when create our method.<br>  */<br>  static String getEmail(String firstName, String lastName){<br>    var email = firstName + lastName + &quot;@gmail.com&quot;;<br>    return email;<br>  }<br><br>  public static void main(String[] args){<br><br>  var a = &quot;Joko&quot;;<br>  var b = &quot;Wiguna&quot;;<br>  var c = getEmail(a,b);<br><br>  System.out.println(c);<br>  <br>  }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=461d8ed1a3d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java: Method Parameter]]></title>
            <link>https://medium.com/@aldyputu/java-method-parameter-8b9654b01587?source=rss-70e07f3942b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b9654b01587</guid>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Aldyputu]]></dc:creator>
            <pubDate>Mon, 11 Dec 2023 06:19:06 GMT</pubDate>
            <atom:updated>2023-12-11T06:19:06.829Z</atom:updated>
            <content:encoded><![CDATA[<p>Next after we write a method that used for print string, we actually can make the method run specific task with inputs. The input itself can be any data type, like string, integer, and double. Below code is a method that receive two string input and print it as the part of greeting statement when we called the function.</p><pre>public class Main {<br><br>static void sayMyName(String firstName, String lastName){<br>  System.out.println(&quot;Hello &quot; + firstName + &quot; &quot; + lastName + &quot;!&quot;);<br>  }<br><br>public static void main(String[] args) {<br>  <br>  sayMyName(&quot;Ganjar&quot;, &quot;Subekti&quot;);<br>  }<br>}<br><br>/*<br>Output<br>Hello Ganjar Subekti!<br>*/</pre><p>Lets write another function with integer input:</p><pre>public class Main {<br><br>static void adding(int oneNum, int secNum){<br>  int sum = oneNum + secNum;<br>  System.out.println(sum);<br>  }<br><br>public static void main(String[] args) {<br>  <br>  adding(100, 99);<br>  }<br>}<br><br>/*<br>Output<br>199<br>*/</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b9654b01587" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java: Method]]></title>
            <link>https://medium.com/@aldyputu/java-method-4b572e18b99b?source=rss-70e07f3942b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b572e18b99b</guid>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Aldyputu]]></dc:creator>
            <pubDate>Mon, 11 Dec 2023 06:07:50 GMT</pubDate>
            <atom:updated>2023-12-11T06:07:50.345Z</atom:updated>
            <content:encoded><![CDATA[<p>When we want to execute specific function repeatedly, we can create a method a call it on our main function. Method is created to make sure that we can reuse our program and make it flexible to combine it with another method to get the output that we need.</p><pre>public class Main {<br><br>  public static void main(String[] args){<br>    System.out.println(&quot;This is a method to print string&#39;);<br>  }<br>}</pre><p>Above code is println statement that is method to print string on our computer. Lets see below code to understand how to create and use our customize method.</p><pre>public class Main {<br><br>  static void sayHelloWorld() { //static can only called static<br>    System.out.println(&quot;Hello World!&quot;); //this is our method<br>    }<br><br>  public static void main(String[] args){ <br>    sayHelloWorld(); //this is how we call the method<br>  }<br>}</pre><p>public void methodName() is the way the initialize the method and then on the next line we define the function that needed in our code. For above case we want to print “Hello World!” when the function is called. This is when we realize that method is reusable and lets deep dive into it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b572e18b99b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java: For each ‍]]></title>
            <link>https://medium.com/@aldyputu/java-for-each-8b47dba81db0?source=rss-70e07f3942b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b47dba81db0</guid>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Aldyputu]]></dc:creator>
            <pubDate>Tue, 05 Dec 2023 14:46:23 GMT</pubDate>
            <atom:updated>2023-12-05T14:46:23.311Z</atom:updated>
            <content:encoded><![CDATA[<p>When accessing array, we can done that by looping on by one value per index. It will messed up on the writing and this is when For Each can be useful.</p><p>This the loop to get array value without for each:</p><pre>public class forEach {<br>    public static void main(String[] args) {<br>        String[] array = {<br>                &quot;I Putu&quot;, &quot;Reynaldy&quot;, &quot;Aryawijaya&quot;,<br>                &quot;Aulia&quot;, &quot;Rakhma&quot;, &quot;Hidayat&quot;<br>        };<br><br>        for (int i = 0; i &lt; array.length; i++) {<br>            System.out.println(array[i]);<br><br>        }<br>    }<br>}</pre><p>Now lets write it with for each using this pattern:</p><pre>for (type variableName : arrayName) {<br>  // code block to be executed<br>}</pre><pre>public class forEach {<br>    public static void main(String[] args) {<br>        String[] array = {<br>                &quot;I Putu&quot;, &quot;Reynaldy&quot;, &quot;Aryawijaya&quot;,<br>                &quot;Aulia&quot;, &quot;Rakhma&quot;, &quot;Hidayat&quot;<br>        };<br><br>        for (String i: array) {<br>            System.out.println(i);<br><br>        }<br>    }<br>}<br>/*<br>OUTPUT<br>I Putu<br>Reynaldy<br>Aryawijaya<br>Aulia<br>Rakhma <br>Hidayat<br>*/</pre><p>For each, we define data type and index and target our array that will be execute and get all the value on it.</p><p>If our array consist numbers, we should change data type into int, lets write the code:</p><pre>public class forEach {<br>    public static void main(String[] args) {<br>        int[] array = {<br>                1, 99, 28, 40,<br>                23, 17, 16, 78<br>        };<br>       for (int i: array){ //following array data type<br>            System.out.println(i); //the output value targeted as index of array<br>        }<br>    }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b47dba81db0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java: break & continue♨♨️]]></title>
            <link>https://medium.com/@aldyputu/java-break-continue-%EF%B8%8F-4c4fe5a08e0e?source=rss-70e07f3942b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c4fe5a08e0e</guid>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Aldyputu]]></dc:creator>
            <pubDate>Tue, 05 Dec 2023 14:24:57 GMT</pubDate>
            <atom:updated>2023-12-05T14:24:57.233Z</atom:updated>
            <content:encoded><![CDATA[<p>We already used break for conditional operation. Break used to completely stop the loop operation. Lets the code:</p><pre>public class breakContinue {<br>    public static void main(String[] args) {<br>        var counter = 1;<br><br>        while (true) {<br>            System.out.println(&quot;Perulangan ke &quot; + counter);<br>            counter++;<br><br>            if (counter &gt; 10) {<br>                break;<br>            }<br>        }<br>    }<br>}<br><br>/*<br>Output<br>Perulangan ke 1<br>Perulangan ke 2<br>Perulangan ke 3<br>Perulangan ke 4<br>Perulangan ke 5<br>Perulangan ke 6<br>Perulangan ke 7<br>Perulangan ke 8<br>Perulangan ke 9<br>Perulangan ke 10<br>*/</pre><p>After the condition is true, the program will execute break and fully stop the loop.</p><p>Now lets learn to use continue. Continue will help us to run the next step of loop. When the condition is false, we can still continue the loop until the end. Let’s try to code it:</p><pre>public class breakContinue {<br>    public static void main(String[] args) {<br>        var counter = 1;<br><br>        while (true) {<br>            System.out.println(&quot;Perulangan ke &quot; + counter);<br>            counter++;<br><br>            if (counter &gt; 10) {<br>                continue;<br>            }<br>        }<br>    }<br>}<br>/*<br>OUTPUT<br>infinite loop<br>Perulangan ke nnnnnn<br>Perulangan ke nnnnnn<br>Perulangan ke nnnnnn<br>Perulangan ke nnnnnn<br>Perulangan ke nnnnnn<br>Perulangan ke nnnnnn<br>*/</pre><p>another example: lets create a loop with output of odd number. We use <strong>continue</strong> to skip the even print statement with even number on it and print the odd one.</p><pre>public class breakContinue {<br>    public static void main(String[] args) {<br>    for (var counter = 1; counter &lt;= 100; counter++) {<br>            if (counter % 2 == 0){<br>                continue;<br>            }<br>            System.out.println(&quot;Perulangan ganjil &quot; + counter);<br>        }<br>    }<br>}<br><br>/*<br>OUTPUT<br>Perulangan ganjil 1<br>Perulangan ganjil 3<br>Perulangan ganjil 5<br>Perulangan ganjil 7<br>Perulangan ganjil 9<br>Perulangan ganjil 11<br>Perulangan ganjil 13<br>Perulangan ganjil 15<br>Perulangan ganjil 17<br>Perulangan ganjil 19<br>Perulangan ganjil 21<br>Perulangan ganjil 23<br>Perulangan ganjil 25<br>Perulangan ganjil 27<br>Perulangan ganjil 29<br>cont..<br>Perulangan ganjil 99<br>*/</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c4fe5a08e0e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java: Do While Loop ( ߬⚈ o⚈ꪷ)♨️]]></title>
            <link>https://medium.com/@aldyputu/java-do-while-loop-%DF%AC-o-%EA%AA%B7-%EF%B8%8F-edb66ab9311f?source=rss-70e07f3942b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/edb66ab9311f</guid>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Aldyputu]]></dc:creator>
            <pubDate>Tue, 05 Dec 2023 13:03:47 GMT</pubDate>
            <atom:updated>2023-12-05T13:03:47.222Z</atom:updated>
            <content:encoded><![CDATA[<p>Do while loop, it’s the same but the line of code need to be run until the end to check if the condition is true or false. Thats why the loop will run once to and check on condition after the loop finish.</p><pre>public class doWhileLoop {<br>    public static void main(String[] args) {<br>        var counter = 100;<br><br>        do {<br>            System.out.println(&quot;Perulangan ke  &quot; + counter);<br>            counter++;<br>        } while (counter &lt;=10);<br><br>    }<br>}<br><br>/* <br>Output<br>Perulangan ke 100<br>*/</pre><p>Do while loop make sure that we get the output first even we get condition false on the loop because the checker come last.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edb66ab9311f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>