Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Escaping Literals (Table of records)
//'main' method must be in a class 'Rextester'. //openjdk version '11.0.5' import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { String header = "\n\tNew York 3-Day Weather Forecast:\n"; header += "\n\tDay\tHigh\tLow\tConditions\n"; header += "\t---\t\t---\t---\t---\n"; String forecast = "\tSunday\t\t68F\t48F\tSunny\n"; forecast += "\tMonday\t\t69F\t57F\tSunny\n"; forecast += "\tTuesday\t\t71F\t50F\tCloudy\n"; System.out.println(header + forecast); } }
run
|
edit
|
history
|
help
1
Please
log in
to post a comment.
Problem: on_off
updated
loding
1(D).
4.C
exp 2
preincrement
different ways to add parenthesis leetcode #241
H
Java - SimpleDateFormat(ting)
stackse - search stackoverflow differently
Please log in to post a comment.