473,386 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

size of the arraylist --- its very urgent!!!!

need a class
which is same as ArrayList
and it's toString() (overridden )should return size of arraylist
Mar 3 '08 #1
7 1123
Ganon11
3,652 Expert 2GB
Ummm...use the ArrayList class?

Or write your own subclass of ArrayList and override the toString() method?
Mar 3 '08 #2
Ummm...use the ArrayList class?

Or write your own subclass of ArrayList and override the toString() method?

Could u pls expand the code?
Mar 3 '08 #3
Laharl
849 Expert 512MB
We don't spoonfeed code here. This is clearly a homework assignment and we're not just going to give you a bunch of code that you probably don't understand. We will, however, take what you've started and have problems with and help you with the problems you're having.
Mar 3 '08 #4
JosAH
11,448 Expert 8TB
@OP: please don't double post. I have deleted your other identical thread.

kind regards,

Jos (mod)
Mar 3 '08 #5
BigDaddyLH
1,216 Expert 1GB
If this is a real request rather than an exercise, please explain why you want the toString method to return the size.
Mar 3 '08 #6
JosAH
11,448 Expert 8TB
If this is a real request rather than an exercise, please explain why you want the toString method to return the size.
While we're at it, I'm also curious why it's so urgent.

kind regards,

Jos
Mar 3 '08 #7
BigDaddyLH
1,216 Expert 1GB
While we're at it, I'm also curious why it's so urgent.

kind regards,

Jos
I usually assume it is too late to respond to any urgent request.
Mar 3 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Imran | last post by:
Hello All Am trying to read a huge txt file and write to a file back. pls see the code int main() { char* pData;
0
by: john | last post by:
Hi,All MS Tech Gurus: I need your help!!! It is the second time I post this message, I need get some feedback ASAP, Please Help!! Thanks a lot in advance. John I have a csharp method, using...
18
by: Sam | last post by:
Hi All I'm planing to write an application which allows users dynamically add their points (say you can add upto 30,000) and then draw xy graph. Should I use an array for my coordinate point...
3
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from...
3
by: Michael Slattery | last post by:
Hello, I see quite a few questions, but no valid responses to the question... How do I store an ArrayList of items in a Properties file via the GUI? I am able to select the...
12
by: Robert Hooker | last post by:
We are moving to .NET2.0 - and have noticed that .Contains() seems to be around 20% slower under NET2, compared to NET1.1. This code shows the issue: static void Main(string args) {...
5
by: igotyourdotnet | last post by:
I'm creating a web service this is going to return an arraylist of items. When I try and run it Im' getting the following error message: System.InvalidOperationException: There was an error...
5
by: suvarna | last post by:
Is it possible to reduce page size so that I can print more than one page on one page by inserting page break after each page printing. this feature must be printer dependent. i want it for hp...
0
by: wajedali | last post by:
hi......... i have problem in incresing and decreasing the component. I have a one main panel (i.e. i used as _basewindowPanel) in that again two panel in that two panel like wise.... ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.