class Main { public static void main(String[] args) { // Write a Java simple application to finish the assignments below // Assignment #1 // - Declare a variable with the following phrase "I never dreamed about success. I worked for it" // - Print out the number of characters in that quote System.out.println("Assignment #1"); // Assignment #2 // - Declare a variable with the following name "Estée Lauder" // - Declare a quote variable and append name, dash and the phrase from Assignment #1 // - Print out the whole quote // - Print out first 12 characters of the phrase System.out.println("Assignment #2"); // Assignment #3 // - Print out the result of comparison of the following strings: "0CT0PUS" and "0CT0PUS" // - Print out your answer if they equal or not and why is that System.out.println("Assignment #3"); // Check the answers and submit your homework by clicking 'Submit' button at top right } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter