import java.util.Random;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class test extends JFrame{
public static void main(String[]args){
ImageIcon img[] = new ImageIcon[17];
for(int i=1;i<=16;i++){
img[i]=new ImageIcon("E:\\java\\"+i+".png");
}
ily19932014 發表在 痞客邦 留言(0) 人氣()
<html>
<head>
<title> The First Example: Hello, World </title>
</head>
<body>
<h2> This line is HTML </h2>
<script language="JavaScript">
ily19932014 發表在 痞客邦 留言(0) 人氣()
import java.util.Random;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class test extends JFrame{
public static void main(String[]args){
ily19932014 發表在 痞客邦 留言(0) 人氣()
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class test
{
public static void main(String[] args)
{
JFrame jtfMainFrame = new JFrame("安安");
ily19932014 發表在 痞客邦 留言(0) 人氣()
System.out.print("Feng-Chia"); } }
ily19932014 發表在 痞客邦 留言(0) 人氣()
Private Sub CommandButton1_Click()
For i = 1 To 9
For j = 2 To 9
ily19932014 發表在 痞客邦 留言(0) 人氣()
<script language="JavaScript">
VIH_BackColor = "palegreen";
VIH_ForeColor = "navy";
VIH_FontPix = "16";
VIH_DisplayFormat = "You are visiting from:<br>IP Address: %%IP%%<br>Host: %%HOST%%";
VIH_DisplayOnPage = "yes";
</script>
<script language="JavaScript" src="http://scripts.hashemian.com/js/visitorIPHOST.js.php"></script>
ily19932014 發表在 痞客邦 留言(0) 人氣()
import java.net.*;
public class TestInet1 {
public static void main(String argv[])
{
try {
InetAddress myip = InetAddress.getLocalHost();
System.out.println(myip.getHostName());
System.out.println(myip.getHostAddress());
} catch (UnknownHostException e) {
System.out.println("Error: unable to resolve localhost");
}
}
}
ily19932014 發表在 痞客邦 留言(0) 人氣()
/**
* The HelloWorldApp class implements an application that
* simply prints "Hello World!" to standard output.
*/
class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); // Display the string.
}
}
ily19932014 發表在 痞客邦 留言(0) 人氣()
<html>
<head>
<title> The First Example: Hello, World </title>
</head>
<body>
<h2> This line is HTML </h2>
<script language="JavaScript">
<!--
document.write("Hello, World.This sentence is written using JavaScript.");
// Text on the right of 2 slashes is comment
/* This is comment
that occur more than 1 line
*/
//-->
</script>
<noscript>
Sorry, but your browser doesn't run JavaScript.
</noscript>
<h2> This line is HTML </h2>
</body>
</html>
ily19932014 發表在 痞客邦 留言(0) 人氣()