Output Format for Integer : Console « Development « VB.Net

Home
VB.Net
1.2D
2.Application
3.Class
4.Data Structure
5.Data Types
6.Database ADO.net
7.Date Time
8.Development
9.Event
10.File Directory
11.Generics
12.GUI
13.Internationalization I18N
14.Language Basics
15.LINQ
16.Network Remote
17.Reflection
18.Security
19.Thread
20.Windows Presentation Foundation
21.Windows System
22.XML
23.XML LINQ
VB.Net Tutorial
VB.Net by API
VB.Net » Development » ConsoleScreenshots 
Output Format for Integer
Output Format for Integer
  
Imports System

Public Class MainClass

    Shared Sub Main(ByVal args As String())
       Dim myInt As Integer = 7
       Console.WriteLine("Initialized myInt: {0}", myInt)
       myInt = 5
       Console.WriteLine("After assignment myInt: {0}", myInt)
    End Sub
End Class

           
         
    
  
Related examples in the same category
1.Do calculation in Console.WriteLineDo calculation in Console.WriteLine
2.Console OutputConsole Output
3.Console Read and Compare IntegerConsole Read and Compare Integer
4.Redirect console to a file
5.Display 4 mandatory and 3 optional arguments using the Console.WriteLine method.
6.Display 4 mandatory and 3 optional arguments using the Console.Write method.
7.Use Console.Write method.
8.ConsoleColor Enumeration
9.ConsoleKey Enumeration
10.ConsoleKeyInfo Structure
11.ConsoleSpecialKey Enumeration
12.Console Class
13.Console.BackgroundColor Property gets or sets the background color of the console.
14.Console.Beep Method plays the sound of a beep through the console speaker.
15.Console.BufferHeight Property gets or sets the height of the buffer area.
16.Console.CancelKeyPress Event occurs when Control key (CTRL) and C are pressed simultaneously (CTRL+C).
17.Console.Clear Method clears the console buffer and corresponding console window of display information.
18.Console.CursorSize Property gets or sets the height of the cursor within a character cell.
19.Console.CursorVisible Property tells indicating whether the cursor is visible.
20.Console.Error Property gets the standard error output stream.
21.Console.In Property gets the standard input stream.
22.Console.KeyAvailable tells whether a key press is available in the input stream.
23.Console.Out Property gets the standard output stream.
24.Console.ReadKey (Boolean) gets next character or function key pressed
25.Console.ReadKey gets next character or function key pressed by the user.
26.Console.ReadLine reads the next line of characters from the standard input stream.
27.Console.SetError sets the Error property to the specified TextWriter object.
28.Console.SetOut Method sets the Out property to the specified TextWriter object.
29.Console.SetWindowSize Method sets the height and width of the console window
30.Console.Title Property gets or sets the title to display in the console title bar.
31.Console.WindowLeft Property gets or sets the leftmost position of the console window area relative to the screen
32.Console.Write Method (Boolean) writes the text representation of the Boolean value to the standard output stream.
33.Console.WriteLine Standard Numeric Format Strings: C2
ww__w._j__a__v_a__2___s._c___om__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.