Search:

Type: Posts; User: vinaysa86

Search: Search took 0.26 seconds.

  1. Replies
    4
    Views
    717

    need help in program creation

    Suppose there is an integer array holding following elements:
    1,3,4,5,6,3,2,4,6,7,9,4,12,3,4,6,8,9,7,6,43,2,4,7,7,5,2,1,3,4,6,311,1

    Write a program which prints which each number from array and...
  2. Replies
    6
    Views
    381

    Re: Static Function

    public void sendMail()
    {
    int y = 300;
    name = "Vinay";
    age = 26;
    sum();
    sendMail(); // It is also recursive but not showing any error.
    }
    }
  3. Replies
    4
    Views
    353

    Re: generateRandomNumber

    Please provide code for it.
  4. Replies
    6
    Views
    381

    Static Function

    public class Static_and_nonstatic {
    String name;
    static int age;
    public static void main(String[] args)
    {
    age = 26;
    sum();
    }
    public static void sum()
    {
  5. Replies
    4
    Views
    372

    generateRandomNumber

    What is generateRandomNumber class ?
    Please explain with example.
  6. Replies
    4
    Views
    353

    generateRandomNumber

    public class Utility1
    {
    public static void main(String[] args)
    {
    generateRandomNumber(100);
    }
    public static int generateRandomNumber(int n)
    {
    System.out.println(n);
    return n;
  7. Replies
    8
    Views
    299

    Re: problem in understanding output.

    I got it now.

    Thanks !
  8. Replies
    8
    Views
    299

    Re: problem in understanding output.

    string sum = a+b+c;

    where a is string and b,c are integers.

    Will it work then?
  9. Replies
    8
    Views
    299

    Re: problem in understanding output.

    I want to display output a20.
    What should be the code then?
  10. Replies
    8
    Views
    299

    Re: problem in understanding output.

    If I put "a" instead of 'a', will it display a20.
  11. Replies
    8
    Views
    299

    problem in understanding output.

    public class Function2
    {
    public static void main(String[] args)
    {
    sumAll(10,20,30);
    sumAll('a',10,10);
    }
    public static void sumAll(int a, int b, int c)
    {
    int sum = a+b+c;
Results 1 to 11 of 11