85. Maximal Rectangle Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. For example, given the following matrix: 1 0 1 0 0 1 0 1 1 1 0 0 1 0 Return 6.
Android中有很多方法存储数据,如SharedPreferences.SQLite数据库等.简单数据的存储适用SharedPreferences. 本文使用SharedPreferences写入和读出address_server.port_server和port_client三个数据. 首先,需要先定义sp和editor两个变量: // SharedPreferences变量 public static SharedPreferences sp; public static Editor e