# Search:

Type: Posts; User: vinaysa86

1. ## Thread: need help in program creation

by vinaysa86
Replies
4
Views
1,218

### 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. ## Thread: Static Function

by vinaysa86
Replies
6
Views
576

### 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. ## Thread: generateRandomNumber

by vinaysa86
Replies
4
Views
460

### Re: generateRandomNumber

Please provide code for it.
4. ## Thread: Static Function

by vinaysa86
Replies
6
Views
576

### 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. ## Thread: generateRandomNumber

by vinaysa86
Replies
4
Views
519

### generateRandomNumber

What is generateRandomNumber class ?
Please explain with example.
6. ## Thread: generateRandomNumber

by vinaysa86
Replies
4
Views
460

### 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. ## Thread: problem in understanding output.

by vinaysa86
Replies
8
Views
427

### Re: problem in understanding output.

I got it now.

Thanks !
8. ## Thread: problem in understanding output.

by vinaysa86
Replies
8
Views
427

### Re: problem in understanding output.

string sum = a+b+c;

where a is string and b,c are integers.

Will it work then?
9. ## Thread: problem in understanding output.

by vinaysa86
Replies
8
Views
427

### Re: problem in understanding output.

I want to display output a20.
What should be the code then?
10. ## Thread: problem in understanding output.

by vinaysa86
Replies
8
Views
427

### Re: problem in understanding output.

If I put "a" instead of 'a', will it display a20.
11. ## Thread: problem in understanding output.

by vinaysa86
Replies
8
Views
427

### 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