`
langzibuhuan
  • 浏览: 9359 次
  • 性别: Icon_minigender_1
  • 来自: 郑州
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论
文章列表
package player; import javax.media.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class MediaPlay extends Frame implements ActionListener, ControllerListener, ItemListener{     Player player;   //JMF播放器     Component vedio_Component;   //播放器的视频组件     Component control_Co ...
import java.net.InetAddress;   //引入类 import java.net.UnknownHostException;   public class TextGetIPAndDomain {   //操作获取IP地址和域名的类 public static void getLocalIP(){   //获取本机的IP地址 try{ InetAddress addr = InetAddress.getLocalHost();   //创建本 ...
import java.awt.*; import java.applet.*; public class CartesianCurve extends Applet{    int width, height;    Image image;    Graphics draw_Curve;    public void init(){ setBackground(Color.black); this.setSize(350, 310); width = getSize().width; height = getSize().height; image = createImage ...
[/color][color=darkblue] 除两侧元素均为1外,其余每个位置上的元素值其正上方元素与左上方元素之和,用数组来描述则为a[i][j] = a[i - 1][j - 1] + a[i - 1][j] public class TextTriangle { public static void yanghui(int a[][], int ROW){ for(int i = 0; i <= ROW; i++){ for(int j = 0; j <= a[i].length - 1; j++){ if(i == 0 || j == 0 || j ...
[color=blue][/color] public class HelloWorld{ public void sayHelloWorld(String str){ System.out.println("传入的参数: " + str); System.out.println("str: " + sayHelloWorld"); } public static void main(String[] args[]) { HelloWorld sayHelloWorld = new HelloWorld; hello.sayHelloWorld( ...
Global site tag (gtag.js) - Google Analytics