手机飞信学习
来源:互联网 发布:结对编程 图片 编辑:程序博客网 时间:2024/04/25 17:40
int[] intArray = new int[] {4, 1, 3, -23}; int[] i; i = new int[2]{}; for(int i=1;ia[max]) max= i; return a[max];init()show()getMax()
import java.util.*;
public class useScanner{
public static void main(String argv[]){
Scanner in = new Scanner(System.in);
System.out.print("请输入你的姓名:");
String name = in.nextLine();
System.out.print("请输入你的年龄:");
int age = in.nextInt();
System.out.print("请输入你的身高(单位:米):");
double height = in.nextDouble();
System.out.println("姓名:"+name+" 年龄:"+age+" 身高:"+height+"米");
}
}
public class fileOut {
public static void main (String argv[]){
FileInputStream fin;
FileOutputStream fout;
int ch;
try{
fin = new FileInputStream(FileDescriptor.in);
fout = new FileOutputStream("I:/out.txt");
System.out.println("请输入一行字符");
while ((ch =fin.read())!='/n')
fout.write(ch);
fin.close();
fout.close();
System.out.println("文件写入成功!");
}catch (FileNotFoundException e){
System.out.println("不能创建文件");
}catch(IOException e){
System.out.println("输入流有误!");
}
}
}
public class getMaxElem {
public static void main (String argv[]){
int ar[]= new int[10];
init(ar);
show(ar);
System.out.println("/n最大值为:"+getMax(ar));
}
public static void init(int a[]){
for(int i=0;i a[i]= (int)(Math.random()*1000);
}
public static int getMax(int a[]){
int max= 0;
for(int i=1;i if(a[i]>a[max]) max= i;
return a[max];
}
public static void show(int a[]){
System.out.println("数组序列为:");
for (int i= 0;i System.out.print(" "+a[i]);
}
}
public class fileOut {
public static void main (String argv[]){
FileInputStream fin;
FileOutputStream fout;
int ch;
try{
fin = new FileInputStream(FileDescriptor.in);
fout = new FileOutputStream("I:/out.txt");
System.out.println("请输入一行字符");
while ((ch =fin.read())!='/n')
fout.write(ch);
fin.close();
fout.close();
System.out.println("文件写入成功!");
}catch (FileNotFoundException e){
System.out.println("不能创建文件");
}catch(IOException e){
System.out.println("输入流有误!");
}
}
- 手机飞信学习
- 手机微信目录
- 微信手机支付
- 微信支付:手机支付
- N81格机后要装的常用软件(手机水印截图和飞信3.0版)
- java调用飞信接口免费短信发送到对方手机
- 山寨手机复活之路信自己!
- 泰信iPhone手机摇控器简介
- 手机微信聊天记录怎么恢复
- 手机 微信 试玩 IOS
- 手机浏览器中打开微信
- 微信、手机页面禁止页面下拉
- 手机APP微信支付返回-1
- 微信浏览器调用手机摄像头录像
- 查看手机是否安装微信客户端
- 微信手机帐号同步从如入坑到脱坑记
- js手机抽奖、微信抽奖模板
- 微信浏览器调用手机摄像头录像
- 第十三天总结0407
- 神奇的汇编(三)
- 错误:INFO: CReg2440Uart::CReg2440Uart using processor frequency reported by the OAL
- C++ 菜鸟使用默认构造函数容易出现的错误
- java学习之JNI 学习四 创建JAVA对象
- 手机飞信学习
- java数组
- java编程思想学习笔记01
- Unusual memory bit patterns
- 嘻嘻
- 2010-04-07
- Struts2 XML配置详解
- VMware下Ubuntu linux配置 NAT 网络
- Struts2 中文乱码问题解决