Here is a Java programming question: Note: Use s.hasNextLine for multiple lines and terminate the input with
Fantastic news! We've Found the answer you've been seeking!
Question:
Here is a Java programming question:
Note:
Use s.hasNextLine for multiple lines and terminate the input with "end"
Don't use string.split or arrays, just use flow controls, loops and iterations.
The goal is to convert the user input to a special form where:
Input: xy
Output:(tr)(td)xy(/td)(/tr)
Input: x,y,z
Output: (tr)(td)x(/td)(td)y(/td)(td)z(/td)(/tr)
Input: x,,
Output:(tr)(td)x(/td)(td)(/td)(td)(/td)(/tr)
Input: x,y z
Output:(tr)(td)x(/td)(td)y z(/td)(/tr)
output must depends on input where xyz could be jkl or def
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: