This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
can anyone please let me know why is the following code not working fine?
public class TestFor { public static void main(String [] args) {
signed int x = 10; for (int y=0; y<5; y++, x--) System.out.print(" " + x); } }
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35250
7
posted
0
Welcome to JavaRanch.
The title of your post contains the answer to your question: Java does not have "signed" and "unsigned" keywords. byte, short, int and long are by definition signed.