{filelink=11192}
public class AutoBox {
public static void main(String args[]) {
Integer obI = 150; // autobox d
|
AutoBoxing
Autobox et unbox à l’interieur d’une expression
{filelink=11194}
public class ExpAutoBox {
public static void main(String args[]) {
Integer obI, obI2;
|
Autobox et unbox: Mixage de Integer et Double
{filelink=11195}
public class DoubleAutoBox {
public static void main(String args[]) {
Integer obI = 100;;
D
|
Autobox et unbox: Exemple des types booléens et caractères*
{filelink=11196}
public class BooléenEtCharBox{
public static void main(String args[]) {
Boolean b = true;
|
Autobox et unbox: mauvaise conversion*
{filelink=11197}
public class UnboxingError {
public static void main(String args[]) {
Integer iOb = 1000; //
|
Autobox et unbox
{filelink=11198}
/*
License for Java 1.5 'Tiger': A Developer's Notebook
(O'Reilly) example package
*/
p
|
Autobox: Autoboxer et int
{filelink=11199}
public class AutoboxDemo {
public static void main(String[] args) {
int i = 42;
foo(i);
}
|