Results 1 to 5 of 5
  1. #1

    Default calling this method.....unsaon?

    [JAVA]
    import java.util.*;
    import loop.create.methodone;
    public class Createloop {
    public static void main(String[] args) {
    Scanner input = new Scanner(System.in);
    System.out.println("Enter first number:");
    double a = input.nextDouble();
    System.out.println("Enter second number:");
    double b = input.nextDouble();
    methodone r = new methodone(); }}
    [/JAVA]
    [JAVA]
    public class methodone {
    public void Aaa(double a,double b){
    if (a < b){
    for (double c = a + 1; c < b; c++){
    System.out.print(c);
    }
    }
    else
    {
    for (double x = b + 1; x < a; x++)
    {
    System.out.print(x);
    }
    }
    }
    }
    [/JAVA]
    unsay sunod nako ibutang sa
    methodone r = new methodone(); ?

  2. #2

    Default Re: calling this method.....unsaon?

    r.Aaa(a,b);

    Java ni bro, dili PHP

  3. #3

    Default Re: calling this method.....unsaon?

    hahaha galibog ko ab kog PHP ba nia pagkita nako sa system.out.print, naa d i nay syntax sa php? ahaha JAVA na boss

  4. #4

    Default Re: calling this method.....unsaon?

    ay sorry hehehe nalipat ko ...........anyway thanks bro.......ako man gud gibuhat kay kani:
    methodone r = new methodone();
    double anynum = r.Aaa(a,b);
    maong red pulos ang linya..............

    anaon raman diay.........................daghang salamat ^_^

  5. #5

    Default Re: calling this method.....unsaon?

    call other methods or fields that are belong to your class.

Similar Threads

 
  1. What shall we call this kind of wipes?
    By JesseConant in forum Fitness & Health
    Replies: 6
    Last Post: 04-21-2013, 11:26 AM
  2. they called this a bad nvidia cuda cracker server
    By dammy in forum Networking & Internet
    Replies: 0
    Last Post: 08-10-2011, 11:35 PM
  3. Unsaon nimo pagka kibaw if this guy naibog nimo?
    By emerald in forum "Love is..."
    Replies: 136
    Last Post: 12-02-2009, 07:59 PM
  4. how do you call this term?
    By mr_kyme in forum Business, Finance & Economics Discussions
    Replies: 9
    Last Post: 02-13-2008, 04:47 AM
  5. This Dragon Called People Power
    By Blongkoy in forum Politics & Current Events
    Replies: 7
    Last Post: 07-14-2005, 03:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top