battle programmers alliance

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

Display results as :
 
Rechercher Advanced Search
Latest topics
» text art canvas
Today at 8:55 pm by Moti Barski

» android mobile app dev APK
Today at 7:00 pm by Moti Barski

» links/suggestions to become a programmer
Mon May 07, 2018 11:01 pm by Moti Barski

» java eclipse oxygen grimoire
Thu May 03, 2018 8:24 pm by Moti Barski

» forum logo by tf monkey
Wed May 02, 2018 10:17 pm by Moti Barski

» java and MySQL
Mon Apr 30, 2018 3:02 pm by Admin

» mini A.I puzzles
Mon Apr 23, 2018 11:38 am by Moti Barski

» java convert string to unicode
Sun Mar 25, 2018 8:40 pm by Admin

» problem java dynamic web
Sat Mar 24, 2018 6:10 am by Admin

June 2018
SunMonTueWedThuFriSat
     12
3456789
10111213141516
17181920212223
24252627282930
CalendarCalendar
Social bookmarking
Social bookmarking digg  Social bookmarking delicious  Social bookmarking reddit  Social bookmarking stumbleupon  Social bookmarking slashdot  Social bookmarking yahoo  Social bookmarking google  Social bookmarking blogmarks  Social bookmarking live      

Bookmark and share the address of battle programmers alliance on your social bookmarking website
Share | 
 

 vb.net megazord string outputter

Go down 
AuthorMessage
Moti Barski

avatar

Posts : 138
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 : 108
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)
Like a Star @ heaven

_________________
kurayami no kagi  _____    
Back to top Go down
View user profile https://yotamarker.justforum.net
Admin
Admin
avatar

Posts : 108
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 https://yotamarker.justforum.net
 
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: