Creating Variables and Printing

    001 - Creating Variables and Printing 1

    001 - Creating Variables and Printing 1

    2019/11/26 Creating Variables and Printing Them For you to do: Create two String variables called firstName and lastName respectively. Assign the String "Bob" to firstName and "Jones" to lastName. Print firstName and lastName, one per line. Each should use a different print statement. import java.util.*; class Main { public static void main(String[] args) { String firstName ="Bob"; String lastNa..