package cn.edu.bjut.java; public class HelloWorldWithPackage { public static void main(String[] args) { String str = "Hello World!"; System.out.println("The string is: " + str); } }