Console.Write()

Dim x As Int32 = 128
Console.Write(x) ' Variable '
Console.Write(3) ' Integer '
Console.Write(3.14159) ' Floating-point number '
Console.Write("Hello, world") ' String '

Console.Write() 方法與 Console.WriteLine() 方法完全相同,只是它列印給定的引數,而最後沒有附加換行符。通過在提供的任何引數的末尾新增換行符,可以使此方法在功能上與 WriteLine 相同:

Console.Write("this is the value" & Environment.NewLine)