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
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
Basics of Encapsulation in java
public class En {
enum Season { WINTER, SPRING, SUMMER, FALL; }
public static void main(String ar[])
{
Season s=Season.FALL;
System.out.print…Read More
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
0 comments:
Post a Comment