Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

How to declare a generic type Multi-Dimensional array in java -


i want store array of 100 int elements in rows ie 1 row of 100 int datatypes.and every single element contains array of 100 objects.how in java or android.

use collection, "list of list":

list<list<yourtype>> matrix2d = new arraylist<list<yourtype>>(); 

this structure can store table 200 rows , 100 columns each element of type yourtype.

otherwise - if size fixed , want store yourtype values, theres no need generics:

int rows = 200; int columns = 200; yourtype[][] matrix2d = new yourtype[rows][columns]; 

Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -