8:31 pm - Tuesday April 23, 2019

Tag Archives: first

LinkedList Example Program for getFirst()

/** Author :candidjava.com Description: Returns the first element in the list. */ import java.io.IOException; import java.util.*; public class LinkedListGetFirst { public static void main(String args[]) { int b=60,c=20,d=30; LinkedList...

Java Example Program to find the square root of first N Numbers

/*java program for square root of N numbers*/ /** *@author:Candidjava.com *@discription: To display squareroot of N numbers */ public class DeeSquare { public static void main(String[] args) { int n = 10;// if initialize the...

Statement FIRST() Example program in java Jdbc mysql database

Create Statement and insert values in the table:   mysql>Create table EMP (name varchar(12),id int(5),salary int(10)); INSERT INTO EMP(name,id,salary) VALUES("Karthik",3,5000 ); INSERT INTO EMP(name,id,salary) VALUES("Tamil",4,2500...

TreeSet example program to get lowest and highest value using first() and last()

/** *@author :CandidJava.com *@descriptions : This program explain the function and use of first() and last() method */ import java.util.TreeSet; class GetLowestHighestValueTreeSet { public static void main(String[] args) { // creating...