Skip to content

Instantly share code, notes, and snippets.

@NaingAungLuu
Created March 7, 2020 12:29
Show Gist options
  • Save NaingAungLuu/4bc44330ff95f70cefa2cf0883a44e6d to your computer and use it in GitHub Desktop.
Save NaingAungLuu/4bc44330ff95f70cefa2cf0883a44e6d to your computer and use it in GitHub Desktop.
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
class bubblesort {
public static void main(String[] args) {
List<String> names ;
try{
names = Files.readAllLines(Paths.get("names.txt"));
System.out.println(names.toString());
}catch(IOException io)
{
System.out.println("Error");
}
}
}
Naing Aung Luu
Phyo Min Thein
Kaung Khant Zaw
Myat Hmue Thwin
Khine Khant Soe
Khant Kyaw Swar
Khine Thinzar Soe
Thaw Zin Moe Thae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment