Java - Packages

Packages

package com.example.util;
public class Strings { public static boolean isBlank(String s){ return s==null || s.trim().isEmpty(); } }

Folders should mirror package names. Use imports to reference types by simple names.

Try it

  1. Create a com.example.util package and import a class from it in another package.
  2. Move files into matching folders and compile from the project root.