网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
判断题
StringBuffer deleteCharAt(int index)表示删除索引index-1处的字符
A

B


参考答案

参考解析
解析: 暂无解析
更多 “判断题StringBuffer deleteCharAt(int index)表示删除索引index-1处的字符A 对B 错” 相关考题
考题 关于索引的叙述,不正确的是()。 A.create index语句表示建立索引B.drop index语句表示删除索引C.一个基本表上可以建立多个聚簇索引D.索引删除后,DBMS会从数据字典中删去有关该索引的描述

考题 SQL的DROP INDEX 语句的作用是( )。A.删除索引B.建立索引C.修改索引D.更新索引

考题 字符串分为两大类,一类是字符串常量,使用【 】类的对象表示;另一类是字符串变量,使用StringBuffer类的对象表示。

考题 请完成Java程序:本题是一个冒泡排序程序的实例。冒泡排序的含义是将相邻的两个数作比较,如果是升序排列的话,如果前边的数大,则将两个数交换。从第一个数开始两两比较一次,就可以将最大的数移动到最后。注意:请勿修改main()主方法和其他已有语句内容,仅在横线处填入适当语句。import java.io.*;public class simple{public static int[]Data=new int[10];public static void main(String[] args)int i;int Index;Index=0;InputStreamReader ir;BufferedReader in;ir=new InputStreamReader(System.in);in=new BufferedReader(ir);try{do{System.out.println("Please input the number"+Index+"you want to sort(Exit for 0):");String s=in.readLine();Data[Index]=Integer.parseInt(s);Index++;}while(Data[Index-1]!=0);}catch(IOException e){System.out.println(e.getMessage());}System.out.print("Before bubble sorting:");for(i=0; i<Index-1; i++)System.out.print(" "+Data[i]+" ");System.out.println(" ");BubbleSort(Index-1);System.out.print("After Bubble Sorting:");for(i=0; i<Index-1;i++)System.out.print(" "+Data[i]+" ");System.out.println(" ");}public static void BubbleSort(int Index){int i, j, k;boolean Change;int Temp;for(j=Index; j>1;j--){Change=false;for(i=0; i<j-1;i++){if(Data[i+1]<Data[i]){Temp=Data[i+1];Data[i+1]=Data[i];______;______;}}if(Change){System.out.print("Current Sorting Result:");for(k=0; k<Index; k++)System.out.print(" "+Data[k]+" ");System.out.println(" ");}}}}

考题 删除学生表的候选索引XUESH INDEX,该语句格式为:ALTER TABLE 学生表______ TAG XUESH_INDEX

考题 SQL中的DROP,INDEX语句的作用是A.删除索引B.建立索引C.更新索引D.修改索引

考题 SQL中DROP INDEX语句的作用是( )。A.建立索引B.修改索引C.删除索引D.更新索引

考题 删除索引的T-SQL语句是()。A.drop indexB.create indexC.sp_help indexD.update index

考题 下列方法中,哪个用于实现获取字符在某个字符串中第一次出现的索引?() A.char charAt(int index)B.int indexOf(int ch)C.int lastIndexOf(int ch)D.boolean endsWith(String suffix)

考题 请用CREATE INDEX语句在数据库db_test的表content中,根据留言标题列的前三个字符采用默认的索引类型刨建一个升序索引index_subject。

考题 试题五(共 15 分)阅读下列说明、图和C++代码,将应填入 (n) 处的字句写在答题纸的对应栏内。[说明]已知对某载客车辆(Car)进行类建模,如图 5-1所示,其中类 Engine 表示发动机引擎,类 Wheel 表示车轮,类 Body 表示车身,类 Driver 表示司机,类 Passenger 表示乘客。[C++代码]const int (1) = 7; //定义最多载客数const int MAX_WHEELS = 5; //定义最多轮胎数class Body{ //此处代码省略 }; //车身类class Passenger{ //此处代码省略 }; //乘客类class Wheel{ //此处代码省略 }; //车轮类class Driver{ //司机类public:string name; //表示第几路公交车司机Driver(string driverName):name( (2) ){}; //构造函数};class Engine{ //引擎类public:string engineNo; //引擎编号Engine(string engineNo){ (3) -engineNo = engineNo; } //构造函数};class Car{ //汽车类protected:Engine * engine; Driver * driver; Body body;Wheel * wheels[MAX_WHEELS]; Passenger * passengers[MAX_PASSENGERS];public:Car(Driver *driver){ //构造函数this-driver = driver;engine = new Engine("TX6536 型号引擎");for (int index = 0; index MAX_WHEELS; index++){wheels[index] = new Wheel();}for (int index = 0; index MAX_PASSENGERS; index++){passengers[index] = NULL;}}virtual ~Car(){ //析构函数for (int index=0; index MAX_WHEELS; index++)delete wheels[index];delete (4) ;}int getPassengerNumber(){ //获取车上乘客数量//此处代码省略}void getOnPassenger(Passenger * aPassenger ){ //乘客上车//此处代码省略}void run(){ //开车if(driver == NULL){ cout "司机尚未上车!"; return; }//此处代码省略}};void main(){Driver driver("第五路公交车司机");Car car( (5) );Passenger passengers[MAX_PASSENGERS];for (int index = 0 ; index MAX_PASSENGERS; index ++) //乘客上车处理car.getOnPassenger(passengers[index]);car.run();}

考题 应使用哪条语句删除“雇员”表的“姓氏”列上的“姓氏_IDX”索引?()A、DROP INDEX姓氏_idx;B、DROP INDEX姓氏_idx(姓氏);C、DROP INDEX姓氏_idx(雇员.姓氏);D、ALTERTABLE雇员DROP INDEX姓氏_idx;

考题 要删除mytable表中的myindex索引,可以使用()语句。A、DROP myindexB、DROP mytable.myindexC、DROP INDEX myindexD、DROP INDEX mytable.myindex

考题 StringBuffer deleteCharAt(int index)表示删除索引index-1处的字符

考题 StringBuffer reverse( );表示()A、字符串反转B、字符串清空C、字符串的赋值D、字符串删除

考题 indexOf(Strings,intbegin_index)是从字符串s中第begin_index+1字符处开始检索

考题 关于String和StringBuffer,下面那些是正确的:()A、常量字符串使用String,非常量字符串使用StringBuffer。B、使用StringBuffer的时候设置初始容量。C、尽量使用StringTokenizer代替indexOf()和substring()。D、尽量不要使用StringBuffer,StringTokenizer类。

考题 StringBufferappend(char[],intint1,intint2)表示()A、向一个字符串追加字符数组,范围从数组的索引int1开始,到索引int2结束B、向一个字符串追加字符数组,范围从数组的索引int1开始,到索引int2-1结束C、向一个字符串追加字符数组,范围从数组的索引int1开始,长度为int2D、向一个字符串追加字符数组,范围从数组的索引int1开始,长度为int2-1

考题 charAt(int index)表示从字符串中取得一个字符,该字符的位置是index

考题 以下语句的含义是() char[] arrcrlf={13,10};  String crlf=new String(arrcrlf);  stringBuffer dest = new StringBuffer("西行漫记");  dest.append(crlf); A、字符串"西行漫记"不变B、字符串"西行漫记"的最后一个字被删除C、语句存在语法错误D、在字符串"西行漫记"的后面加回车换行符

考题 多选题关于String和StringBuffer,下面那些是正确的:()A常量字符串使用String,非常量字符串使用StringBuffer。B使用StringBuffer的时候设置初始容量。C尽量使用StringTokenizer代替indexOf()和substring()。D尽量不要使用StringBuffer,StringTokenizer类。

考题 单选题下列程序的功能是统计字符串中“array”的个数,在程序的空白处应填入的正确选项是(  )。public class FindKeyWords{ public static void main(String[]args) {  String text = An array is a data structur that stores a collection of   +values of the same type. You access each individual value   +through an integer index. For example,if a is an array   +of inergers,then a[i] is the ith integer in the array.;  int arrayCount=0;  int index=-1;  String arrayStr=array;  index=text.indexOf(arrayCount);  while(index ______ 0)  {   ++arrayCount;   index+=arrayStr.length();   index=text.indexOf(arrayStr,index);   System.out.println(the text contains+arrayCount+arrays);  } }}A B =C =D =

考题 单选题删除索引的T-SQL语句是()。A drop indexB create indexC sp_help indexD update index

考题 单选题以下语句的含义是() char[] arrcrlf={13,10};  String crlf=new String(arrcrlf);  stringBuffer dest = new StringBuffer("西行漫记");  dest.append(crlf);A 字符串西行漫记不变B 字符串西行漫记的最后一个字被删除C 语句存在语法错误D 在字符串西行漫记的后面加回车换行符

考题 多选题Given: 11. 15. Which three EL expressions, inserted at line 15,are valid and evaluate to "3"?()A${vals.2}B${vals[2]}C${vals.index}D${vals[index]}E${vals}[index]F${vals[vals[index-1]]}

考题 单选题StringBuffer reverse( );表示()A 字符串反转B 字符串清空C 字符串的赋值D 字符串删除

考题 判断题charAt(int index)表示从字符串中取得一个字符,该字符的位置是indexA 对B 错