Java - Introduction to Programming Lecture 12 Strings Declaration String name = "Tony" ; Taking Input Scanner sc = new Scanner ( System . in ); String name = sc . next (); Concatenation (Joining 2 strings) String firstName = "Tony" ; String secondName = "Stark" ; String fullName = firstName + " " + secondName ; System . out . println ( fullName ); Print length of a String String firstName = "Tony" ; String secondName = "Stark" ; String fullName = firstName + " " + secondName ; System . out . println ( fullName . length ()); Access characters of a string String firstName = "Tony" ; String secondName = "Stark" ...
A student of engineering and I am interested in coding specially in java. I have been working on this blog for the past few months and I have learned a lot about java and now I will try to help you to crack placement's. The blog will cover different types of java coding programs, their features, benefits, and why they are important. we have the best java placements solutions also.