adt - How to create a complex type in android -
is there sample or tutorial teach how create complex type in android, likes message<double,double,string,int>
?
why aren't generating own class? please know java little more better, , have @ java book.
public class message { private double _double1, double2; private string _message; private int _number; public message(double _double1, double double2, string _message, int _number) { super(); this._double1 = _double1; this.double2 = double2; this._message = _message; this._number = _number; } public double get_double1() { return _double1; } public void set_double1(double _double1) { this._double1 = _double1; } public double getdouble2() { return double2; } public void setdouble2(double double2) { this.double2 = double2; } public string get_message() { return _message; } public void set_message(string _message) { this._message = _message; } public int get_number() { return _number; } public void set_number(int _number) { this._number = _number; } }
Comments
Post a Comment