# Search:

Type: Posts; User: eyalfish

## Search: Search took 0.15 seconds.

by eyalfish
Replies
9
Views
137

yes for array of example like i show{1 1 1 2 2}

to matrix like that: 1 1 1
2 2

i count the number of different number=2.that's the row number.
but how...

by eyalfish
Replies
9
Views
137

yes it is sorted.
i need to make a matrix from this array -each row different number and the times the number occuered
1.i need to check how many numbers are different to determine how many rows i...

by eyalfish
Replies
9
Views
137

int arr[]=new int[]{1,1,1,2,2};

int row=2; //two different number=two rows
int[][]matrix=new int[row][];
for (int i=0;i<matrix.length;i++){
for(int...

by eyalfish
Replies
9
Views
137

You know what lets say i have an array of strings{"james","john","james","john","james"}

I need to initialize a matrix that each row contain a different name.

--- Update ---

The output will...

by eyalfish
Replies
9
Views
137

Sorry to bother you that much.
I have a project that contain an array of people(each index contain name,salary and id number).
i need to make a matrix that each name will be in a new row.
so i did...
6. ## Thread: Hi everyone i stuck at something and i need a little help please

by eyalfish
Replies
8
Views
163

### Re: Hi everyone i stuck at something and i need a little help please

You are a king!!!!!!!!!!!!!!!
thank you thank you:]
7. ## Thread: Hi everyone i stuck at something and i need a little help please

by eyalfish
Replies
8
Views
163

### Re: Hi everyone i stuck at something and i need a little help please

This my code:

Scanner s=new Scanner(System.in);
int Id=0;String Name="";int Salary=0;

for (int i=0;i<arr.length;i++){

Employee temp=new Employee(Id,Name,Salary);...
8. ## Thread: Hi everyone i stuck at something and i need a little help please

by eyalfish
Replies
8
Views
163

### Re: Hi everyone i stuck at something and i need a little help please

I need to create array and input value in this order:int id(integer),String name(must be nextline),int salary(integer).
i fount that if i do s.nextline after the name=s.nextline it fix this....
9. ## Thread: Hi everyone i stuck at something and i need a little help please

by eyalfish
Replies
8
Views
163

### Re: Hi everyone i stuck at something and i need a little help please

Thanks but it still gives me trouble.i need to create an array that contains String(needed nextline) and integers.
but the momonet i want to print my array the data conataine string is empty!...
10. ## Thread: Hi everyone i stuck at something and i need a little help please

by eyalfish
Replies
8
Views
163

### Hi everyone i stuck at something and i need a little help please

We started to learn classes and i created this method :

public static Student[] getStudentArray(Student[] arr){
Scanner s=new Scanner(System.in);
String Name;float Avg;

for (int...
11. ## Thread: Hi everyone i need some help

by eyalfish
Replies
3
Views
148

### Re: Hi everyone i need some help

Great thank you guys ,thanks you;]
12. ## Thread: Hi everyone i need some help

by eyalfish
Replies
3
Views
148

### Hi everyone i need some help

first of all i want to thanks to this great site and the people that willing to help.
So we start to learn the basics of objects and classes and i did a simple code.
the method get a string of a...
13. ## Thread: Hi everybody i have a little test and i need to ask something

by eyalfish
Replies
3
Views
159

### Re: Hi everybody i have a little test and i need to ask something

Great thanks alot
14. ## Thread: Hi everybody i have a little test and i need to ask something

by eyalfish
Replies
3
Views
159

### Hi everybody i have a little test and i need to ask something

So i have this code ("this is the correct form")

String sum="";int j=num;
for (int i=2;i<=(j/2);i++){
while (num%i==0) {sum+=i+" ";...
15. ## Thread: Hi everyone-new here!!!i need some help:]

by eyalfish
Replies
9
Views
136

### Re: Hi everyone-new here!!!i need some help:]

thanks a lot

--- Update ---

i tried what you suggest me to do .and got rid of the m method .but i got red mark under the return count,
how can i solve it?thanks again

public static int...
16. ## Thread: Hi everyone-new here!!!i need some help:]

by eyalfish
Replies
9
Views
136

### Re: Hi everyone-new here!!!i need some help:]

it doesnt work for me;/
but why cant i do this with the m(sum) method.it should work and i dont have compile error
but something isnt work out.
thanks anyway
17. ## Thread: Hi everyone-new here!!!i need some help:]

by eyalfish
Replies
9
Views
136

### Re: Hi everyone-new here!!!i need some help:]

for example i put 10 and 20.i check the range of the numbers from 10 to 20 include.
and i need to output the number that his sum of his digits is the highest from all the numbers from 10 to 20.
...
18. ## Thread: Hi everyone-new here!!!i need some help:]

by eyalfish
Replies
9
Views
136

### Re: Hi everyone-new here!!!i need some help:]

for example if i put 10 and 20.
it will output 19.since 19 is the biggest number from 10 to 20.
the sum of his digits i mean
19. ## Thread: Hi everyone-new here!!!i need some help:]

by eyalfish
Replies
9
Views
136

### Hi everyone-new here!!!i need some help:]

Hi, i am a beginner in java and i need some help.
my program should take 2 integers and find their range and output the biggest number(sum of his chars)
btw i dont have compile error but after i...
Results 1 to 19 of 19