Results 1 to 2 of 2
Thread: Array Method Testing
- 04-15-2009, 04:42 AM #1
Member
- Join Date
- Feb 2009
- Posts
- 11
- Rep Power
- 0
Array Method Testing
I'm having trouble with writing my test for a method that takes an int array and changes it around to ascending order....
I have my method already developed but Im having problems writing the tests. Note that my method does not return anything it is "public void".
So how to write a test for an array method that does not return anything but just alters input???
Thanks
- 04-15-2009, 08:23 AM #2
Senior Member
- Join Date
- Dec 2008
- Location
- Hong Kong
- Posts
- 473
- Rep Power
- 5
if is array... then you just print out the value of elements in the array in the main function
Similar Threads
-
Problem using the toUpperCase method with character array...
By lisalala in forum New To JavaReplies: 2Last Post: 02-24-2009, 04:32 PM -
Int Array Allowed in main() Method?
By Starclopsofish in forum New To JavaReplies: 19Last Post: 10-03-2008, 04:22 PM -
return Set .toArray(); method as an array of integers
By maxim in forum New To JavaReplies: 2Last Post: 04-16-2008, 12:35 PM -
Recursive Method ==> find minimum value from array
By NatNat in forum New To JavaReplies: 1Last Post: 02-16-2008, 09:10 PM -
Recursive Method ==> find how many times a value is repeated in an array
By NatNat in forum New To JavaReplies: 2Last Post: 02-16-2008, 08:52 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks