java - Two dimensional array- Session -


i have 2 dimensional matrix want add session. add integer session object syntax is

session.setattribute("mat", mat); int matr = (integer) session.getattribute("mat");

searched lot syntax add int[][] session. firstly can add, if yes idea on how go forward it?

try below 1 :-

int[][] 2darr = new int[2][3]; session.setattribute("2darr", 2darr ); int[][] 2darrfromsession = (int[][]) session.getattribute("2darr"); 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -