# Search:

Type: Posts; User: eyalfish

1. ## Thread: Hi everyone i need some advice

by eyalfish
Replies
3
Views
107

### Re: Hi everyone i need some advice

For(int i=0,j=1;i<=4;i+=2,j+=2){
for(int k=i;k<=i;k++)
Syso..print("*");
For(int k=j;k<=j;k++)
Syso..print(" ");
}

this is what i got the first line:
*blank*blank*
2. ## Thread: Hi everyone i need some advice

by eyalfish
Replies
3
Views
107

### Hi everyone i need some advice

Hi,
i need to create this shape:
*" "*" "*
" "*" "*" "
" "" "*" "" "

using loops.can you guide me on how to deal with the blank and asterisks?
its just dont work correctly for me

thanks...
3. ## Thread: Again i need some advice please

by eyalfish
Replies
9
Views
145

### Re: Again i need some advice please

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...
4. ## Thread: Again i need some advice please

by eyalfish
Replies
9
Views
145

### Re: Again i need some advice please

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...
5. ## Thread: Again i need some advice please

by eyalfish
Replies
9
Views
145

### Re: Again i need some advice please

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...
6. ## Thread: Again i need some advice please

by eyalfish
Replies
9
Views
145

### Re: Again i need some advice please

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...
7. ## Thread: Again i need some advice please

by eyalfish
Replies
9
Views
145

### Again i need some advice please

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...
8. ## Thread: Hi everyone i stuck at something and i need a little help please

by eyalfish
Replies
8
Views
170

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

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

by eyalfish
Replies
8
Views
170

### 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);...
10. ## Thread: Hi everyone i stuck at something and i need a little help please

by eyalfish
Replies
8
Views
170

### 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....
11. ## Thread: Hi everyone i stuck at something and i need a little help please

by eyalfish
Replies
8
Views
170

### 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!...
12. ## Thread: Hi everyone i stuck at something and i need a little help please

by eyalfish
Replies
8
Views
170

### 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...
13. ## Thread: Hi everyone i need some help

by eyalfish
Replies
3
Views
157

### Re: Hi everyone i need some help

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

by eyalfish
Replies
3
Views
157

### 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...
15. ## Thread: Hi everybody i have a little test and i need to ask something

by eyalfish
Replies
3
Views
169

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

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

by eyalfish
Replies
3
Views
169

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

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

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

by eyalfish
Replies
9
Views
144

### 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...
18. ## Thread: Hi everyone-new here!!!i need some help:]

by eyalfish
Replies
9
Views
144

### 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
19. ## Thread: Hi everyone-new here!!!i need some help:]

by eyalfish
Replies
9
Views
144

### 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.
...
20. ## Thread: Hi everyone-new here!!!i need some help:]

by eyalfish
Replies
9
Views
144

### 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
21. ## Thread: Hi everyone-new here!!!i need some help:]

by eyalfish
Replies
9
Views
144

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