Tuesday, February 12, 2019

Two Dimensional Arrays of Mobile Numbers in Java

Here is a simple program that I wrote using Java two dimensional arrays to populate the list of mobile numbers. The code is very simple easy to understand.

I  am currently accepting programming work, IT projects, school and application development.

programming projects, thesis and capstone projects, IT consulting.

work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.
My personal website is http://www.jakerpomperada.com



Sample Program Output


Program Listing

package two_arrays;

class two_arrays {
public static void main(String args[])
{    
long [][] mobile_no = new long[3][2];
System.out.println();
System.out.println("Two Dimensional Arrays of Mobile Numbers");
System.out.println();
mobile_no[0][0] =221971362; 
mobile_no[0][1] =915521365;
mobile_no[1][0] =628088942; 
mobile_no[1][1] =259417206;
mobile_no[2][0] =530859708; 
mobile_no[2][1] =758310922;

for (int row = 0; row < mobile_no.length; row++) { 
        for (int col = 0; col < mobile_no[row].length; col++)
{
System.out.print("\t" + mobile_no[row][col]);
}
  System.out.println();    
}
 
System.out.println();
System.out.println("\tEND OF PROGRAM");
System.out.println();
}
}

1 comment: