摘要:
/***Java获取IP代码*/import java.awt.GridLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.net.InetAddress;import java.net.UnknownHostException;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JLabel;import javax.swing.JPanel;import javax.swi 阅读全文
摘要:
/***Java获取IP代码*/import java.awt.GridLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.net.InetAddress;import java.net.UnknownHostException;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JLabel;import javax.swing.JPanel;import javax.swi 阅读全文
摘要:
/**程序名称:二维数组横竖倾斜遍历*/class array8 { public static void main(String[] args) { int[][] a = new int[9][9]; for(int i = 0; i = 0)&&((i - j) = 0)&&((i + j)< 9)) { System.out.print(a[j][i+j]+" "); } } ... 阅读全文