Posts

Coding Hub - Learn to code

Image
Hello Guys, Thanks for your love and support. I have developed an Android app "Coding Hub - Learn to code" which is now available on Google Play Store, you can access it from given url. https://play.google.com/store/apps/details?id=com.rahultamkhane.codinghub I hope you will like it. Thank you :-) Happy Coding !!!

Student Details App | Android Development | Java

Image
Develop an android application to display Student name and its marks In this tutorial, we are creating an android application which will look like as Let’s start by designing the layout of our Android App. AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.studentdetailsapp"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN&q

First Android App | Android Development | Java

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.

Visit new website for Programming Tutorials and Solutions

Hello everyone, Thanks for your support. I am happy to share with you that I have started a new website " https://ProgrammingTutorials4U.com ". Here you will get programming tutorials and programs.  If you like please comment and share with your friends.

Program to display any digit from 0-9 using "7 segment display"

Image
In this program, we have to display number in 7 segment display form. User have to  input any digit from 0 to 9 and after that it will display number in 7 segment display format. For example - If input digit is "0" then it will display following output  _  |  | |_| If entered digit is "4" then output will be |_|     | If entered digit is "9" then output will be  _  |_|   _|

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:

Program to create a simple Calculator using Java AWT components

Image
This tutorial explains you how to create a simple Calculator using Java AWT components. The output of the program is given below. 

Program to create a simple mini paint application

Image
In this program, we will create a simple mini paint application using Frame class. We have to implement two types of events here: Mouse event and Key event. To use this program you have to use numpad keys on keyboard. The following keys are used for specific purpose:

Program to demonstrate the Mouse events using Applet

Image
In this program, we have to implement Mouse events. An event which indicates that a mouse action is occurred in a component. This event is used both for mouse events (enter, click, press, release, exit) and mouse motion events (moves, drags). 

Pascal triangle 5

Image
This program will display the pascal triangle or print star pattern as shown below: * *A* *A*A* *A*A*A* *A*A*A*A*

Program to use MouseListener interface and its methods.

Image

Program for dynamically creating and adding JLabels

Image
In this tutorial, we will create a JFrame that contains JTextField, JPanel and JLabels. We have to add the number of JLabels that are entered in JTextField. For example, if we have entered number 4 then four labels will be added in JPanel.