8:03 pm - Thursday April 25, 2019

LinkedList Example Program for clear()

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044
/**
Author :candidjava.com
Description: To calculate the current capacity of the string by using  capacity() method it returns the current capacity of the String
 */
import java.io.IOException;
import java.util.*;
import java.io.IOException;

public class LinkedListClearExample {
	public static void main(String args[]) throws IOException {
		LinkedList l = new LinkedList();
		l.clear();
		System.out.println("The list is cleared");
	}
}

Output
The list is cleared

Filed in: Z-A All Java Codes

Comments are closed.