Search:

Type: Posts; User: kobi1988

Search: Search took 0.26 seconds.

  1. Replies
    3
    Views
    1,194

    Buble sort issue

    this program will output the series of number IF among the random series there is a number larger than the consecutive number.
    BUT, what happens if the numbers will be randomly order in the right...
  2. Re: a problem with a code... (for loop and an "if" nested..)

    ummmm....
    can you give me an example to simplify it...?
    i began studying this just yesterday... :/
  3. a problem with a code... (for loop and an "if" nested..)

    the purpose of the code is to ask the user to input a string.
    if there is an "a" in it - the place of it in the string will be shown. if not - there will be a line "no a in the string".

    the...
  4. Replies
    3
    Views
    733

    [SOLVED] Re: VERY basic question - if loop

    ohhhhhh!!!!
    i got it now...!

    the nested "if" keep running before it goes another round of the "main if"...


    thanks! :)
  5. Replies
    3
    Views
    733

    [SOLVED] Re: VERY basic question - if loop

    But isn't the 'j' symbolize the number of repetitions and not the number of the spaces...?

    if i=4 and j=3 isn't it should print only one space as i ordered it?
  6. Replies
    3
    Views
    733

    [SOLVED] VERY basic question - if loop

    Hello everyone,

    I started studying Java today and couldn't understand why this code would give the result bellow it:

    INPUT:

    public class SimpleLoop {

    public static void...
Results 1 to 6 of 6