1:29 am - Friday June 23, 2017

Author Archives: veera

Java Example Program for delete element in array

public class DeleteArray { /** * @Author:candid * @Description:To Delete a element in an Array */ public static void main(String[] arguments) { // internalize the array int arg[] = { 5, 6, 8, 9, 10 }; // Delete the Array Element...

Java Example Program for largest and smaller number in array

public class Array { /** * @ author: Candid @ Description: write a java program to find largest & * smallest number in an array */ public static void main(String[] args) { int a[] = new int[] { 5, 23, 45, 75, 10, 50, 7 }; int...

Java program for daemon thread

package Debug; public class DaemonThread extends Thread { /** * @author: candid * @description: java program for daemon thread. */ DaemonThread() { setDaemon(true); } public void run() { System.out.println("Is this thread Daemon?...

Java Program for Upper Triangular Matrix

public class MainUTM { public static void main(String[] args) { int[][] a = new int[3][3]; // declaration of an array. here array a // contain 3-rows and 3-columns. a[0][0] = 5; // here initializing 1st element of an array a[0][1]...

Java Example Program for lower triangular matrix

  public class MainLTM { public static void main(String args[]) { int[][] a = new int[3][3]; // declaration of an array. here array a // contain 3-rows and 3-columns. a[0][0] = 1; // here initializing 1st element of an array a[0][1]...

Struts 2 i18n Localization Example and Tutorial

BACK Struts 2 i18n Localization Example and Tutorial Localization.java package com.candidjava.controller; import com.opensymphony.xwork2.ActionSupport; public class Localization extends ActionSupport{ private String name; private...

Struts 2 Tiles Layout Example and Tutorial

BACK Struts 2 Tiles Layout Example and Tutorial   LinkAction.java package com.candid.action; import com.opensymphony.xwork2.ActionSupport; public class LinkAction extends ActionSupport { private static final long serialVersionUID...

Struts 2 Global Exception Handling Example and Tutorial

BACK Struts 2 Global Exception Handling Example and Tutorial GobalErrorHandling.java package com.candidjava.controller; import com.opensymphony.xwork2.ActionSupport; public class GlobalErrorHandling extends ActionSupport { private...

Struts 2 Exception Handling Example and Tutorial

BACK Struts 2 Exception Handling Example and Tutorial   Errorhandling.java   package com.candidjava.controller; import com.opensymphony.xwork2.ActionSupport; public class ErrorHandling extends ActionSupport{ private static...

Struts 2 Global results Example and Tutorial

BACK  Struts 2 Global results Example and Tutorial Validation.java package com.candidjava.action; import com.opensymphony.xwork2.ActionSupport; public class LinkAction extends ActionSupport { private static final long serialVersionUID...

Struts 2 Redirect or Forward Action Example and Tutorial

BACK Struts 2 Redirect or Forward Action Example and Tutorial Struts.xml <struts> <package name="test" extends="struts-default"> <action name="view"> <result name="success">/view.jsp</result> </action> </package> </struts>   index.jsp <html> <head> </head> <body> <h3>Candid...

Struts 2 Multi Action or Dispatch Action Example and Tutorial

BACK Struts 2 Multi Action or Dispatch Action Example and Tutorial MultiAction.java package com.candidjava.controller; import com.opensymphony.xwork2.ActionSupport; public class MultiAction extends ActionSupport{ private static final...

Struts 2 Form Handling Example and Tutorial

To Insert Number using array Concept

BACK In this tutorial you will learn how to INSERT ELEMENT TO THE ARRAY. Method with Example Program. public class Array { public static void main(String[] args) { int[] a = new int[7]; a[0] = 0; a[1] = 1; a[2] = 2; a[3] = 3; System.out.print(“Before...

Arrays example programs and Tutorial in java

BACK 1)To Insert Number using array Concept. 2) Creating Program for how to get a fixed-size list backed by the specified array using static <T> List<T> method 3) Creating Program for Searches the specified array of bytes for...

To CharAt using StringBuffer CharAt Method

BACK In this Tutorial you will learn how to   CharAt  Using StringBuffer CharAt Method With Example program. public class StringBufferCharAtExample { public static void main(String args[]) { StringBuffer sb = new StringBuffer("Students...

To Substring String using String Buffer Substring Method

BACK In this Tutorial you will learn how to   SubString String Using StringBuffer SubString Method With Example program. public class StringBufferSubStringExample { public static void main(String args[]) { StringBuffer sb = new StringBuffer("Student...

To Ensurecapacity using String Buffer Ensure Capacity Method

BACK                              In this Tutorial you will learn how to Ensurecapacity String Using StringBuffer EnsureCapacity Method With Example program. public class StringBufferEnsureCapacityExample { public...

To Check String Length using String Buffer Length Method

BACK   In this Tutorial you will learn how to check String Length Using StringBuffer Length Method With Example program. public class StringBufferLengthExample { public static void main(String args[]) { StringBuffer sb = new StringBuffer("Students"); System.out.println(sb.length()); } } Output 8 Explanation: public int length() Returns...

To Check String Capacity using String Capacity Method

BACK                                   In this Tutorial you will learn how to Check String capacity Using StringBuffer Capacity Method With Example program. public class StringBufferCapacityExample { public...