02运算符、表达式、流程控制.ppt

* * * * * * * * * * package com.softeem.jbs.p1; public class TestCal { /** * @param args */ public static void main(String[] args) { TestCal test = new TestCal(); System.out.println(test.add(10)); System.out.println(test.statistic); } /** * * @param a * @return */ public int add(int a) { int b = 1; for (int i = 2; i = a; i++) { b = b * i; } return b; } /** * * @param a * @return */ public int statistic(int a) { int count = 0; // for(int i = 0; i 32; i++){ // if((a b) == b) // count++; // b = 1; // } for (int

文档评论(0)

1亿VIP精品文档

相关文档