Java基础:用面向对象方法打印三角形 效果如图: 代码如下: class triangle{ public static void main(String[] args){ GraphiTools tools = new