目前韓國針對免簽入境韓國並符合以觀光、訪問親友、會議或商務(營利目的除外)等目的入境者採用K-ETA(電子旅行許可制)。2022/11/1

文章標籤

咪卡恰比 發表在 痞客邦 留言(0) 人氣()

熊本 ↔ 阿蘇

巴士:

特急やまびこ号

 
🔺1380円
 

熊本駅前~阿蘇駅前約2小時 ( 發車時間:7:49 ~ 17:20 )

阿蘇駅前~熊本駅前約1.5小時( 發車時間:9:02 ~ 19:53 )
 
文章標籤

咪卡恰比 發表在 痞客邦 留言(0) 人氣()

釜山 ↔ 福岡

 

BEETLE ビートル(JR九州高速船)

約3時40分

航行點:韓國釜山港 ↔ 日本博多港
可載客502名,船上配備多種舒適座椅 (詳細)、用餐區、兒童遊戲區、哺乳室、免稅店等。
 
費用:
  單程 來回
敬老票(65歲以上) 8,000円 16,000円
大人(12歲以上) 16,000円 32,000円
6~11歲 8,000円 16,000円
1~5歲、0歲佔位 2,000円 4,000円
0歲不佔位 免費
文章標籤

咪卡恰比 發表在 痞客邦 留言(0) 人氣()

今天遇到要登入日本AMAZOZ無法登入,要進行手機認證 (如下圖),試了3電腦、2台手機登入都一樣要我做認證,然後手機又收不到訊息。

1.png

 

經過查詢網路和自己隨便按,發現有一個OPT登入可以使用,

步驟如下

1. 網站語言切換成英文

2. 登入輸入你的手機號碼(如下圖)

文章標籤

咪卡恰比 發表在 痞客邦 留言(0) 人氣()

資料寫入檔案

  /**
   * 產檔
   * @param filePathLocal 路徑
   * @param fileName 檔名
   * @param str內容
   * @throws IOException
   */
  public void mkFile(String filePathLocal, String fileName, String str) throws IOException {

    File file = new File(filePathLocal);
    if (!file.isDirectory()) {
      file.mkdirs();
     //資料夾權限
      file.setReadable(true, false);
      file.setExecutable(true, false);
      file.setWritable(true, false);
    }

    Path localFile = Paths.get(filePathLocal, fileName);
    BufferedWriter writer = Files.newBufferedWriter(localFile, StandardCharsets.UTF_8);
    writer.write(xml);
    writer.close();
  }

文章標籤

咪卡恰比 發表在 痞客邦 留言(0) 人氣()

將多個檔案壓縮到一個檔

  /**
   * 壓縮檔案
   * @param filePathList 檔案列表
   * @param zipDest 壓縮檔資料夾
   * @return 壓縮檔路徑
   * @throws IOException
   */
public String batchDownLoadFile(List<String> filePathList, String zipDest) throws IOException {

    File zipFile = new File(zipDest, System.nanoTime() + ".zip");

    FileOutputStream fos = new FileOutputStream(zipFile);
    ZipOutputStream zos = new ZipOutputStream(fos);
    FileInputStream fis = null;
    
    Set<String> filePathSet = new HashSet<>(filePathList);
    
    try {
      for(String filePath: filePathSet) {
        fis = new FileInputStream(filePath);
        File file = new File(filePath);
        
        zos.putNextEntry(new ZipEntry(file.getName()));
      
        int tmp = 0;
        while((tmp = fis.read()) != -1) {
          zos.write(tmp);
        }
        zos.flush();
        fis.close();
        zos.closeEntry();
      } 
    }finally {
      zos.close();
      fos.close();
    }

    return zipFile.getPath();
  }

文章標籤

咪卡恰比 發表在 痞客邦 留言(0) 人氣()

Q: 使用Image getInstance(final URL url)報錯 java.io.IOException: XXXXXXXX is not a recognized imageformat.

A: 確認圖檔是否為可使用格式:gif jpeg png

    /**
     * Gets an instance of an Image.
     *
     * @param filename
     *            a filename

文章標籤

咪卡恰比 發表在 痞客邦 留言(0) 人氣()