造出一個鍊結串列如下:
[Bill:20, 老三:15, 小王:689, 小王:689, 老三:15, Bill:20]
herrDeng網內搜尋
自訂搜尋
Ads
訂閱:
張貼留言 (Atom)
熱門文章
-
計算你的BMI
-
1. 利用遞迴input n算2^n 2. 用C算GCD(3333,456)
-
GCD(10^10+1, 10^11+2)=?
-
輸出你的課表 含Java code以及結果
-
請用 C/C++/java寫一簡易程式
-
一、 試利用switch case由程式中直接輸入一個1~7 之間的整數day,代表星期一到星期日。若day 的值是1,則印出 "星期一",若day 的值是2,則印出 "星期二",若day 的值是7,則印出 "星期日",...
-
BMI (Body Mass Index)= 體重 (kg) / 身高 ^2(m 2 ) 在台灣,行政院衛生署乃根據其相關研究,於2002年4月公佈台灣成人肥胖標準: BMI<18.5 為過輕, 18.5≦BMI<24 為正常體重, 24≦BMI<27 為過重, BM...
-
33, 45, 87, 99, 27 算平均
43 則留言:
import java.util.*;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.addFirst(new Term("小王", 689));
f.addFirst(new Term("老三",15));
f.addFirst(new Term("Bill",20));
f.addLast(new Term("小王",689));
f.addLast(new Term("老三",15));
f.addLast(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.LinkedList;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
-------------------------------------------------------
[Bill:20, 老三:15, 小王:689, 小王:689, 老三:15, Bill:20]
import java.util.LinkedList;
class Term{
String name;
long score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class ex1{
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
System.out.println(f);
f.push(new Term("老三",15));
System.out.println(f);
f.push(new Term("小王", 689));
System.out.println(f);
f.push(new Term("小王", 689));
System.out.println(f);
f.push(new Term("老三",15));
System.out.println(f);
f.push(new Term("Bill",20));
System.out.println(f);
f.pop();
System.out.println(f);
}
}
import java.util.LinkedList;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class zzz {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
Bill:20, 老三:15, 小王:689, 小王:689, 老三:15, Bill:20
import java.util.LinkedList;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
package faaa;
import java.util.LinkedList;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class god {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.LinkedList;
class Term{
String name;
int score;
Term(String name,int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args){
LinkedList f=new LinkedList();
f.push(new Term("bill",426));
System.out.println(f);
f.push(new Term("老三",15));
System.out.println(f);
f.push(new Term("小玉",689));
System.out.println(f);
f.push(new Term("小玉",689));
System.out.println(f);
f.push(new Term("老三",15));
System.out.println(f);
f.push(new Term("bill",426));
System.out.println(f);
//f.pop();
//System.out.println(f);
}
}
import java.util.LinkedList;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class B10433037 {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
System.out.println(f);
f.push(new Term("老三",15));
System.out.println(f);
f.push(new Term("小王", 689));
System.out.println(f);
f.push(new Term("小王", 689));
System.out.println(f);
f.push(new Term("老三",15));
System.out.println(f);
f.push(new Term("Bill",20));
System.out.println(f);
f.pop();
System.out.println(f);
}
}
package faaa;
import java.util.LinkedList;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class god {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.LinkedList;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
-------------------------------------------------------
[Bill:20, 老三:15, 小王:689, 小王:689, 老三:15, Bill:20]
import java.util.LinkedList;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.LinkedList;
class p1{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class p2{
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
-------------------------------------------------------
[Bill:20, 老三:15, 小王:689, 小王:689, 老三:15, Bill:20]
import java.util.LinkedList;
class p1{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class p2{
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
-------------------------------------------------------
[Bill:20, 老三:15, 小王:689, 小王:689, 老三:15, Bill:20]
import java.util.LinkedList;
class p1{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class p2{
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.LinkedList;
class p1{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class p2{
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.LinkedList;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.LinkedList;
class p1{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class p2{
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.LinkedList;
class p1{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class p2{
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.LinkedList;
class p1{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class p2{
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.LinkedList;
class p1{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class p2{
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.LinkedList;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.LinkedList;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class zzz {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
mport java.util.LinkedList;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.LinkedList;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.*;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.addFirst(new Term("小王", 689));
f.addFirst(new Term("老三",15));
f.addFirst(new Term("Bill",20));
f.addLast(new Term("小王",689));
f.addLast(new Term("老三",15));
f.addLast(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.*;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.addFirst(new Term("小王", 689));
f.addFirst(new Term("老三",15));
f.addFirst(new Term("Bill",20));
f.addLast(new Term("小王",689));
f.addLast(new Term("老三",15));
f.addLast(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.*;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.addFirst(new Term("小王", 689));
f.addFirst(new Term("老三",15));
f.addFirst(new Term("Bill",20));
f.addLast(new Term("小王",689));
f.addLast(new Term("老三",15));
f.addLast(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.*;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.addFirst(new Term("小王", 689));
f.addFirst(new Term("老三",15));
f.addFirst(new Term("Bill",20));
f.addLast(new Term("小王",689));
f.addLast(new Term("老三",15));
f.addLast(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.*;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.addFirst(new Term("小王", 689));
f.addFirst(new Term("老三",15));
f.addFirst(new Term("Bill",20));
f.addLast(new Term("小王",689));
f.addLast(new Term("老三",15));
f.addLast(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.*;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.addFirst(new Term("小王", 689));
f.addFirst(new Term("老三",15));
f.addFirst(new Term("Bill",20));
f.addLast(new Term("小王",689));
f.addLast(new Term("老三",15));
f.addLast(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.*;
class T1{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.addFirst(new Term("小王", 689));
f.addFirst(new Term("老三",15));
f.addFirst(new Term("Bill",20));
f.addLast(new Term("小王",689));
f.addLast(new Term("老三",15));
f.addLast(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.*;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.addFirst(new Term("小王", 689));
f.addFirst(new Term("老三",15));
f.addFirst(new Term("Bill",20));
f.addLast(new Term("小王",689));
f.addLast(new Term("老三",15));
f.addLast(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.*;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.addFirst(new Term("小王", 689));
f.addFirst(new Term("老三",15));
f.addFirst(new Term("Bill",20));
f.addLast(new Term("小王",689));
f.addLast(new Term("老三",15));
f.addLast(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.*;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.addFirst(new Term("小王", 689));
f.addFirst(new Term("老三",15));
f.addFirst(new Term("Bill",20));
f.addLast(new Term("小王",689));
f.addLast(new Term("老三",15));
f.addLast(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.*;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.addFirst(new Term("小王", 689));
f.addFirst(new Term("老三",15));
f.addFirst(new Term("Bill",20));
f.addLast(new Term("小王",689));
f.addLast(new Term("老三",15));
f.addLast(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.*;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.addFirst(new Term("小王", 689));
f.addFirst(new Term("老三",15));
f.addFirst(new Term("Bill",20));
f.addLast(new Term("小王",689));
f.addLast(new Term("老三",15));
f.addLast(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.*;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.addFirst(new Term("小王", 689));
f.addFirst(new Term("老三",15));
f.addFirst(new Term("Bill",20));
f.addLast(new Term("小王",689));
f.addLast(new Term("老三",15));
f.addLast(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.*;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.addFirst(new Term("小王", 689));
f.addFirst(new Term("老三",15));
f.addFirst(new Term("Bill",20));
f.addLast(new Term("小王",689));
f.addLast(new Term("老三",15));
f.addLast(new Term("Bill",20));
System.out.println(f);
}
}
mport java.util.LinkedList;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.*;
class T1{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.addFirst(new Term("小王", 689));
f.addFirst(new Term("老三",15));
f.addFirst(new Term("Bill",20));
f.addLast(new Term("小王",689));
f.addLast(new Term("老三",15));
f.addLast(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.*;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.addFirst(new Term("小王", 689));
f.addFirst(new Term("老三",15));
f.addFirst(new Term("Bill",20));
f.addLast(new Term("小王",689));
f.addLast(new Term("老三",15));
f.addLast(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.*;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.addFirst(new Term("小王", 689));
f.addFirst(new Term("老三",15));
f.addFirst(new Term("Bill",20));
f.addLast(new Term("小王",689));
f.addLast(new Term("老三",15));
f.addLast(new Term("Bill",20));
System.out.println(f);
}
}
import java.util.LinkedList;
class Term{
String name;
int score;
Term(String name, int score){
this.name=name;
this.score=score;
}
public String toString(){
return name+":"+score;
}
}
public class Main {
public static void main(String[] args) {
LinkedList f=new LinkedList();
f.push(new Term("Bill",20));
f.push(new Term("老三",15));
f.push(new Term("小王", 689));
f.push(new Term("小王", 689));
f.push(new Term("老三",15));
f.push(new Term("Bill",20));
System.out.println(f);
}
}
張貼留言