Can you alter the formatting so as this is printed


This output is meant to be repeated multiple times as an array.

String text = String.format("%s - Price - %.2f - Quantity: %d - Availability: %s", this.getTitle(), this.getPrice(), this.getQuantity(), this.getAvailableString());

Can you alter the formatting so as this is printed multiples it will be perfectly aligned as columns regardless of the size of the variables.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Can you alter the formatting so as this is printed
Reference No:- TGS02880829

Expected delivery within 24 Hours