代码搜索:println
找到约 10,000 项符合「println」的源代码
代码结果 10,000
www.eeworm.com/read/182664/9197102
java exceptionmethods.java
public class ExceptionMethods
{ public static void main(String args[ ])
{ try
{ throw new Exception("Here's my Exception");
}
catch(Exception e)
{ Sys
www.eeworm.com/read/182664/9197107
java rethrownew.java
//Rethrow a different object from the one that was caught
public class RethrowNew
{ public static void f( ) throws Exception
{ System.out.println("originating the exception in f( )");
www.eeworm.com/read/182664/9197109
java throwout.java
public class ThrowOut
{ public static void main(String args[ ]) throws Throwable
{ try
{ throw new Throwable( ); }
catch (Exception e)
{ System.out.println
www.eeworm.com/read/182664/9197111
java arrayoutof.java
class ArrayOutOf
{ public static void main(String args[ ])
{ System.out.println("ArrayOutOfBoundsException Demo");
char [ ] buf={'a','b','c'};
int i;
for(i=0;i
www.eeworm.com/read/182664/9197272
java calculator.java
// Calculator.java: Pass parameters from the command line
public class Calculator
{
// Main method
public static void main(String[] args)
{
// The result of the operation
int resu
www.eeworm.com/read/182664/9197318
java helloworld.java
//程序名HelloWorld.java (有main()方法)
public class HelloWorld
{ public static void main(String args[ ])
{ System.out.println("Hello,World!");
}
}
www.eeworm.com/read/182664/9197335
java hello.java
//Our first Java program.
public class Hello //声明一个类
{
public static void main(String[] args) //主函数,程序起始执行点
{
System.out.println("Hello World!"); //打印Hello World
}
}
www.eeworm.com/read/182664/9197336
java outputarg.java
//Our first Java program.
public class OutputArg
{
public static void main(String[] args)
{
if(args.length==0)
{
System.out.println("No parameter.");
}
else
{
for(int i=
www.eeworm.com/read/182664/9197630
java point.java
public class Point
{ //平面上点的类
private double x,y;
public Point(double a,double b)
{ x=a;
y=b;
}
public double x( )
{ return x;
}
public do
www.eeworm.com/read/182664/9197640
java pointdemo.java
class Point //平面上点的类
{ private double x,y;
public Point(double a,double b)
{ x=a;
y=b;
}
public double x( )
{ return x;
}
public double y