What is wrong with this function??
From: bunallo (nmnm_at_alala.com)
Date: 02/26/05
- Next message: Tilman Bohn: "Re: What is wrong with this function??"
- Previous message: Dado: "How to secure application from ilegal using?"
- Next in thread: Tilman Bohn: "Re: What is wrong with this function??"
- Reply: Tilman Bohn: "Re: What is wrong with this function??"
- Reply: klynn47_at_comcast.net: "Re: What is wrong with this function??"
- Reply: Hal Rosser: "Re: What is wrong with this function??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 26 Feb 2005 19:59:51 +0100
This function will not compile:
public int getInt(int p){
switch(p){
case 1:
return 2;
case 2:
return 3;
case 3:
return 3;
default:
System.out.println("No such input allowed");
}
}
But it returns an int!
- Next message: Tilman Bohn: "Re: What is wrong with this function??"
- Previous message: Dado: "How to secure application from ilegal using?"
- Next in thread: Tilman Bohn: "Re: What is wrong with this function??"
- Reply: Tilman Bohn: "Re: What is wrong with this function??"
- Reply: klynn47_at_comcast.net: "Re: What is wrong with this function??"
- Reply: Hal Rosser: "Re: What is wrong with this function??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]