java - Unknown character / word -


sentences :  test skills 1, ... 2, ... 3, .... specify skills 1, ..2, ...3, .... check skills 1, ..2, ...3, .... 

..

restofsentence="your skills"+ ? ; string test = "test" + restofsentence string specify = "specify" + restofsentence string check = "check" + restofsentence 

how can define restofsentence variable, "?" must define number

'test = "test skills 6" ', 'test = "test skills 36" ' must pair without using loop because dont know last number

you can use string.format() method that.

string format = "%1$s skill %2$d"; string test = string.format(format, "test", 4); 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -