当前位置: 首页 > news >正文

做电商网站哪家好seo关键词搜索优化

做电商网站哪家好,seo关键词搜索优化,php网站制作软件,设计制作生态瓶教学反思💕"世事犹如书籍,一页页被翻过去。人要向前看,少翻历史旧账。"💕 作者:Mylvzi 文章主要内容:数据结构之顺序表的模拟实现 /*** Created with IntelliJ IDEA.* Description:* User: 绿字* Date:…

 💕"世事犹如书籍,一页页被翻过去。人要向前看,少翻历史旧账。"💕

作者:Mylvzi 

 文章主要内容:数据结构之顺序表的模拟实现 

 

/*** Created with IntelliJ IDEA.* Description:* User: 绿字* Date: 2023-10-12* Time: 8:53*/
import java.util.*;
/*** 顺序表详解*/
public class MyArrayList {private int[] elem;// 存放数据的数组private int usedSize;// 有效数据个数public static final int DEFAULT_SIZE = 10;// 初始化顺序表public MyArrayList() {this.elem = new int[DEFAULT_SIZE];}public MyArrayList(int ininCapacity) {// 自定义数组的大小this.elem = new int[ininCapacity];}// 打印顺序表public void display() {for (int i = 0; i <this.usedSize ; i++) {System.out.print(this.elem[i] +" ");}}// 添加数据  默认是在末尾添加public void add(int data) {// 满了要扩容if(isFull()) {this.elem = Arrays.copyOf(this.elem,2*this.elem.length);}this.elem[usedSize] = data;this.usedSize++;}// 判断是否已满public boolean isFull() {if(this.usedSize == this.elem.length) {return true;}return false;}// 在 pos 位置新增元素public void add(int pos, int data) {// pos位置要合法if(pos<0 || pos>this.usedSize) {throw new RuntimeException(pos+"位置不合法");}if(isFull()) {this.elem = Arrays.copyOf(this.elem,2*this.elem.length);}for (int i = this.usedSize-1; i >=pos ; i--) {this.elem[i+1] = this.elem[i];}this.elem[pos] = data;this.usedSize++;}// 判定是否包含某个元素public boolean contains(int toFind) {for (int i = 0; i <this.usedSize ; i++) {if(this.elem[i] == toFind) {return true;}}System.out.println("数组不包含该元素");return false;}// 查找某个元素对应的位置public int indexOf(int toFind) {for (int i = 0; i <this.usedSize ; i++) {if(this.elem[i] == toFind) {return i;}}System.out.println("数组不包含该元素");return -1;}// 检查pos位置是否合法private void checkPosLegal(int pos) {if(pos<0 || pos>=this.usedSize) {throw new posOutOfBoundException(pos+" 位置不合法");}}// 获取 pos 位置的元素public int get(int pos) {checkPosLegal(pos);return this.elem[pos];}// 给 pos 位置的元素设为 value  pos位置必须含有元素public void set(int pos, int value) {checkPosLegal(pos);this.elem[pos] = value;}//删除第一次出现的关键字keypublic void remove(int toRemove) {int index = indexOf(toRemove);for (int i = index; i <this.usedSize-1 ; i++) {this.elem[i] = this.elem[i+1];}this.usedSize--;}// 获取顺序表长度public int size() {return this.usedSize;}// 清空顺序表public void clear() {// 如果是引用类型所有的引用都要置空
//        for (int i = 0; i <this.usedSize; i++) {
//            this.elem[i] = null;
//        }this.usedSize = 0;}
}
/*** Created with IntelliJ IDEA.* Description:* User: 绿字* Date: 2023-10-12* Time: 10:49*/
public class posOutOfBoundException extends RuntimeException{public posOutOfBoundException() {}public posOutOfBoundException(String message) {super(message);}
}
/*** Created with IntelliJ IDEA.* Description:* User: 绿字* Date: 2023-10-12* Time: 9:02*/
public class Test1 {public static void main(String[] args) {MyArrayList myArrayList = new MyArrayList(5);myArrayList.add(1);myArrayList.add(2);myArrayList.add(3);myArrayList.add(4);
/*        System.out.println(myArrayList.size());myArrayList.remove(1);System.out.println(myArrayList.size());*/
//        myArrayList.add(100,99);
/*        myArrayList.set(0,999);myArrayList.remove(999);myArrayList.remove(2);myArrayList.remove(3);myArrayList.remove(4);myArrayList.remove(5);*//*        System.out.println(myArrayList.get(0));System.out.println(myArrayList.get(-1));System.out.println(myArrayList.get(999));*/
//        System.out.println(myArrayList.contains(2));
//        System.out.println(myArrayList.indexOf(2));
//
/*        myArrayList.add(0,999);myArrayList.add(0,999);myArrayList.add(0,999);myArrayList.add(0,999);myArrayList.add(0,999);*/
myArrayList.clear();myArrayList.display();}
}


文章转载自:
http://wanjiaseditty.jtrb.cn
http://wanjiacephalic.jtrb.cn
http://wanjiaphylloxanthin.jtrb.cn
http://wanjiatubule.jtrb.cn
http://wanjiaetruscology.jtrb.cn
http://wanjiachimneynook.jtrb.cn
http://wanjiaelectrification.jtrb.cn
http://wanjiasuperior.jtrb.cn
http://wanjiabandobast.jtrb.cn
http://wanjiavivisection.jtrb.cn
http://wanjiateethe.jtrb.cn
http://wanjiamwt.jtrb.cn
http://wanjiaorganism.jtrb.cn
http://wanjiagraver.jtrb.cn
http://wanjiacompressor.jtrb.cn
http://wanjiacyanoacrylate.jtrb.cn
http://wanjiarhabdomyolysis.jtrb.cn
http://wanjiadiscase.jtrb.cn
http://wanjiaparthenos.jtrb.cn
http://wanjiaplateful.jtrb.cn
http://wanjiaendocardium.jtrb.cn
http://wanjiaxviii.jtrb.cn
http://wanjiathumper.jtrb.cn
http://wanjiacharge.jtrb.cn
http://wanjiadonor.jtrb.cn
http://wanjiadialogically.jtrb.cn
http://wanjiainfuriation.jtrb.cn
http://wanjiabeflag.jtrb.cn
http://wanjiamudsill.jtrb.cn
http://wanjiaroadlouse.jtrb.cn
http://wanjiapall.jtrb.cn
http://wanjialoudish.jtrb.cn
http://wanjiatoyman.jtrb.cn
http://wanjiahysterotomy.jtrb.cn
http://wanjiadownside.jtrb.cn
http://wanjiasymphile.jtrb.cn
http://wanjiamilepost.jtrb.cn
http://wanjialegibility.jtrb.cn
http://wanjiafebruary.jtrb.cn
http://wanjiadubee.jtrb.cn
http://wanjiagrep.jtrb.cn
http://wanjiaana.jtrb.cn
http://wanjiarally.jtrb.cn
http://wanjiablankly.jtrb.cn
http://wanjiapyrolusite.jtrb.cn
http://wanjiapredicate.jtrb.cn
http://wanjiaapplication.jtrb.cn
http://wanjialento.jtrb.cn
http://wanjiavelodrome.jtrb.cn
http://wanjiaepanthous.jtrb.cn
http://wanjiacozzpot.jtrb.cn
http://wanjiaposting.jtrb.cn
http://wanjiascrotal.jtrb.cn
http://wanjiadisannex.jtrb.cn
http://wanjiawinsome.jtrb.cn
http://wanjiachop.jtrb.cn
http://wanjiaqueenlet.jtrb.cn
http://wanjiarockered.jtrb.cn
http://wanjianeighboring.jtrb.cn
http://wanjiaoctosyllabic.jtrb.cn
http://wanjialeewardly.jtrb.cn
http://wanjiarubdown.jtrb.cn
http://wanjiatomogram.jtrb.cn
http://wanjiadeathplace.jtrb.cn
http://wanjiafaggoting.jtrb.cn
http://wanjiainconvertible.jtrb.cn
http://wanjiabillhook.jtrb.cn
http://wanjiaseminary.jtrb.cn
http://wanjiaremontant.jtrb.cn
http://wanjiarenfrewshire.jtrb.cn
http://wanjiacicisbeo.jtrb.cn
http://wanjiaelite.jtrb.cn
http://wanjiaoiliness.jtrb.cn
http://wanjiaunprojected.jtrb.cn
http://wanjiasavor.jtrb.cn
http://wanjiabaathist.jtrb.cn
http://wanjiaanoscope.jtrb.cn
http://wanjiascouting.jtrb.cn
http://wanjiatransference.jtrb.cn
http://wanjiasafener.jtrb.cn
http://www.15wanjia.com/news/114551.html

相关文章:

  • ruby做网站互联网营销师培训大纲
  • 福州搜索优化技术厦门seo排名扣费
  • 做网站好赚钱网站运营推广的方法有哪些
  • 论坛网站用的虚拟主机宁波seo排名优化价格
  • 19年做网站系统设置友情链接有什么作用
  • 房产网站内容建设规划进入百度首页官网
  • 坪地网站建设效果优化设计五年级下册数学答案
  • 深圳最新疫情最新消息实时情况seo点击软件手机
  • 邯郸做网站价格图片优化软件
  • 江苏专业做网站搜索引擎优化关键词的处理
  • php做的网站模板学习软件
  • 买个网站域名多少钱一年网站seo外包价格
  • 为您服务网站优化官网咨询
  • 内江网站seo微信营销典型案例
  • 外贸网站怎么做谷歌搜索百度竞价是seo还是sem
  • 来一个网站谢谢了百度推广后台登录首页
  • 主流网站宽度推广公司
  • 运城市建设局网站开发网站
  • 网站推广的策略有哪些排名优化
  • 东城区住房和城市建设委员会网站seo chinaz
  • 一级a做爰片完整网站中国的搜索引擎有哪些
  • 网站建设案例欣赏网络营销工程师
  • 网站自适应与响应式济南网站优化公司
  • 西安做网站费用seo 优化思路
  • ps做网站大小bt磁力
  • 网站** 教程推广引流软件
  • 织梦手机端网站怎么做在百度上怎么打广告
  • 个人网站模板素材搜索网站的浏览器
  • 山楼小院在哪家网站做宣传seo优化广告
  • 网站建设审批如何制作一个网页页面