Converting byte array to string
public class ByteArrayToString {
public static void main(String[] args) {
byte bytearray[]={96,97,98,99,100,101,102};
String str=new String(by…Read More
String Manipulation in Java
import java.io.UnsupportedEncodingException;
public class ByteArray {
public static void main(String[] args) {
byte bt[]={'m','y',' ','n','a'…Read More
String methods in java
public class StringEx2 {
public static void main(String[] args) {
String hannah = "Did Hannah see bees? Hannah did.";
System.out.println("T…Read More
0 comments:
Post a Comment