52ky 发表于 2022-10-9 15:57:16

Java基础 JAVA基础教程 JAVA文字教程

一、Java基础知识1.Java有那些基本数据类型,String是不是基本数据类型,他们有何区别。Integerliterals,Floating-pointliterals,characterliterals,Booleanliteral,Stringiteral.String不是基本数据类型2.字符串的操作:写一个方法,实现字符串的回转,如:输入abc,输出cbapublicstaticStringreverse(Strings){intlength=s.length();StringBufferresult=newStringBuffer(length);for(inti=length-1;igt;=0;i--)result.append(s.charAt(i));returnresult.toString();}

(1、 Java basics 1. What are the basic data types in Java? Is String the basic data type? What are the differences between them. Integerliterals, Floating pointliterals, characterliterals, Boolean, Stringliteral. String is not a basic data type. urnresult. toString();})




页: [1]
查看完整版本: Java基础 JAVA基础教程 JAVA文字教程