This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| public class Main { | |
| static double minAvg; | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| System.out.println("輸入機率 用,相隔。"); | |
| String input = sc.nextLine(); | |
| String[] inputArray = input.split(","); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class Main { | |
| // private static int graph[][] = { | |
| // {0, 1, 0, 1, 0}, | |
| // {1, 0, 1, 1, 1}, | |
| // {0, 1, 0, 0, 1}, | |
| // {1, 1, 0, 0, 1}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class Main { | |
| //起始點 | |
| static int origin = 0; | |
| static int graph[][] = {{0, 1, 1, 0, 1}, | |
| {1, 0, 1, 1, 1}, | |
| {1, 1, 0, 1, 0}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class Main { | |
| //起始點 | |
| static int origin = 0; | |
| //紀錄已經找到的路徑 | |
| static List<List<Integer>> alreadyFindPath = new ArrayList<>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Collections; | |
| import java.util.InputMismatchException; | |
| import java.util.LinkedList; | |
| import java.util.Scanner; | |
| public class MyMergeSort { | |
| static LinkedList divide (LinkedList list) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class CreateGroupActivity extends AppBaseActivity { | |
| private ActivityCreateGroupBinding binding; | |
| private CreateGroupImageSelectorAdapter groupImageSelectorAdapter; | |
| private int selected_position = -1; | |
| private ArrayList<CreateGroupImageSelectorItem> list = new ArrayList<>(); | |
| private static KProgressHUD lodingview; | |
| private String account; | |
| private ArrayList<CreateGroupImageSelectorItem> getImageList(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type='text/javascript'> | |
| function _id(e){return document.getElementById(e)} | |
| _id('myfile').onchange = function(){ | |
| var theFile = this.files; | |
| if(theFile.length === 1){ | |
| var uploader = new XMLHttpRequest(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type='text/javascript'> | |
| function _id(e){return document.getElementById(e)} | |
| _id('myfile').onchange = function(){ | |
| var theFile = this.files; | |
| if(theFile.length === 1){ | |
| var uploader = new XMLHttpRequest(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| android:id="@+id/folderPath_horizontalScrollView" | |
| android:layout_width="match_parent" | |
| android:layout_height="@dimen/actionbar_height" | |
| android:fadeScrollbars="false" | |
| android:fillViewport="true" | |
| android:scrollbarThumbHorizontal="@drawable/folder_path_scrollbar_thumb" | |
| android:splitMotionEvents="false"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.app.Activity; | |
| import android.app.AlarmManager; | |
| import android.app.PendingIntent; | |
| import android.bluetooth.BluetoothAdapter; | |
| import android.bluetooth.BluetoothDevice; | |
| import android.bluetooth.BluetoothManager; | |
| import android.content.Context; | |
| import android.content.DialogInterface; | |
| import android.content.Intent; | |
| import android.os.CountDownTimer; |
NewerOlder