Does anyone know how to space out console text for java in Eclipse -


I'm sorry if I'm ignorant somehow. This is my first day learning Java and I have a problem every time I run a program. This happens:

While reading my program, it reads "53308.0's Drew Brace 'pass yards distance 533.08 footballball field." I do not know how to put spaces between numbers "53308.08" and "K" and "533.08" and football, how is the console text considered? Can i fix it

Public Sector BreesPassingYardsFields {Public Fixed Zero Main (String AGR []) {

  Double Passed; // Career pass number is the Draw Bruns. Double field lane; // Number of yards in a football field double footballfield; // Number of football areas has been thrown for the Drew Brashche passhead = 53308; // Start with Draw Breeze 'Pass Yard Field Long = 100; // The length of a football field is footballfield = pass yard / field lang; // How many football fields Drew Brash has been thrown out to System.out.printlean (Passwords + "Yards near Drew Brushes" + "Footballfield +" Football Fields ").}   

}

The easiest way is:

System.out. Println (Passwd + is yards near "Dru brush" + "Footballfield +" Football Fields ");

Or you can do something like this:

  System.out.format ("% of Due Brushes Gets% Ffb "Field Fields", Pass Yard, Footballfield);  

% f is the format for double nap float, you will use% d for int, you can add numbers to some options like% 3f Can be formatted with.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -