class ABC {
String name;
double price;
public ABC(String na, double pr) {name=na; price=pr;}
public int compareTo(ABC x) {
if(name.compareTo(x.name)>0) return 1;
if(name.compareTo(x.name)<0) return -1;
else return 0;
}
}
public class XXK5 {
public static void main(String[] args) {
String []s={"apple", "pear", "tangerme", "banana", "grape"};
double []d={3.8, 2.5, 3.2, 4.3, 5.2};
ABC []ar=new ABC[s.length];
int i,k=0;
for(i=0; i<ar.length; i++)
ar[i]=new ABC(s[i],d[i]);
for(i=1; i<ar.length; i++)
if(ar[i].compareTo(ar[k])>0) k=i;
System.out.println(ar[k].name+" "+ar[k].price);
}
}
public class XXK2 {
private int a,b;
public XXK2(int aa, int bb) {a=aa; b=bb;}
public int f1(int x) {
if(x>10) return a+b+3*x;
else return a*b*x;
}
public static void main(String[] args) {
XXK2 x=new XXK2(3,4);
int y=x.f1(8);
System.out.println("y="+y);
}
}
public class XXK4 {
public static void main(String[] args) {
int []a={2,5,8,10,15,20};
int s=0;
for(int i=0; i<a.length; i++) s+=a[i];
System.out.println("s="+s);
}
}
public class XXK4 {
public static void main(String[] args) {
String []a={"xxk","weirong","xucong","xuxiaohua","baojuan"};
int m=0;
for(int i=0; i<a.length; i++) {
int n=a[i].length();
if(n>m) m=n;
}
System.out.println("m="+m);
}
}
Public class Test {
Public static void main(String[] args) {
Vector teamList = new Vector();
teamList.add("Z");
teamList.add("L");
teamList.add("W");
teamList.remove(0);
teamList.remove(0);
System.out.println(teamList.size()+","+teamList.get(0));
}
}
class ABC {
int a,b;
public ABC(int a, int b) {this.a=a; this.b=b;}
public int compareTo(ABC x) {return a*b-x.a*x.b;}
}
public class XXK5 {
public static void main(String[] args) {
int [][]d={{3,8},{4,6},{5,6},{2,9},{6,7},{5,8}};
ABC []ar=new ABC[d.length];
int i,k=0;
for(i=0; i<ar.length; i++)
ar[i]=new ABC(d[i][0],d[i][1]);
for(i=1; i<ar.length; i++)
if(ar[i].compareTo(ar[k])>0) k=i;
System.out.println("k="+k);
}
}
class ABC {
String name;
double price;
public ABC(String na, double pr) {name=na; price=pr;}
public int compareTo(ABC x) {
if(name.compareTo(x.name)>0) return 1;
if(name.compareTo(x.name)<0) return -1;
else return 0;
}
}
public class XXK5 {
public static void main(String[] args) {
String []s={"apple", "pear", "tangerme", "banana", "grape"};
double []d={3.8, 2.5, 3.2, 4.3, 5.2};
ABC []ar=new ABC[s.length];
int i,k=0;
for(i=0; i<ar.length; i++)
ar[i]=new ABC(s[i],d[i]);
for(i=1; i<ar.length; i++)
if(ar[i].compareTo(ar[k])>0) k=i;
System.out.println(ar[k].name+" "+ar[k].price);
}
}
public class StackTest {
public static void main(String[] args) {
Stack<Integer> st = new Stack<Integer>();
st.push(new Integer(11));
st.push(new Integer(22));
st.push(new Integer(33));
System.out.println("size is-> "+st.size());
System.out.println("Top is-> "+st.peek());
st.pop();
System.out.println("new Top is-> "+st.peek());
}
}
命题公式┐(P→Q)的主析取范式是P∨┐Q.( )
命题公式┐P∧P的真值是T.( )
命题公式P→(Q∨P)的真值是T.( )
命题公式┐P∧(P→┐Q)∨P为永真式.( )
文件ABC.mp3存放在F盘的T文件夹中,它的完整路径是F:\T\ABC.mp3。
文件ABC.mp3存放在F盘的T文件夹中,它的完整路径是F:\T\ABC.mp3。
1.工程项目的多次计价是一个( )过程。
11.子项目单位价格由( )决定。
12.工程估价的依据有( )。
14.预算定额中人工工日消耗量等于( )。
18.哪个不是劳动定额的编制方法( )
19.工料单价与综合单价的关系是( )。
20.下列不属于材料预算价格的内容是( )。
5.影响工程估价的基本因素有( )。
18.钢筋工程中钢筋网片工程量( )。
1.编制措施项目清单时应依据( )。
15.编制施工图预算应使用( )。
20.预算造价是在 ( ) 阶段编制的。
3.流动资金估算的方法有( )。
5.设计概算可分为( )。
7.编制施工图预算的方法有( )。
20.竣工决算文件中,主要反映竣工工程建设成果和经验,全面考核分析工程投资造价的
书面总结文件是( )。
public static void main(String[] args) {
int x, y=0;
for(x=1; x<5; x++) y+=x*x;
System.out.println("y="+y);
}
public static void main(String[] args) {
int x, y=0;
for(x=1; x<10; x++)
if(x%2==0) y+=x*x;
System.out.println("y="+y);
}
public static void main(String[] args) {
int x=1, y=1;
while(x++<5) y+=x*x;
System.out.println("y="+y);
}
免费的网站请分享给朋友吧