Posts

Build a Simple Android App to Display Student Details

Image
Build a Simple Android App to Display Student Details (Student Details App) In this tutorial, we’ll walk through the steps to create a basic Android application that displays a student’s details such as name, and marks. This is a great starting project for Android development using Java . 🛠 What You’ll Learn Creating a new Android Studio project Designing a layout with TextViews Writing Java code to display student data Running the app on an emulator or physical device 📦 Step 1: Create a New Project Open Android Studio Click on “New Project” Choose Empty Activity Name it: StudentDetailsApp Language: Java Click Finish 🖼  Step 2: Design the Layout (XML) Go to  res/layout/activity_main.xml  and replace the default content with the following: activity_main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.andro...

Develop an Android application to display “Hello World!” on screen

Image
Develop an android application to display “Hello World!” on screen Introduction In this tutorial, you learn how to start android development with the very first android project. You also create and run your first Android app Hello World, on emulator or physical device. Before you start writing your first program using Android Studio, you have to make sure that you have set-up your Android development environment properly. Also it is assumed that you have a little bit of working knowledge with Android studio. What you should already know Basic understanding of object-oriented programming Basic understanding of Java programming language What you'll need A computer running Windows or Linux, or a Mac running macOS. Android Studio should be installed, if it’s not ready, please download it from the Official Website. ...

Program to display Digits in 7-Segment Style Using Java

Image
Display Digits in 7-Segment Style Using Java Ever wondered how digital clocks or calculators display numbers? They often use seven-segment displays —a simple arrangement of 7 LEDs to represent numbers from 0 to 9. In this post, we'll create a Java program that simulates the same effect on your console screen! 💡 What is a 7-Segment Display? A 7-segment display is made up of seven LEDs (labeled a through g ) that can be turned on or off to create numerical digits. Here's a visual representation: Each digit is formed by turning on a combination of these segments.

Program to create text file, write some data and read the same using single character method without using string functions

 In this tutorial, you'll learn how to create TEXT file, write some data to file and read the data from text file. Before going to start you should aware of the following concepts: Java File IO FileWriter class FileReader class

Program to split the words in sentence of string without using split in Java

 In this program, you'll learn how to split the words in sentence of string without using split() function. Hello Guys, if you know about split( ) method of String class, it can be used to split the sentence into words. Here in this program we will split the using without using this split() method. So let us start.

Program to design an applet which draws a circle (having color BLUE) inside a triangle (having color YELLOW)

Image
Given program will draw a circle inside a triangle. The color of circle is "blue" and triangle having color "yellow". To fill circle with respective colours first we have to set the colour using  setColor(Color c)  method of  Graphics  class and then use the fillPolygon() and fillOval( )  method. The  fillPolygon( )  method Fills a closed polygon defined by arrays of x and y coordinates.

Program to create a Popup Menu using Java AWT

Image
This tutorial shows you how to create a simple popup menu in Java. Popup menu is a menu which appears when you right click on mouse. For example, to copy, paste something in computer you right click and it will show the popup menu like: