Tags » Java » Page 2

Find Duplicate element in array

public class Armstrongno {

public void checkarmstrong(int n) {
int temp=n;
int a,c=0;
while(n>0)
{
a=n%10;
n=n/10;
c=c+(a*a*a*a);
}
if(temp==c)
System.out.println(“armstrong number”);
else
System.out.println(“Not armstrong number”); 28 more words

Check For Armstrong number in java

public class Armstrongno {

public void checkarmstrong(int n) {
int temp=n;
int a,c=0;
while(n>0)
{
a=n%10;
n=n/10;
c=c+(a*a*a*a);
}
if(temp==c)
System.out.println(“armstrong number”);
else
System.out.println(“Not armstrong number”); 28 more words

Remove Duplicate element from the Array in java

public class RemoveDuplicate {

public static void main(String[] a) {
int[] array = {1,5,1,4,5,5,6};
System.out.println(array.length);

int size= array.length;
for(int i = 0;i<size;i++) {
int temp= array[i]; 38 more words

Programs

Check Palindrome Java Program

import java.util.Scanner;

public class PalindromeString{

public static void main(String[] s)
{
Scanner sc = new Scanner(System.in);
String original,reverese=””;
int i;
System.out.println(“Enter the Input string”);
original = sc.nextLine(); 38 more words

3 Ways to Learn Spring Core, Spring MVC, Spring Security, and Spring Boot Framework

INTRODUCTION

If you are a Java developer and want to learn spring, then you came to the right place. In this article, I will share three ways to learn the Spring framework, but before that, we will understand what a spring framework is and why Java developers should learn the spring framework? 1,408 more words

Apache Click Framework

Pages are the heart of web applications. In Click, Pages encapsulate the processing of HTML requests and the rendering of HTML responses.

In Click, a logical page is composed of a Java class and a Velocity template, with these components being defined in page elements of the click.xml file. 211 more words

Java