mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-18 02:11:48 +02:00
26 lines
547 B
Java
26 lines
547 B
Java
package de.rohith;
|
|
public class PrinterWorld {
|
|
private Integer[] intArray = new Integer[2];
|
|
public PrinterWorld() {
|
|
|
|
}
|
|
public void print() {
|
|
System.out.println("Hello World!");
|
|
}
|
|
|
|
public Integer returnInt() {
|
|
return new Integer(3);
|
|
}
|
|
|
|
public Integer[] returnArrayWithCloning() {
|
|
for (int i = 0; i < intArray.length; i++) {
|
|
intArray[i] = new Integer(i++);
|
|
}
|
|
return (Integer[])intArray.clone();
|
|
}
|
|
|
|
public Integer[] returnArrayWithoutCloning() {
|
|
return intArray;
|
|
}
|
|
}
|