//charAtOp.java
//求字符串的长度及每一个位置上的字符
public class charAtOp
{
public static void main(String args[])
{
String s="abcdefgh";
int l=s.length();
System.out.println("字符串s的长度为:"+l);
for
public class DemoCommandLineArgs
{
public static void main(String[] args)
{
System.out.println("You sent in " + args.length + " arguments.");
for (int i = 0; i < args.length; i++)
Syste
public class BasicBox
{
int length, width, height;
/** constructor */
public BasicBox(int l, int w, int h)
{
length = l;
width = w;
height = h;
}
public String toString()
{
public class ThreeMethodsTimed
{
/** Return the largest value in the array. */
public static short getMax(short[] array)
{
short largest = array[0];
for (int i = 1; i < array.length; i++)