Two dimension array Demo : Array Multi Dimension « Data Structure « VB.Net

Home
VB.Net
1.2D
2.Application
3.Class
4.Data Structure
5.Data Types
6.Database ADO.net
7.Development
8.Event
9.File Directory
10.Generics
11.GUI
12.Language Basics
13.LINQ
14.Network Remote
15.Security
16.Thread
17.Windows Presentation Foundation
18.Windows System
19.XML
20.XML LINQ
VB.Net Tutorial
VB.Net by API
VB.Net » Data Structure » Array Multi DimensionScreenshots 
Two dimension array Demo
Two dimension array Demo

Imports System
Imports System.Diagnostics

Public Class MainClass

    Shared Sub Main()
        Dim int_values(,As Integer = _
        _
            {123}, _
            {456_
        }
        For i As Integer = To 1
            For j As Integer = To 2
                Console.Write(int_values(i, j))
            Next j
            Console.WriteLine("")
        Next i

        Dim str_values(,,As String = _
        _
            _
                {"000""001""002"}, _
                {"010""011""012"_
            }, _
            _
                {"100""101""102"}, _
                {"110""111""112"_
            _
        }
        Console.WriteLine("")
        For i As Integer = To 1
            For j As Integer = To 1
                For k As Integer = To 2
                    Console.Write(str_values(i, j, k" ")
                Next k
            Next j
            Console.WriteLine("")
        Next i
    End Sub
End Class


           
       
Related examples in the same category
1.Initializing a jagged array, one in which the length of each array differsInitializing a jagged array, one in which the length of each array differs
2.Define and initialize the multi-dimensional arrayDefine and initialize the multi-dimensional array
3.Seclare a 4x3 Integer arraySeclare a 4x3 Integer array
4.Array Performance Test: Two-dimensional arrayArray Performance Test: Two-dimensional array
5.Array Performance Test: Two-dimensional Array and SetValue(i, i)Array Performance Test: Two-dimensional Array and SetValue(i, i)
6.Two Dimensional Rectangle ArrayTwo Dimensional Rectangle Array
7.Define and Init two dimensional arrayDefine and Init two dimensional array
8.Initializing multidimensional arrays: rectangular two-dimensional arrayInitializing multidimensional arrays: rectangular two-dimensional array
9.Jagged two-dimensional arrayJagged two-dimensional array
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.