package javaapplication1;
import java.io.ByteArrayInputStream;
public class JavaApplication1 {
public static void main(String[] args) {
String s = "java c# c c++";
try
{
byte[] byteArr = s.getBytes();
ByteArrayInputStream bis = new ByteArrayInputStream(byteArr, 5, 2);
int ch;
while ((ch = bis.read()) != -1)
System.out.print((char)ch);
}
catch(Exception e)
{
System.out.println(e.getMessage());
}
}
}
/*
run:
c#
*/