Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class Vector{
- Object[] a = new Object[10];
- public toString(){
- a[0].toString();
- }
- }
- Class Vector{
- Int[] a = new Int[10];
- Public Array toArray(){
- Int[] newA = new Int[10];
- System.arraycopy( a, 0, newA, 0, 10);
- return newA;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement