摘要: 以下是「Core Java for the Impatient」一书第一章的第15道习题及解答。 题目: Write a program that stores Pascal’s triangle up to a given n in an ArrayList . 解答: 思路 1. 把ArrayL 阅读全文
posted @ 2017-07-24 00:16 书胆文心 阅读(179) 评论(0) 推荐(0)
摘要: 以下是「Core Java for the Impatient」一书第一章的第14道习题及解答。 题目: Write a program that reads a two dimensional array of integers and determines whether it is a mag 阅读全文
posted @ 2017-07-23 23:36 书胆文心 阅读(221) 评论(0) 推荐(0)