輸入字串陣列a[0],a[1],...a[4]
利用Java Class LinkedList 作初一鏈結串列:
[ a[0], a[1], a[2], a[4], a[4],a[3],a[2],a[0] ]
Hint:可利用方法addFirst, add, remove.....
herrDeng網內搜尋
自訂搜尋
Ads
訂閱:
張貼留言 (Atom)
熱門文章
-
url="https://www.twse.com.tw/exchangeReport/STOCK_DAY?response=json&date=20220330&stockNo=2330"
-
教育部為提昇全民資安素養與電腦防護能力,本部於101年9月5日至11月5日舉辦「全民資安素養自我評量」活動,請在活動期間內踴躍上網檢測資訊安全素養認知程度,並有機會參與抽獎,詳情請參閱活動網站(網址: https://isafe.moe.edu.tw/event
-
python pandas對黃金、外匯匯率的爬蟲練習,並使用matplotlib.pyplot的函數plot, scatter做資料視覺化處理,採用numpy的統計函數,分析黃金價格波動與歐元走勢的關聯。
-
Leetcode的1652. Defuse the Bomb是絕佳的練習題,特別是針對Python的使用者,雖說是sliding window 是簡單的那種,還可練習loop, slicing, minus index etc . https://leetcode.com/pro...
-
你會用C的算子sizeof?
-
Python C C++ 2 pointer速解Leetcode 2337 Move Pieces to Obtain a String 多日Leetcode的問題都可用2-pointer法來解,今日2337. Move Pieces to Obtain a String也不例...
-
Colab上安裝中文字型修改股市爬蟲pyplot顯圖 使用python套件: numpy, requests. pyplot, matplotlib.font_manager, matplotlib.mpl
-
XOR prefixsum CPP python解Leetcode 1829 Maximum XOR for Each Query 其實這裡考慮的是元素個數為2^maximumBit的交換群,運算子為XOR。 [Python code請進]
54 則留言:
import java.util.*;
public class link {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList<String> aa=new LinkedList<String>();
for (int i=0; i<a.length;i++)
aa.add(a[i]);
aa.remove(3);
for (int i=0; i<a.length;i++)
aa.addFirst(a[i]);
aa.remove(3);
System.out.print(aa);
}
}
import java.util.*;
public class hello {
public static void main(String[] args){
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList<String> aa = new LinkedList<String>();
for (int i=0;i<a.length;i++)
aa.addFirst(a[i]);
aa.remove(3);
for(int i=0;i<a.length;i++)
aa.add(a[i]);
System.out.println(aa);
}
}
import java.util.*;
public class hello {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
package P1;
import java.util.*;
public class HW1 {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList<String> aa=new LinkedList<String>();
for (int i=0; i<a.length; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
aa.remove(7);
System.out.println(aa);
}
}
package p3;
import java.util.*;
public class hw3
{
public static void main(String[]args)
{
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList<String> aa=new LinkedList<String>();
for(int i=0;i<a.length;i++)
aa.addFirst(a[i]);
aa.remove(3);
for(int i=0;i<a.length;i++)
aa.add(a[i]);
aa.remove(7);
System.out.println(aa);
}
}
import java.util.*;
public class hello {
public static void main (String[] args){
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList<String> aa=new LinkedList<String>();
for (int i=0; i<a.length; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
}
}
import java.util.*;
public class B9833035 {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList<String> aa=new LinkedList<String>();
for (int i=0; i<a.length; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
}
}
import java.util.*;
public class hello {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList<String> aa=new LinkedList<String>();
for (int i=0; i<a.length; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
aa.remove(7);
System.out.println(aa);
}
}
import java.util.*;
public class link {
public static void main(String[] args) {
String a[] = {"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList<String> aa = new LinkedList<String>();
for (int i=0; i<a.length; i++)
aa.addFirst(a[i]);
for (int i=0; i<a.length; i++)
aa.add(a[i]);
System.out.println(aa);
}
}
import java.util.*;
public class B10033044 {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList<String> aa=new LinkedList<String>();
for (int i=0; i<a.length; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
}
}
import java.util.*;
public class b10033057 {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList<String> aa=new LinkedList<String>();
for (int i=0;i<a.length;i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0;i<a.length;i++)
aa.add(a[i]);
aa.remove(7);
System.out.println(aa);
}
}
import java.util.*;
public class NI {
public static void main(String[] args){
String a[]={"ZERO","ONE","TWO","THREE","FOUR"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
}
}
import java.util.*;
public class jas {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
import java.util.*;
public class hello {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
import java.util.*;
public class List {
public static void main (String[] args) {
String a[]={"FOUR","THREE","ONE","ZERO"};
LinkedList aa=new LinkedList{};
for(int i=0;i<a.length;i++)
aa.add(a[i]);
aa.remove(3);
for(int i=0;i<a.length;i++)
aa.addFirst(a[i]);
aa.remove(3);
Sytsem.out.println(aa);
}
}
import java.util.*;
public class hello {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
import java.util.*;
public class hello {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
import java.util.*;
public class hello {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
import java.util.*;
public class hello {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
import java.util.*;
public class link {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList<String> aa=new LinkedList<String>();
for (int i=0; i<a.length;i++)
aa.add(a[i]);
aa.remove(3);
for (int i=0; i<a.length;i++)
aa.addFirst(a[i]);
aa.remove(3);
System.out.print(aa);
}
}
import java.util.*;
public class link {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList<String> aa=new LinkedList<String>();
for (int i=0; i<a.length;i++)
aa.add(a[i]);
aa.remove(3);
for (int i=0; i<a.length;i++)
aa.addFirst(a[i]);
aa.remove(3);
System.out.print(aa);
}
}
import java.util.*;
public class hello {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
import java.util.*;
public class hallo {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList<String> aa=new LinkedList<String>();
for (int i=0; i<a.length;i++)
aa.add(a[i]);
aa.remove(3);
for (int i=0; i<a.length;i++)
aa.addFirst(a[i]);
aa.remove(3);
System.out.print(aa);
}
}
import java.util.*;
public class hallo {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList<String> aa=new LinkedList<String>();
for (int i=0; i<a.length;i++)
aa.add(a[i]);
aa.remove(3);
for (int i=0; i<a.length;i++)
aa.addFirst(a[i]);
aa.remove(3);
System.out.print(aa);
}
}
import java.util.*;
public class hello {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
import java.util.*;
public class NYPD
{
public static void main(String[] args)
{
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0;i<a.length;i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0;i<a.length;i++)
aa.add(a[i]);
aa.remove(7);
System.out.println(aa);
}
}
import java.util.*;
public class shao {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
import java.util.*;
public class hello {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList<String> aa=new LinkedList<String>();
for (int i=0; i<a.length;i++)
aa.add(a[i]);
aa.remove(3);
for (int i=0; i<a.length;i++)
aa.addFirst(a[i]);
aa.remove(3);
System.out.print(aa);
}
}
import java.util.*;
public class hello {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
}
}
import java.util.*;
public class link {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length;i++)
aa.add(a[i]);
aa.remove(3);
for (int i=0; i<a.length;i++)
aa.addFirst(a[i]);
aa.remove(3);
System.out.print(aa);
}
import java.util.*;
public class B9833151
{
public static void main(String[] args)
{
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
}
}
import java.util.*;
public class hello {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
import java.util.*;
public class hello {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
import java.util.*;
public class hello {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
import java.util.*;
public class hello {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
import java.util.*;
public class test {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length;i++)
aa.add(a[i]);
aa.remove(3);
for (int i=0; i<a.length;i++)
aa.addFirst(a[i]);
aa.remove(3);
System.out.print(aa);
}
}
import java.util.*;
public class ASD {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
package p3;
import java.util.*;
public class love
{
public static void main(String[]args)
{
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList<String> aa=new LinkedList<String>();
for(int i=0;i<a.length;i++)
aa.addFirst(a[i]);
aa.remove(3);
for(int i=0;i<a.length;i++)
aa.add(a[i]);
aa.remove(7);
System.out.println(aa);
}
}
import java.util.*;
public class B9833035 {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
}
}
import java.util.*;
public class List {
public static void main (String[] args) {
String a[]={"FOUR","THREE","ONE","ZERO"};
LinkedList aa=new LinkedList{};
for(int i=0;i<a.length;i++)
aa.add(a[i]);
aa.remove(3);
for(int i=0;i<a.length;i++)
⋯⋯aa.addFirst(a[i]);
aa.remove(3);
Sytsem.out.println(aa);
}
}
import java.util.*;
public class hello {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
import java.util.*;
public class link {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList<String> aa=new LinkedList<String>();
for (int i=0; i<a.length;i++)
aa.add(a[i]);
aa.remove(3);
for (int i=0; i<a.length;i++)
aa.addFirst(a[i]);
aa.remove(3);
System.out.print(aa);
}
}
import java.util.*;
public class B9833084
{
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
}
}
import java.util.*;
public class hello {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
import java.util.*;
public class hello {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
import java.util.*;
public class good {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
}
B9733002鍾志捷
import java.util.*;
public class B9733002 {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
aa.remove(7);
System.out.println(aa);
}
}
import java.util.*;
public class link {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length;i++)
aa.add(a[i]);
aa.remove(3);
for (int i=0; i<a.length;i++)
aa.addFirst(a[i]);
aa.remove(3);
System.out.print(aa);
}
}
import java.util.*;
public class link {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length;i++)
aa.add(a[i]);
aa.remove(3);
for (int i=0; i<a.length;i++)
aa.addFirst(a[i]);
aa.remove(3);
System.out.print(aa);
}
import java.util.*;
public class link {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length;i++)
aa.add(a[i]);
aa.remove(3);
for (int i=0; i<a.length;i++)
aa.addFirst(a[i]);
aa.remove(3);
System.out.print(aa);
}
import java.util.*;
public class link {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length;i++)
aa.add(a[i]);
aa.remove(3);
for (int i=0; i<a.length;i++)
aa.addFirst(a[i]);
aa.remove(3);
System.out.print(aa);
}
import java.util.*;
public class hello {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length ; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
System.out.println(aa);
// TODO Auto-generated method stub
}
package P1;
import java.util.*;
public class HW1 {
public static void main(String[] args) {
String a[]={"a[4]","a[3]","a[2]","a[1]","a[0]"};
LinkedList aa=new LinkedList();
for (int i=0; i<a.length; i++)
aa.addFirst(a[i]);
aa.remove(3);
for (int i=0; i<a.length ;i++)
aa.add(a[i]);
aa.remove(7);
System.out.println(aa);
}
}
張貼留言