The document discusses Java packages and classes. It describes common Java API packages like java.lang, java.util, java.io, java.awt, and java.net and what types of classes they contain. It also provides examples of using packages like Vector, Random, Date, and Calendar classes and their key methods. The Calendar class allows interpreting dates and times, defining constants used for components like MONTH, DATE, HOUR, etc.
oops concept in java | object oriented programming in javaCPD INDIA
object oriented programming is a key concept for the development of application in windows as well as web based application environment. oops concept maps real world through its concept of classes, objects, inheritance, polymorphism which help in making a robust application.
This is the presentation file about inheritance in java. You can learn details about inheritance and method overriding in inheritance in java. I think it's can help your. Thank you.
oops concept in java | object oriented programming in javaCPD INDIA
object oriented programming is a key concept for the development of application in windows as well as web based application environment. oops concept maps real world through its concept of classes, objects, inheritance, polymorphism which help in making a robust application.
This is the presentation file about inheritance in java. You can learn details about inheritance and method overriding in inheritance in java. I think it's can help your. Thank you.
Gives You the brief idea about packages in JAVA
By N.V.Raja Sekhar Reddy
www.technolamp.co.in
Want more interesting...
Watch and Like us @ https://www.facebook.com/Technolamp.co.in
subscribe videos @ http://www.youtube.com/user/nvrajasekhar
Gives You the brief idea about packages in JAVA
By N.V.Raja Sekhar Reddy
www.technolamp.co.in
Want more interesting...
Watch and Like us @ https://www.facebook.com/Technolamp.co.in
subscribe videos @ http://www.youtube.com/user/nvrajasekhar
Presentation by Soumya Mondal, on "Information Security: Importance of having definded policy & process" at "Braindigit 9th National ICT Conference 2013" organized by Information Technology Society, Nepal at Alpha House, Kathmandu, Nepal on 26th January, 2013
Electronic mail, most commonly called email or e-mail since around 1993
E-mail is one of the most widely used forms of communication today.
E-mail is faster and cheaper than traditional postal mail, but at least when you seal that envelope and stick a stamp on it, you can have some confidence that only the intended recipient will open it.
With e-mail, however, your message could be intercepted midstream, and you might never realize it. You have to take steps to secure and protect your e-mail messages.
http://phpexecutor.com
Computer security threats & prevention,Its a proper introduction about computer security and threats and prevention with reference. Have info about threats and their prevention.
Digital Signature, Electronic Signature, How digital signature works, Confidentiality of digital signature, Authenticity of digital signature, Integrity of digital signature, standard of digital signature, Algorithm of digital signature, Mathematical base of digital signature, parameters of digital signature, key computation of digital signature, key generation of digital signature, verification of of digital signature
Introduction of Object Oriented Programming Language using Java. .pptxPoonam60376
The slide contains the Introduction of Object Oriented Programming Language using Java. It covers basics of OOP, Inheritance,Polymorphism, Exception etc.
Java basic part 2 : Datatypes Keywords Features Components Security Exceptions Soumen Santra
Features
JVM
Architecture
Security
Data Types
Class and Object
Program
First Java Application
Declaring and creating objects
Arrays
Constructors
this keyword
static keyword
Inheritance
Overriding
Access Modifiers
super keyword
final keyword
abstract classes
interfaces
Exceptions (error handling)
User Defining exceptions
Java Hibernate Programming with Architecture Diagram and Examplekamal kotecha
Java Hibernate Introduction, Architecture and Example with step by step guidance to run the program especially for students and teachers.
Learn More @ http://java2all.com/technology/hibernate
Network programming in java - PPT with Easy Programs and examples of Java InetAddress Class and java socket programming example.
Learn more @ http://java2all.com/technology/network-programming
ppt of class and methods in java,recursion in java,nested class,java,command line argument,method overloading,call by value,call by reference,constructor overloading core java ppt
We all have good and bad thoughts from time to time and situation to situation. We are bombarded daily with spiraling thoughts(both negative and positive) creating all-consuming feel , making us difficult to manage with associated suffering. Good thoughts are like our Mob Signal (Positive thought) amidst noise(negative thought) in the atmosphere. Negative thoughts like noise outweigh positive thoughts. These thoughts often create unwanted confusion, trouble, stress and frustration in our mind as well as chaos in our physical world. Negative thoughts are also known as “distorted thinking”.
How to Create Map Views in the Odoo 17 ERPCeline George
The map views are useful for providing a geographical representation of data. They allow users to visualize and analyze the data in a more intuitive manner.
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Ethnobotany and Ethnopharmacology:
Ethnobotany in herbal drug evaluation,
Impact of Ethnobotany in traditional medicine,
New development in herbals,
Bio-prospecting tools for drug discovery,
Role of Ethnopharmacology in drug evaluation,
Reverse Pharmacology.
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
Palestine last event orientationfvgnh .pptxRaedMohamed3
An EFL lesson about the current events in Palestine. It is intended to be for intermediate students who wish to increase their listening skills through a short lesson in power point.
How to Split Bills in the Odoo 17 POS ModuleCeline George
Bills have a main role in point of sale procedure. It will help to track sales, handling payments and giving receipts to customers. Bill splitting also has an important role in POS. For example, If some friends come together for dinner and if they want to divide the bill then it is possible by POS bill splitting. This slide will show how to split bills in odoo 17 POS.
3. Package :
Packages are java`s way of grouping a veriety of
classes and/or interfaces together.
Java API packages :
java API provides a large number of classes
grouped into different packages according to
functionality.
Frequently used API packages are as under.
http://www.java2all.com
5. Package Contents
Name
Language support classes. These are classes that java
compiler itself uses and therefore they are automatically
Java.lang
imported. They include classes for primitive types, strings,
math functions, threads and exceptions.
Language utility classes such as vectors, hash tables,
Java.util
random numbers, date, etc.
Input/output support classes. They provide facilities for
Java.io
the input and output of the data.
Set of classes for implementing graphical user interface.
Java.awt They include classes for windows, buttons, lists, menus
and so on.
Classes for networking. They include classes for
Java.net communicating with local computers as well as with
internet servers.
Java.applet Classes for creating and implementing applets.
http://www.java2all.com
6. Syntax for import packages is as under
import packagename.classname;
or
import packagename.*;
These are known as import statements and
must appear at the top of the file, before any file
declaration as you can see in our few examples.
Here import is a keyword.
The first statement allows the specified
class in the specified package to be imported.
http://www.java2all.com
7. EX :
import java.awt.Color;
double y = java.lang.Math.sqrt(x);
Here lang is a package, Math is a class and sqrt
is a method.
For create new package you can write...
package firstPackage;
public class Firstclass
{
..................
body of class
.................
} http://www.java2all.com
9. Vector class :
The Vector class is one of the most important in
all of the Java class libraries. We cannot expand the
size of a static array.
We may think of a vector as a dynamic array
that automatically expands as more elements are
added to it.
All vectors are created with some initial
capacity.
http://www.java2all.com
10. When space is needed to accommodate more
elements, the capacity is automatically increased.
That is why vectors are commonly used in java
programming.
http://www.java2all.com
11. This class provides the following
constructors:
Vector()
Vector(int n)
Vector(int n, int delta)
The first form creates a vector with an initial
capacity of ten elements.
The second form creates a vector with an
initial capacity of n elements.
http://www.java2all.com
12. The third form creates a vector with an initial
capacity of n elements that increases by delta elements
each time it needs to expand.
http://www.java2all.com
13. import java.util.*;
public class Vector_Demo
{
public static void main(String args[])
{
int i;
Vector v = new Vector();
v.addElement(new Integer(10));
v.addElement(new Float(5.5f));
v.addElement(new String("Hi"));
v.addElement(new Long(2500));
v.addElement(new Double(23.25));
System.out.println(v);
String s = new String("Bhagirath");
v.insertElementAt(s,1);
System.out.println(v);
v.removeElementAt(2);
System.out.println(v); Output :
for(i=0;i<5;i++)
{
}
System.out.println(v.elementAt(i));
Bhagirath
}
} Hi
2500
23.25
http://www.java2all.com
15. The Random class allows you to generate
random double, float, int, or long numbers.
This can be very helpful if you are building a
simulation of a real-world system.
This class provides the following constructors.
Random()
Random(long start)
Here, start is a value to initialize the random
number generator.
http://www.java2all.com
16. Method Description
Double
Returns a random double value.
nextDouble()
Float nextFloat() Returns a random float value.
Returns a random double value. Numbers obtained from
Double
repeated calls to this method have a Gaussian distribution
nextGaussian()
with a mean of 0 and a standard deviation of 1.
Int nextInt() Returns a random int value.
Long nextLong() Returns a random long value.
Method Description
http://www.java2all.com
17. import java.util.*;
public class Random_Demo
{
public static void main(String args[])
{
Random ran = new Random();
for(int i = 0; i<5;i++)
{
System.out.println(ran.nextInt());
}
}
}
Output :
64256704
1265771787
-1962940029
1372052
http://www.java2all.com
19. Date class :
The Date classes encapsulate information about
a specific date and time.
It provides the following constructors.
Date()
Date(long msec)
Here, the first form returns an object that
represent the current date and time.
The second form returns an object that
represents the date and time msec in milliseconds after
http://www.java2all.com
20. Method Description
Boolean Returns true if d is after the current date.
after(Date d) Otherwise, returns false.
Boolean Returns true if d is before the current date.
before(Date d) Otherwise, returns false.
Boolean Returns true if d has the same value as the
equals(Date d) current date. Otherwise, returns false.
Returns the number of milliseconds since the
Long getTime()
epoch.
Void setTime Sets the date and time of the current object to
(long msec) represent msec milliseconds since the epoch.
String
Returns the string equivalent of the date.
toString()
http://www.java2all.com
21. import java.util.*;
public class Date_Demo
{
public static void main(String args[])
{
Date dt = new Date();
System.out.println(dt);
Date epoch = new Date(0);
System.out.println(epoch);
}
}
Output :
Fri May 25 00:04:06 IST 2012
Thu Jan 01 05:30:00 IST 1970
http://www.java2all.com
22. import java.util.Date;
public class date2
{
public static void main(String[] args)
{
Date d1 = new Date(); Output :
try
{ First Date : Fri May 25 00:06:46 IST 2012
Thread.sleep(1000);
} Second Date : Fri May 25 00:06:47 IST
catch(Exception e){}
2012
Date d2 = new Date();
Is second date after first ? : true
System.out.println("First Date : " + d1);
System.out.println("Second Date : " + d2);
System.out.println("Is second date after first ? : " + d2.after(d1));
}
}
http://www.java2all.com
23. import java.util.*;
public class date3
{
public static void main(String args[])
{
Date date = new Date();
System.out.println("Date is : " + date);
System.out.println("Milliseconds since January 1, 1970, 00:00:00 GMT : " + date.getTime());
Date epoch = new Date(0);
date.setTime(10000);
System.out.println("Time after 10 second " + epoch);
System.out.println("Time after 10 second " + date);
String st = date.toString();
System.out.println(st);
}
}
Output :
Date is : Fri May 25 00:12:52 IST 2012
Milliseconds since January 1, 1970, 00:00:00 GMT :
1337884972842
Time after 10 second Thu Jan 01 05:30:00 IST 1970
Time after 10 second Thu Jan 01 05:30:10 IST 1970
Thu Jan 01 05:30:10 IST 1970
http://www.java2all.com
25. The Calendar class allows you to interpret date
and time information.
This class defines several integer constants that
are used when you get or set components of the
calendar. These are listed here.
http://www.java2all.com
26. AM AM_PM APRIL
AUGUST DATE DAY_OF_MONTH
DAY_OF_WEEK_IN_M
DAY_OF_WEEK DAY_OF_YEAR
ONTH
DECEMBER DST_OFFSET ERA
FEBRUARY FIELD_COUNT FRIDAY
HOUR HOUR_OF_DAY JANUARY
JULY JUNE MARCH
MAY MILLISECOND MINUTE
http://www.java2all.com
27. MONDAY MONTH NOVEMBER
OCTOBER PM SATURADAY
SECOND SEPTEMBER SUNDAY
THURSDAY TUESDAY UNDERIMBER
WEDNESDAY WEEK_OF_MONTH WEEK_OF_YEAR
The Calendar class
does not have public
constructors. Instead,
you may use the static
YEAR ZONE_OFFSET
getInstance() method
to obtain a calendar
initialized to the
current date and time.
http://www.java2all.com
28. One of its forms is shown here:
Calendar getInstance()
http://www.java2all.com
29. import java.util.Calendar;
public class Cal1
{
public static void main(String[] args)
{
Calendar cal = Calendar.getInstance();
System.out.println("DATE is : " + cal.get(cal.DATE));
System.out.println("YEAR is : " + cal.get(cal.YEAR));
System.out.println("MONTH is : " + cal.get(cal.MONTH));
System.out.println("DAY OF WEEK is : " + cal.get(cal.DAY_OF_WEEK));
System.out.println("WEEK OF MONTH is : " + cal.get(cal.WEEK_OF_MONTH));
System.out.println("DAY OF YEAR is : " + cal.get(cal.DAY_OF_YEAR));
System.out.println("DAY OF MONTH is : " + cal.get(cal.DAY_OF_MONTH));
System.out.println("WEEK OF YEAR is : " + cal.get(cal.WEEK_OF_YEAR));
System.out.println("HOUR is : " + cal.get(cal.HOUR));
System.out.println("MINUTE is : " + cal.get(cal.MINUTE));
System.out.println("SECOND is : " + cal.get(cal.SECOND));
System.out.println("DAY OF WEEK IN MONTH is : " +
cal.get(cal.DAY_OF_WEEK_IN_MONTH));
System.out.println("Era is : " + cal.get(cal.ERA));
System.out.println("HOUR OF DAY is : " + cal.get(cal.HOUR_OF_DAY));
System.out.println("MILLISECOND : " + cal.get(cal.MILLISECOND));
System.out.println("AM_PM : " + cal.get(cal.AM_PM));// Returns 0 if AM and 1 if PM
}
}
http://www.java2all.com
30. Output :
Date is : Fri May 25 00:21:14 IST 2012
Milliseconds since January 1, 1970, 00:00:00 GMT :
1337885474477
Time after 10 second Thu Jan 01 05:30:00 IST 1970
Time after 10 second Thu Jan 01 05:30:10 IST 1970
Thu Jan 01 05:30:10 IST 1970
http://www.java2all.com
31. The GregorianCalendar class is a subclass of
Calendar.
It provides the logic to manage date and time
information according to the rules of the Gregorian
calendar.
This class provides following constructors:
GregorianCalendar()
GregorianCalendar(int year, int month, int date)
GregorianCalendar(int year, int month, int date, int
hour, int minute, int sec)
http://www.java2all.com
33. The first form creates an object initialized with
the current date and time.
The other forms allow you to specify how
various date and time components are initialized.
The class provides all of the method defined by
Calendar and also adds the isLeapYear() method
shown here:
Boolean isLeapYear() This method returns true if the
current year is a leap year. Otherwise, it returns false.
http://www.java2all.com
34. import java.util.*;
public class gcal1 Output :
{
public static void main(String[] args)
Era is : 1
{ HOUR OF DAY is : 0
GregorianCalendar c1 = new GregorianCalendar() ;
MILLISECOND : 780
System.out.println("DATE is : " + c1.get(c1.DATE)); AM_PM : 0
System.out.println("YEAR is : " + c1.get(c1.YEAR));
System.out.println("MONTH is : " + c1.get(c1.MONTH));
System.out.println("DAY OF WEEK is : " + c1.get(c1.DAY_OF_WEEK));
System.out.println("WEEK OF MONTH is : " + c1.get(c1.WEEK_OF_MONTH));
System.out.println("DAY OF YEAR is : " + c1.get(c1.DAY_OF_YEAR));
System.out.println("DAY OF MONTH is : " + c1.get(c1.DAY_OF_MONTH));
System.out.println("WEEK OF YEAR is : " + c1.get(c1.WEEK_OF_YEAR));
System.out.println("HOUR is : " + c1.get(c1.HOUR));
System.out.println("MINUTE is : " + c1.get(c1.MINUTE));
System.out.println("SECOND is : " + c1.get(c1.SECOND));
System.out.println("DAY OF WEEK IN MONTH is : " +
c1.get(c1.DAY_OF_WEEK_IN_MONTH));
System.out.println("Era is : " + c1.get(c1.ERA));
System.out.println("HOUR OF DAY is : " + c1.get(c1.HOUR_OF_DAY));
System.out.println("MILLISECOND : " + c1.get(c1.MILLISECOND));
System.out.println("AM_PM : " + c1.get(c1.AM_PM));// Returns 0 if AM and 1 if PM */
}
}
http://www.java2all.com
36. Math Class :
For scientific and engineering calculations, a
variety of mathematical functions are required.
Java provides these functions in the Math class
available in java.lang package.
The methods defined in Math class are given
following:
http://www.java2all.com
37. Method Description
Double
Returns the sine value of angle x in radians.
sin(double x)
Double
Returns the cosine value of the angle x in radians
cos(double x)
Double
Returns the tangent value of the angle x in radians
tan(double x)
Double
Returns angle value in radians for arcsin of x
asin(double x)
Double
Returns angle value in radians for arcos of x
acos(double x)
Double
Returns angle value in radians for arctangent of x
atan(double x)
http://www.java2all.com
38. Double
Returns exponential value of x
exp(double x)
Double
Returns the natural logarithm of x
log(double x)
Double
pow(double x, Returns x to the power of y
double y)
Double
Returns the square root of x
sqrt(double x)
Int abs(double
Returns absolute value of n
n)
Double Returns the smallest wholoe number greater than or
ceil(double x) equal to x
Double Returns the largest whole number less than or equal
floor(double x) to x
http://www.java2all.com
39. Int max(int n, int
Returns the maximum of n and m
m)
Int min(int n, int
Returns the minimum of n and m
m)
Double
Returns the rounded whole number of x
rint(double x)
Int round(float
Returns the rounded int value of x
x)
Long
Returns the rounded int value of x
round(double x)
Double
Returns a random value between 0 and 1.0
random()
Double
toRandians(dou Converts the angle in degrees to radians
ble angle)
Double
toDegrees(doubl Converts the angle in radians to degrees
http://www.java2all.com
40. public class Angles
{
public static void main(String args[])
{
double theta = 120.0;
System.out.println(theta + " degrees is " + Math.toRadians(theta) + " radians.");
theta = 1.312;
System.out.println(theta + " radians is " + Math.toDegrees(theta) + " degrees.");
}
}
Output :
120.0 degrees is 2.0943951023931953
radians.
1.312 radians is 75.17206272116401
degrees.
http://www.java2all.com
42. Hashtable is a part of the java.util library and is
a concrete implementation of a dictionary.
(Dictionary is a class that represents a key/value
storage repository. Given a key and value, you can
store the value in a Dictionary object. Once the value
is stored, you can retrieve it by using its key.)
Hashtable stores key/value pairs in a hash table.
When using a Hashtable, you specify an object that is
used as a key, and the value that you want to link to
that key.
http://www.java2all.com
43. The key is then hashed, and the resulting hash
code is used as the index at which the value is stored
within the table.
The Hashtable constructors are shown here:
Hashtable()
Hashtable(int size)
The first constructor is the default constructor.
The second constructor creates a hash table that
has an initial size specified by size.
The methods available with Hashtable are
http://www.java2all.com
44. Method Description
Void clear() Resets and empties the hash table.
Boolean
Returns true if some key equals to key exists within
containsKey(Obj
the hash table. Returns false if the key isn’t found.
ect key)
Boolean Returns true if some value equal to value exists
containsValue(O within the hash table. Returns false if the value isn’t
bject value) found.
Enumeration Returns an enumeration of the values contained in
elements( ) the hash table.
Returns the object that contains the value associated
Object
with key. If key is not in the hash table, a null object is
get(Object key)
returned.
Boolean Returns true if the hash table is empty; Returns false
isEmpty( ) if it contains at least one key. http://www.java2all.com
45. Enumeration Returns an enumeration of the keys contained in the
keys( ) hash table.
Object
put(Object key Inserts a key and a value into the hash table.
Object value)
Object Removes key and its value. Returns the value
remove(Object associated with key. If key is not in the hash table, a
key) null object is returned.
Int size( ) Returns the number of entries in the hash table.
String toString( ) Returns the string equivalent of a hash table.
Enumeration Returns an enumeration of the keys contained in the
keys( ) hash table.
Object
put(Object key Inserts a key and a value into the hash table.
Object value) http://www.java2all.com
46. import java.util.*;
public class hash1
{
public static void main(String args[])
{
Hashtable marks = new Hashtable();
Enumeration names;
Enumeration emarks;
String str;
int nm;
// Checks wheather the hashtable is empty
System.out.println("Is Hashtable empty " + marks.isEmpty());
marks.put("Ram", 58);
marks.put("Laxman", 88);
marks.put("Bharat", 69);
marks.put("Krishna", 99);
marks.put("Janki", 54);
System.out.println("Is Hashtable empty " + marks.isEmpty());
// Creates enumeration of keys
names = marks.keys();
while(names.hasMoreElements())
{
str = (String) names.nextElement();
System.out.println(str + ": " + marks.get(str));
}
http://www.java2all.com
47. /*
nm = (Integer) marks.get("Janki");
marks.put("Janki", nm+15);
System.out.println("Janki's new marks: " + marks.get("Janki"));
// Creates enumeration of values
emarks = marks.elements();
while(emarks.hasMoreElements())
{
nm = (Integer) emarks.nextElement();
System.out.println(nm);
}
// Number of entries in a hashtable
System.out.println("The number of entries in a table are " + marks.size());
// Checking wheather the element available
System.out.println("The element is their " + marks.containsValue(88));
*/
// Removing an element from hashtable
http://www.java2all.com