This is a discussion on What are wrapped classes within the Java Programming forums, part of the Software Development category; What are wrapped classes?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| 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); |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |