<?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 Tushar Anand on Medium]]></title>
        <description><![CDATA[Stories by Tushar Anand on Medium]]></description>
        <link>https://medium.com/@atushar580?source=rss-daeed2570d7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Ovo86e8LnhraZqqs9dCnQQ.jpeg</url>
            <title>Stories by Tushar Anand on Medium</title>
            <link>https://medium.com/@atushar580?source=rss-daeed2570d7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 22:01:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@atushar580/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[My Summer Internship Journey with Oasis Infobyte: Building Innovative Android Applications]]></title>
            <link>https://medium.com/@atushar580/my-summer-internship-journey-with-oasis-infobyte-building-innovative-android-applications-4e7cd9d8cce0?source=rss-daeed2570d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e7cd9d8cce0</guid>
            <dc:creator><![CDATA[Tushar Anand]]></dc:creator>
            <pubDate>Mon, 26 Jun 2023 20:32:54 GMT</pubDate>
            <atom:updated>2023-06-26T20:32:54.799Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I recently had the privilege of interning at Oasis Infobyte, a leading software development company. During my internship, I had the opportunity to work on three exciting Android applications that aimed to simplify everyday tasks and provide an engaging user experience. In this blog post, I’ll take you through my internship journey, sharing details about each app I built and the valuable lessons I learned along the way. Join me as we explore the world of unit conversions, calculator functionality, and quiz games with a twist but before that let me introduce you to the process of applying for internship at OasisInfobyte.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*TGiyHlx1Xdq6D0KhFZ8zAQ.jpeg" /></figure><h3><strong>How to Apply for Oasis Infobyte Summer Internship</strong></h3><ol><li><strong><em>Research and Preparation</em></strong><em>: Begin by researching Oasis Infobyte to understand the company’s mission, values, and projects. Familiarize yourself with their website (oasisinfobyte.com) to gain a comprehensive understanding of their work.</em></li><li><strong><em>Resume and Cover Letter</em></strong><em>: Craft a well-structured resume and a compelling cover letter that highlights your skills, experiences, and passion for technology. Tailor your application to demonstrate how your skills align with the internship program at Oasis Infobyte.</em></li><li><strong><em>Online Application</em></strong><em>: Visit the careers or internship section on the Oasis Infobyte website and look for internship opportunities. Follow the application instructions carefully and submit your application.</em></li><li><strong><em>Showcasing Projects</em></strong><em>: If you have personal projects or relevant experience, consider creating a portfolio or showcasing your work on platforms such as GitHub. Including these links in your application can provide additional evidence of your skills and passion for technology.</em></li></ol><h3>The Three Projects that I made during my Summer Internship</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*yBrqorrAe_taxciukvrJog.jpeg" /><figcaption>My First task that was assigned during Internship</figcaption></figure><blockquote><strong>Android Application of Unit Conversion</strong>: My first project at Oasis Infobyte was developing an Android Application using Java and SDK 32. This remarkable app aimed to simplify the conversion of values between different units of measurement. It provided users with a convenient and efficient way to convert quantities across various measurement systems, including length, weight, volume, temperature, time, and more. With a user-friendly interface, the app allowed users to effortlessly perform unit conversions in their everyday lives. You can learn more about this innovative app and its features on the Oasis Infobyte website (<a href="https://oasisinfobyte.com/">oasisinfobyte.com</a>).</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hKdpkG2mzHneVrUCTXpmog.jpeg" /><figcaption>The interface of my Android Emulator after successful gradle Build</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*SUejKmhLLSE75uRlrcePkQ.jpeg" /><figcaption>My Second task that was assigned during Internship</figcaption></figure><blockquote><strong>Android Application of Calculator</strong>: For my next project, I built an Android Calculator Application using Java and SDK 31. The goal of this app was to streamline mathematical calculations and make them more accessible to users. With its clean design and intuitive functionality, the calculator app was capable of handling basic arithmetic operations. It provided users with a reliable tool to perform calculations quickly and accurately. Through this project, I learned the importance of simplicity and usability in app development. To explore the calculator app further, visit oasisinfobyte.com and discover how it can simplify your mathematical tasks.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kFpjFIrUYWwYG3tZJNoTfQ.jpeg" /><figcaption>The interface of my Android Emulator after successful gradle Build</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pr_eiGaLsBkjXzSaksYPeg.png" /><figcaption>My Third task that was assigned during Internship</figcaption></figure><blockquote><strong>Android Application for Quiz</strong>: The final project during my internship involved developing an Android Quiz Application using Kotlin and SDK 30. This captivating app combined the elements of a quiz game with popular internet memes, catering to the interests of modern users. The app presented users with a series of engaging questions and challenges related to memes, viral internet trends, and online culture. It provided a fun and interactive way for users to test their knowledge while immersing themselves in the world of internet phenomena. To experience the excitement of the quiz app, head over to oasisinfobyte.com and uncover the unique blend of quizzes and internet memes.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UcX9IwwDDtHw9f5vHXedQw.jpeg" /><figcaption>The interface of my Android Emulator after successful gradle Build</figcaption></figure><h3>The Oasis Infobyte Experience</h3><ol><li><strong><em>Immersive Learning Environment</em></strong><em>: As an intern at Oasis Infobyte, you will find yourself immersed in a dynamic learning environment. The company fosters a culture of continuous growth and innovation, providing you with access to cutting-edge technologies and industry experts who are passionate about sharing their knowledge.</em></li><li><strong><em>Challenging Projects</em></strong><em>: Interns at Oasis Infobyte are entrusted with meaningful and challenging projects that allow them to apply their skills and make a real impact. You will have the opportunity to work on projects that align with your interests and expand your expertise in areas such as software development, mobile applications, web development, artificial intelligence, and more.</em></li><li><strong><em>Mentorship and Guidance</em></strong><em>: Oasis Infobyte understands the importance of mentorship in nurturing talent. As an intern, you will be assigned a mentor who will provide guidance, support, and valuable feedback throughout your internship. This mentorship ensures that you receive the necessary guidance to excel in your assigned projects and accelerate your professional growth.</em></li><li><strong><em>Collaborative Work Culture</em></strong><em>: Oasis Infobyte fosters a collaborative work culture that encourages open communication and teamwork. You will have the chance to collaborate with talented individuals from diverse backgrounds, fostering a rich learning experience and the opportunity to develop your interpersonal skills.</em></li><li><strong><em>Networking Opportunities</em></strong><em>: During your internship at Oasis Infobyte, you will have the chance to network with professionals in the industry, creating valuable connections that can shape your future career. The company often organizes events, workshops, and tech talks, providing opportunities to interact with industry leaders and gain insights into emerging trends.</em></li></ol><h3>Conclusion</h3><p><em>My internship journey with Oasis Infobyte was truly a remarkable experience that allowed me to apply my programming skills and learn from a talented team of professionals. Building innovative Android applications like the unit conversion app, calculator app, and quiz app challenged me to think creatively and develop user-friendly solutions. I am grateful for the guidance and support I received throughout my internship, which helped me grow both personally and professionally. To explore these applications and discover more exciting projects, make sure to visit the Oasis Infobyte website at </em><a href="https://oasisinfobyte.com/"><em>oasisinfobyte.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e7cd9d8cce0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an Android Quiz App with Kotlin : A Step-by-Step Guide]]></title>
            <link>https://medium.com/@atushar580/building-an-android-quiz-app-with-kotlin-a-step-by-step-guide-6361391eecad?source=rss-daeed2570d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/6361391eecad</guid>
            <category><![CDATA[android-studio]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Tushar Anand]]></dc:creator>
            <pubDate>Sat, 22 Apr 2023 17:05:05 GMT</pubDate>
            <atom:updated>2023-04-22T17:05:05.239Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building an Android Quiz App with Kotlin : A Step-by-Step Guide</h3><p>Are you interested in Android app development but don’t know where to start? Have you heard about Kotlin, the modern and efficient programming language for Android? If you want to learn more about app development with Kotlin, and create a quiz app, then this blog post is for you!</p><p>This blog will show you how to create a Quiz app using Kotlin and the Pixel 2 API 29 emulator. The blog will cover the basics of Android app development, including creating a user interface, handling user input, and displaying results.</p><p>Before we start, make sure that you have Android Studio installed on your computer. Android Studio is the official integrated development environment (IDE) for Android app development, and it includes all the necessary tools and resources to create Android apps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DhRzfmREOiFXzUkE.jpg" /></figure><p><strong>Step 1: Create a new project</strong></p><p>To create a new project, open Android Studio and select “Start a new Android Studio project” from the welcome screen. Choose a project name and select “Kotlin” as the programming language. Then, select “Empty Activity” as the template and click “Finish”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sF2kKitxDQVkxVCnu8wr6g.png" /></figure><p><strong>Step 2: Design the user interface</strong></p><p>The user interface of our quiz app will consist of a question text view, four answer buttons, and a submit button. To create this layout, open the “activity_main.xml” file located in the “res/layout” folder, and replace the default code with the following:</p><pre>&lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    xmlns:tools=&quot;http://schemas.android.com/tools&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;match_parent&quot;<br>    tools:context=&quot;.MainActivity&quot;&gt;<br><br>    &lt;TextView<br>        android:id=&quot;@+id/question_text_view&quot;<br>        android:layout_width=&quot;match_parent&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:layout_marginTop=&quot;32dp&quot;<br>        android:layout_marginLeft=&quot;16dp&quot;<br>        android:layout_marginRight=&quot;16dp&quot;<br>        android:textSize=&quot;20sp&quot;<br>        android:textStyle=&quot;bold&quot;<br>        android:text=&quot;@string/question_text&quot;/&gt;<br><br>    &lt;Button<br>        android:id=&quot;@+id/answer_button1&quot;<br>        android:layout_width=&quot;match_parent&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:layout_below=&quot;@id/question_text_view&quot;<br>        android:layout_marginTop=&quot;16dp&quot;<br>        android:layout_marginLeft=&quot;16dp&quot;<br>        android:layout_marginRight=&quot;16dp&quot;<br>        android:textSize=&quot;16sp&quot;<br>        android:textColor=&quot;#ffffff&quot;<br>        android:background=&quot;@color/colorPrimaryDark&quot;<br>        android:text=&quot;@string/answer1_text&quot;/&gt;<br><br>    &lt;Button<br>        android:id=&quot;@+id/answer_button2&quot;<br>        android:layout_width=&quot;match_parent&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:layout_below=&quot;@id/answer_button1&quot;<br>        android:layout_marginTop=&quot;16dp&quot;<br>        android:layout_marginLeft=&quot;16dp&quot;<br>        android:layout_marginRight=&quot;16dp&quot;<br>        android:textSize=&quot;16sp&quot;<br>        android:textColor=&quot;#ffffff&quot;<br>        android:background=&quot;@color/colorPrimaryDark&quot;<br>        android:text=&quot;@string/answer2_text&quot;/&gt;<br><br>    &lt;Button<br>        android:id=&quot;@+id/answer_button3&quot;<br>        android:layout_width=&quot;match_parent&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:layout_below=&quot;@id/answer_button2&quot;<br>        android:layout_marginTop=&quot;16dp&quot;<br>        android:layout_marginLeft=&quot;16dp&quot;<br>        android:layout_marginRight=&quot;16dp&quot;<br>        android:textSize=&quot;16sp&quot;<br>        android:textColor=&quot;#ffffff&quot;<br>        android:background=&quot;@color/colorPrimaryDark&quot;<br>        android:text=&quot;@string/answer3_text&quot;/&gt;<br><br>    &lt;Button<br>    <br>    android:id=&quot;@+id/submit_button&quot;<br>    android:layout_width=&quot;wrap_content&quot;<br>    android:layout_height=&quot;wrap_content&quot;<br>    android:layout_below=&quot;@id/answer_button4&quot;<br>    android:layout_centerHorizontal=&quot;true&quot;<br>    android:layout_marginTop=&quot;32dp&quot;<br>    android:textSize=&quot;16sp&quot;<br>    android:text=&quot;@string/submit_text&quot;/&gt;<br>        </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ake5CWw3uYDvp1JZy1978Q.png" /><figcaption>This is the image of an Android Emulator Pixel_2_API_29:55554</figcaption></figure><p><strong>Step 3: Define the questions and answers</strong></p><p>In our quiz app, we will define a list of questions, each with four possible answers and a correct answer index. To do this, create a new file called “Question.kt” and add the following code:</p><pre>class Question(val question: String, val answers: List&lt;String&gt;, val correctAnswerIndex: Int)</pre><p>Then, in the MainActivity.kt file, create a list of questions and initialize the UI elements in the onCreate() method:</p><pre>class MainActivity : AppCompatActivity() {<br><br>    private lateinit var questionTextView: TextView<br>    private lateinit var answerButton1: Button<br>    private lateinit var answerButton2: Button<br>    private lateinit var answerButton3: Button<br>    private lateinit var answerButton4: Button<br>    private lateinit var submitButton: Button<br><br>    private val questions = listOf(<br>        Question(<br>            &quot;What is the capital of France?&quot;,<br>            listOf(&quot;London&quot;, &quot;Paris&quot;, &quot;Berlin&quot;, &quot;Madrid&quot;),<br>            1<br>        ),<br>        Question(<br>            &quot;What is the largest country in the world?&quot;,<br>            listOf(&quot;Russia&quot;, &quot;Canada&quot;, &quot;China&quot;, &quot;United States&quot;),<br>            0<br>        ),<br>        Question(<br>            &quot;What is the highest mountain in the world?&quot;,<br>            listOf(&quot;K2&quot;, &quot;Mount Everest&quot;, &quot;Makalu&quot;, &quot;Kangchenjunga&quot;),<br>            1<br>        ),<br>        Question(<br>            &quot;What is the currency of Japan?&quot;,<br>            listOf(&quot;Dollar&quot;, &quot;Yen&quot;, &quot;Euro&quot;, &quot;Pound&quot;),<br>            1<br>        )<br>    )<br><br>    override fun onCreate(savedInstanceState: Bundle?) {<br>        super.onCreate(savedInstanceState)<br>        setContentView(R.layout.activity_main)<br><br>        questionTextView = findViewById(R.id.question_text_view)<br>        answerButton1 = findViewById(R.id.answer_button1)<br>        answerButton2 = findViewById(R.id.answer_button2)<br>        answerButton3 = findViewById(R.id.answer_button3)<br>        answerButton4 = findViewById(R.id.answer_button4)<br>        submitButton = findViewById(R.id.submit_button)<br><br>        showNextQuestion()<br>    }<br><br>    private fun showNextQuestion() {<br>        val question = questions.random()<br>        questionTextView.text = question.question<br>        answerButton1.text = question.answers[0]<br>        answerButton2.text = question.answers[1]<br>        answerButton3.text = question.answers[2]<br>        answerButton4.text = question.answers[3]<br><br>        answerButton1.setOnClickListener {<br>            checkAnswer(0, question)<br>        }<br><br>        answerButton2.setOnClickListener {<br>            checkAnswer(1, question)<br>        }<br><br>        answerButton3.setOnClickListener {<br>            checkAnswer(2, question)<br>        }<br><br>        answerButton4.setOnClickListener {<br>            checkAnswer(3, question)<br>        }<br><br>        submitButton.setOnClickListener {<br>            showNextQuestion()<br>        }<br>    }</pre><p><strong>Step 4: Check the answer and display the result</strong></p><p>In the checkAnswer() method, we compare the selected answer index with the correct answer index of the current question. If they match, we increment the score and display a message to the user. Otherwise, we simply display a message telling the user that they got the answer wrong. Here’s the code for the checkAnswer() method:</p><pre>private fun checkAnswer(answerIndex: Int, question: Question) {<br>    if (answerIndex == question.correctAnswerIndex) {<br>        Toast.makeText(this, &quot;Correct!&quot;, Toast.LENGTH_SHORT).show()<br>    } else {<br>        Toast.makeText(this, &quot;Wrong answer. Try again.&quot;, Toast.LENGTH_SHORT).show()<br>    }<br>}</pre><p><strong>Step 5: Keep track of the score</strong></p><p>To keep track of the user’s score, we will create a variable called “score” in the MainActivity class and increment it each time the user gets a correct answer. We will also display the score to the user at the end of the quiz. Here’s the updated code for the checkAnswer() method:</p><pre>private var score = 0<br><br>private fun checkAnswer(answerIndex: Int, question: Question) {<br>    if (answerIndex == question.correctAnswerIndex) {<br>        score++<br>        Toast.makeText(this, &quot;Correct!&quot;, Toast.LENGTH_SHORT).show()<br>    } else {<br>        Toast.makeText(this, &quot;Wrong answer. Try again.&quot;, Toast.LENGTH_SHORT).show()<br>    }<br><br>    if (questions.indexOf(question) == questions.size - 1) {<br>        Toast.makeText(this, &quot;Your score is $score out of ${questions.size}&quot;, Toast.LENGTH_LONG).show()<br>        score = 0<br>    } else {<br>        showNextQuestion()<br>    }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*LYqjUD8t2RToI8q4KnE_GQ.jpeg" /><figcaption>Final page which shows the total score</figcaption></figure><p><strong>Step 6: Test the app</strong></p><p>Finally, we can test the app by running it on an emulator or a physical device. To do this, open the AVD Manager in Android Studio, create a new virtual device with the Pixel 2 API 29 system image, and then run the app on the virtual device. The app should display a question with four possible answers, and the user should be able to select an answer and see a message indicating whether their answer was correct or not. The app should also keep track of the user’s score and display it at the end of the quiz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*EX5KFOBHYDbIwje4GUFjFQ.jpeg" /><figcaption>Opening interface of the app</figcaption></figure><p><strong>Conclusion</strong></p><p>In this tutorial, we learned how to create a simple quiz app using Kotlin and the Android SDK. We defined a list of questions and answers, displayed them on the screen using TextViews and Buttons, and checked the user’s answers by comparing them to the correct answer index. We also kept track of the user’s score and displayed it at the end of the quiz. By following these steps, you can create your own quiz app or any other Android app using Kotlin and the Android SDK.</p><p>You can download the entire source code from <a href="https://github.com/Tushar22-06/MemeQuizApp">My Github</a>.</p><p>Follow me for more interesting Blogs!!</p><p>You can connect with me through:</p><p><a href="https://www.linkedin.com/in/tusharanand22/"><strong>Linkdln</strong></a></p><p><a href="https://github.com/Tushar22-06"><strong>Github</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6361391eecad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java Basics for Beginners: A Guide to Getting Started with Java Programming]]></title>
            <link>https://medium.com/@atushar580/java-basics-for-beginners-a-guide-to-getting-started-with-java-programming-867a5286efb8?source=rss-daeed2570d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/867a5286efb8</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[guides-and-tutorials]]></category>
            <category><![CDATA[beginner]]></category>
            <dc:creator><![CDATA[Tushar Anand]]></dc:creator>
            <pubDate>Fri, 24 Feb 2023 18:08:41 GMT</pubDate>
            <atom:updated>2023-02-24T18:08:41.574Z</atom:updated>
            <content:encoded><![CDATA[<p>Java is one of the most popular programming languages in the world, with millions of developers using it to build everything from simple desktop applications to complex enterprise systems. If you’re new to programming, learning Java can be a great place to start. In this blog, we’ll cover the basics of Java for beginners.</p><p><strong>What is Java?</strong></p><p>Java is a high-level, object-oriented programming language that was first released in 1995. It was created by James Gosling and his team at Sun Microsystems (now owned by Oracle Corporation) with the aim of developing a language that could run on any platform without the need for recompilation. Java is platform-independent, meaning that programs written in Java can run on any device that has a Java Virtual Machine (JVM) installed.</p><p>Java’s popularity is due in part to its simplicity and ease of use. It has a large community of developers who create libraries and tools that can be used to simplify development tasks.</p><p><strong>Java Basics</strong></p><p>Let’s dive into some of the basics of Java programming.</p><p><strong>1.</strong><a href="https://www.geeksforgeeks.org/variables-in-java/"><strong>Variables</strong></a></p><p>Variables are used to store data in a Java program. A variable can be of different data types, such as int (for integers), double (for decimal numbers), boolean (for true/false values), and String (for text). To declare a variable, you need to specify the data type and give it a name:</p><pre>int myNumber = 42;<br>double myDouble = 3.14;<br>boolean myBoolean = true;<br>String myString = &quot;Hello, world!&quot;;</pre><p><strong>2.</strong><a href="https://www.geeksforgeeks.org/operators-in-java/"><strong>Operators</strong></a></p><p>Java has a variety of operators that can be used to perform arithmetic, logical, and comparison operations. Here are some examples:</p><pre>int sum = 2 + 2;<br>int difference = 5 - 3;<br>int product = 4 * 6;<br>int quotient = 12 / 3;<br>boolean isGreaterThan = 5 &gt; 3;<br>boolean isEqualTo = 5 == 5;<br>boolean isNotEqualTo = 2 != 3;</pre><p><strong>3.</strong><a href="https://www.naukri.com/learning/articles/conditional-statements-in-java/"><strong>Conditional Statements</strong></a></p><p>Conditional statements are used to execute different blocks of code depending on certain conditions. Java has several types of conditional statements, including if statements and switch statements.</p><pre>int x = 10;<br><br>if (x &gt; 5) {<br>    System.out.println(&quot;x is greater than 5&quot;);<br>} else if (x == 5) {<br>    System.out.println(&quot;x is equal to 5&quot;);<br>} else {<br>    System.out.println(&quot;x is less than 5&quot;);<br>}</pre><p><strong>4.</strong><a href="https://www.geeksforgeeks.org/loops-in-java/"><strong>Loops</strong></a></p><p>Loops are used to repeat a block of code multiple times. Java has two types of loops: for loops and while loops.</p><pre>for (int i = 0; i &lt; 5; i++) {<br>    System.out.println(i);<br>}<br><br>int i = 0;<br>while (i &lt; 5) {<br>    System.out.println(i);<br>    i++;<br>}</pre><p><strong>5.</strong><a href="https://www.geeksforgeeks.org/classes-objects-java/"><strong>Classes and Objects</strong></a></p><p>Java is an object-oriented programming language, which means that programs are made up of classes and objects. A class is a blueprint for creating objects, while an object is an instance of a class. Here’s an example:</p><pre>public class Person {<br>    private String name;<br><br>    public Person(String name) {<br>        this.name = name;<br>    }<br><br>    public String getName() {<br>        return this.name;<br>    }<br>}<br><br>Person person1 = new Person(&quot;Alice&quot;);<br>System.out.println(person1.getName());</pre><p>In this example, we’ve created a class called Person that has a constructor and a method called <a href="https://www.javatpoint.com/java-class-getname-method#:~:text=The%20getName()%20method%20of,of%20the%20class%20object.">getName</a>. We’ve then created an object of the Person class called person1 and called the getName method on it.</p><p><strong>Conclusion</strong></p><p>In this blog, we’ve covered some of the basics of Java programming for beginners. We’ve looked at variables.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=867a5286efb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>