<commit_before>---
layout: post
title:  "Java in a Page"
date:   2020-11-17 16:16:01 -0600
categories: Java
---

This is a java tutorial in one page.

<!-- more -->

```java

// Tutorial.java
package com.roclv;

import java.io.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;

// Reference: https://www.runoob.com/java/java-tutorial.html
// abstract only can be used in abstract class.

// public abstract AbstractClass {
//    public abstract String abstractMethod();
//    public abstract String abstractString;
//
// }

class Fruit {
    enum Size { SMALL, MEDIUM, LAR }
    Size size;
}


// Only one public class is allowed in one class file.
public class Tutorial {

    public static String  publicString = "This is a  public String";<commit_msg>fix format<commit_after>---
layout: post
title:  "Java in a Page"
---

This is a java tutorial in one page.

<!-- more -->

### Java Basic

```java

// Tutorial.java
package com.roclv;

import java.io.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;

// Reference: https://www.runoob.com/java/java-tutorial.html
// abstract only can be used in abstract class.

// public abstract AbstractClass {
//    public abstract String abstractMethod();
//    public abstract String abstractString;
//
// }

class Fruit {
    enum Size { SMALL, MEDIUM, LAR }
    Size size;
}


// Only one public class is allowed in one class file.
public class Tutorial {

    public static String  publicString = "This is a  public String";
{'fraction_non_alphanumeric': 0.1211340206185567, 'fraction_numerical': 0.011597938144329897, 'mean_word_length': 3.0976253298153034, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7640832', 'n_tokens_mistral': 493, 'n_tokens_neox': 467, 'n_words': 170}