Write a Java program that checks whether a given string is a palindrome or not. Ex: MADAM is a palindrome.
//Program to check whether the given string is palindrome or not import java.util.*; class Palindrome { public static…
//Program to check whether the given string is palindrome or not import java.util.*; class Palindrome { public static…
Output: Number of sides of Trapeziod is : 4 Number of sides of Triangle is : 3…
//Program for implementing Server/Client Application // Server Program import java.io.*; import java.net.*; class Server { public static void…
//Program to implement mouse events import java.awt.*; import java.awt.event.*; import java.applet.*; public class Mouseevents extends Applet implements MouseListener,MouseMotionListener {…
//Program for implementing a Simple Calculator import java.awt.*; import java.awt.event.*; import java.applet.*; /*<applet code=”Calculator1″ width=300 height=300></applet>*/ public class Calculator1…
Output:
Output:
//Program for implementing Traffic Signals import java.applet.*; import java.awt.*; import java.awt.event.*; /*<applet code=”Signals” width=400 height=250></applet>*/ public class Signals extends…
Java Design Patterns | Consumer and Producer Pic credit: Freepic.com // implementation of a producer and consumer. class Q…
Java Custom Exceptions Program to create a user defined exception class Myexception extends Exception { int detail; …
//Program to throw implement division and throw exceptions import java.util.*; class NAexception { public static void main(String args[])…
package pack1; public class Student { public int rol_no=18; public char name[]={‘s’,’e’,’k’,’h’,’a’,’r’}; } package…
//Evaluating the postfix expression import java.util.*; class postfix1 { double a[]=new double[20]; int top; postfix1() {…
//Program for infix to postfix conversion import java.util.*; class itop1 { char s[]=new char[10]; int top; …
//Program to implement Stacks import java.util.*; import java.io.*; class Stack1 { int t; int a[]=new int[5]; …