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
Post a Comment