IT Community - Software Programming, Web Development and Technical Support

What are wrapped classes

This is a discussion on What are wrapped classes within the Java Programming forums, part of the Software Development category; What are wrapped classes?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Java Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-16-2007, 03:07 AM
vadivelanvaidyanathan vadivelanvaidyanathan is offline
D-Web Genius
 
Join Date: Feb 2007
Posts: 803
vadivelanvaidyanathan is on a distinguished road
Question What are wrapped classes

What are wrapped classes?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-16-2007, 11:24 PM
velhari velhari is offline
D-Web Programmer
 
Join Date: Mar 2007
Location: Chennai
Posts: 67
velhari is on a distinguished road
Send a message via AIM to velhari
Default Re: What are wrapped classes

Quote:
Originally Posted by vadivelanvaidyanathan View Post
What are wrapped classes?
In java, If you read the input from keyboard and it accept them as string only.
if suppose you want to accept the integer input from keyboard means, you have to use wrapped class for that to acheive.
This case is applied for float, boolean, double long also

Some of wrapped classes are, Integer, Float, Boolean, Double, Long

For Example,

Code:
int a;
DataInputStream din = new DataInputStream(System.in);
String Input = din.readLine();
a = Integer.parseInt(Input);
System.out.println(a);
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Abstract classes ragavraj PHP Programming 3 12-07-2007 07:55 AM
classes of exceptions may be thrown by a throw statement anbuchezhians Java Programming 1 08-01-2007 11:58 PM
Why would I want to obfuscate J2ME classes? bluesky J2ME 1 07-25-2007 06:06 AM
Using C# and VB.NET classes together in the App_Code folder Gopisoft VB.NET Programming 0 07-17-2007 10:39 PM
Difference of Structures and Classes vigneshgets C and C++ Programming 1 05-24-2007 11:53 AM


All times are GMT -7. The time now is 11:09 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0