Click here to Skip to main content
16,022,737 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

i am trying to put the getname into the array list but it is giving error





C#
package appstore;

import java.util.ArrayList;

/**
 *
 * @author k1227203
 */
public class Tester {
     ArrayList<Customer>  a = new ArrayList<Customer>();

    public static void main(String[] args){


       Customer c = new Customer(0,"Dillon","60D byron avune","Student",10.00);
       //Customer c2 = new Customer(0,"max","60D bye","Student",20.00);




       a.add(c.getName());










    }



}















Posted
Updated 25-Nov-13 5:37am
v2

1 solution

This article[^] might help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900