Search:

Type: Posts; User: Shiraz

Search: Search took 0.08 seconds.

  1. Replies
    2
    Views
    739

    Why the" int i" is getting the value 0

    Hi All,
    I wrote the following code:



    public class Question_9 {
    int i;

    Question_9(int i){
    i=i;
  2. Replies
    4
    Views
    959

    Question on While Loops

    Hi there, I'm an absolute beginner on Java. I wrote the following piece of code. I ran it and it gives the output as 1.
    Since 1 is not greater than 10, it should NOT execute the println at all. But...
Results 1 to 2 of 2