battle programminga forum for elite programmerswith extreme will powerto sharpen theire skills
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Share | 
 

 vb.net megazord string outputter

Go down 
AuthorMessage
Moti Barski

avatar

Posts : 197
Join date : 2011-08-02

PostSubject: vb.net megazord string outputter   Thu Sep 14, 2017 10:02 pm

I don't know what its called but it is useful

Code:
 Console.WriteLine("Converted the {0} value '{1}' to the {2} value {3}.", str1, str2, str3, strx)

_________________
MB over and out _______________________     
Back to top Go down
View user profile
Admin
Admin
avatar

Posts : 120
Join date : 2011-08-01

PostSubject: 2nd example   Sat Oct 28, 2017 8:38 am

Code:
Dim miscInfo As String = [String].Format("Your dog has {0} fleas. " + "It is time to get a flea collar. " + "The current universal date is: {1:u}.", numberOfFleas, DateTime.Now)

and another example :
Code:
Dim miscInfo As String = [String].Format("test{0} and {1}", 2 + 4, 5 * 8)
⭐

_________________
kurayami no kagi  _____    
Back to top Go down
View user profile http://yotamarker.forumotion.com
Admin
Admin
avatar

Posts : 120
Join date : 2011-08-01

PostSubject: java eclipse oxyzen string megazord   Tue Jan 09, 2018 7:11 pm

Code:

package PL;

import java.util.Scanner;
import static java.lang.System.out;

public class test2 {

   public static void main(String[] args) {
      // TODO Auto-generated method stub
      String s1 = String.format("hi %s %s welcome %d", "king","moti",5);
            System.out.println(s1);
      
   }
}
prints :
hi king moti welcome 5

see string format java list for more data types (%s %d)

_________________
kurayami no kagi  _____    
Back to top Go down
View user profile http://yotamarker.forumotion.com
 
vb.net megazord string outputter
Back to top 
Page 1 of 1
 Similar topics
-
» String comparison using Selenium Ide
» How do I extract a string using regexp?
» Convert string (with decimal or a point) to a integer.
» comparing a string with the strings present in the drop down list
» Xpath Syntax

Permissions in this forum:You cannot reply to topics in this forum
battle programmers alliance :: battle programming alliance :: battle programming-
Jump to: