programming4us
programming4us
ENTERPRISE

Java Tutorials : Nested For Loop (part 2) - Program to create a Two-Dimensional Array

- How To Install Windows Server 2012 On VirtualBox
- How To Bypass Torrent Connection Blocking By Your ISP
- How To Install Actual Facebook App On Kindle Fire

3.Program to create a Two-Dimensional Array
 

public class twoDimArray
{
public static void main(String [] args)
{
String city[][]={ {"NewYork","Muscat","London"} , {"Cairo","Beijing","CapeTown"} };
for (int i=0; i<city.length; i++)
{
for (int j=0; j<city[i].length; j++)
{
System.out.print(city[i][j]+"\t");
}
System.out.println();
}}}

 

Java - Take For Loop Variables And Put Into 2 Separate Array


4.Program to create multiplication table
 

public class multiplicationTable
{
public static void main(String args[]){System.out.print(" ");
for (int i=1; i<=9; i++)System.out.print(" "+i);System.out.println();
System.out.println("-------------------------------------------------------");
for (int i=1; i<=9; i++){System.out.print(i+"|");
for (int j=1; j<=9; j++){if (i*j<10)System.out.print(" "+i*j);
elseSystem.out.print(" "+i*j);}System.out.println();
}}}
Other  
  •  How to use scanf in C.
  •  Dynamic Arrays: Using malloc() and realloc()
  •  Review : D-Link DSP-W215 mydlink Wi-Fi Smart Plug
  •  Review : Linksys EA9200 Tri-Band Smart Wi-Fi router
  •  Identity on Cisco Firewalls : Administrative Access Control on ASA
  •  Identity on Cisco Firewalls : Administrative Access Control on IOS
  •  Identity on Cisco Firewalls : User-Based Zone Policy Firewall (part 3) - Integrating Auth-Proxy and the ZFW
  •  Identity on Cisco Firewalls : User-Based Zone Policy Firewall (part 2) - Establishing user-group Membership Awareness in IOS - Method 2
  •  Identity on Cisco Firewalls : User-Based Zone Policy Firewall (part 1) - Establishing user-group Membership Awareness in IOS - Method 1
  •  Identity on Cisco Firewalls : IOS User-Level Control with Auth-Proxy (part 4) - Combining Classic IP Inspection (CBAC) and Auth-Proxy
  •  
    Youtube channel
    Top 10
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
    - Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
    - Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
    REVIEW
    - First look: Apple Watch

    - 3 Tips for Maintaining Your Cell Phone Battery (part 1)

    - 3 Tips for Maintaining Your Cell Phone Battery (part 2)
    programming4us programming4us
    programming4us
     
     
    programming4us