- May 19 Thu 2005 15:49
-
不打工=很空虛?
- May 18 Wed 2005 11:39
-
難道真的很脆弱?
- May 12 Thu 2005 08:43
-
substring
- May 10 Tue 2005 11:45
-
StringIndexMethods
import javax.swing.*;
public class oo {
public static void main( String args[] )
{
String letters = "abcdefghijklmabcdefghijklm";
String output = "'c' is located at index " + letters.indexOf( 'c' );
output += "'a' is located at index " + letters.indexOf( 'a', 1 );
output += "'$' is located at index " + letters.indexOf( '$' );
output += "Last 'c' is located at index " +
letters.lastIndexOf( 'c' );
output += "Last 'a' is located at index " +
letters.lastIndexOf( 'a', 25 );
output += "Last '$' is located at index " +
letters.lastIndexOf( '$' );
public class oo {
public static void main( String args[] )
{
String letters = "abcdefghijklmabcdefghijklm";
String output = "'c' is located at index " + letters.indexOf( 'c' );
output += "'a' is located at index " + letters.indexOf( 'a', 1 );
output += "'$' is located at index " + letters.indexOf( '$' );
output += "Last 'c' is located at index " +
letters.lastIndexOf( 'c' );
output += "Last 'a' is located at index " +
letters.lastIndexOf( 'a', 25 );
output += "Last '$' is located at index " +
letters.lastIndexOf( '$' );
- May 05 Thu 2005 09:02
-
String Constructors
public class test{
public static void main(String arg[])
{
char charArray[]={'b','i','r','t','h',' ','d','a','y'};
byte byteArray[]={(byte)'h',(byte)'e',(byte)'w',(byte)' ',
public static void main(String arg[])
{
char charArray[]={'b','i','r','t','h',' ','d','a','y'};
byte byteArray[]={(byte)'h',(byte)'e',(byte)'w',(byte)' ',
- May 04 Wed 2005 09:46
-
讀書
- May 03 Tue 2005 11:59
-
待考 有錯誤
- May 03 Tue 2005 11:17
-
int frequency
import javax.swing.*; public class oo
{ public static void main(String args[]) {
int responses[]= {1,2,6,4,8,5,9,7,8,10,1,6,3,8,6,10,3,8,2,7,6,5,7,6,8,6,7,5,6,6,5,6,7,5,6,4,8,6,8,10};
int frequency[]=new int[11];
for(int answer=0;answer ++frequency[responses[answer] ];
String output="Rating Frequency";
for(int rating=1;rating output +=rating+" "+frequency[rating]+"";
JTextArea outputArea=new JTextArea();
outputArea.setText(output);
JOptionPane.showMessageDialog(null,outputArea,
"Student Poll Program",JOptionPane.INFORMATION_MESSAGE);
System.exit(0);
}
}
{ public static void main(String args[]) {
int responses[]= {1,2,6,4,8,5,9,7,8,10,1,6,3,8,6,10,3,8,2,7,6,5,7,6,8,6,7,5,6,6,5,6,7,5,6,4,8,6,8,10};
int frequency[]=new int[11];
for(int answer=0;answer ++frequency[responses[answer] ];
String output="Rating Frequency";
for(int rating=1;rating
JTextArea outputArea=new JTextArea();
outputArea.setText(output);
JOptionPane.showMessageDialog(null,outputArea,
"Student Poll Program",JOptionPane.INFORMATION_MESSAGE);
System.exit(0);
}
}
- May 01 Sun 2005 18:31
-
接受自己
- Apr 28 Thu 2005 16:37
-
♀女人話題♂
昨天晚上和今天跟小吱吱和小魚聊了一些男女的事
說男人怎樣怎樣的~還說初戀情人大部分都不能在一起到老等等的
或許真正適合自己的人˙真的已經天註定的了
這讓我想到國中時看的一個兩性故事
安卓糾諾斯~是由一男一女背對背黏在一起的一種生物
說男人怎樣怎樣的~還說初戀情人大部分都不能在一起到老等等的
或許真正適合自己的人˙真的已經天註定的了
這讓我想到國中時看的一個兩性故事
安卓糾諾斯~是由一男一女背對背黏在一起的一種生物

