public class Test {
public static method1(int n, m){
n += m;
method2(3.4);
}
public static int method2(int n){
if (n > 0)return 1;
else if (n == 0) return 0;
else if (n < 0) return -1;
}
}
richies 0 Newbie Poster
pinsickle 17 Junior Poster in Training
sean.blaney 0 Newbie Poster
kramerd 29 Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.