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
Post a Comment