rendered paste body/* * Main.java * * Created on 04 December 2006, 12:11 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */package scratch;/** * * @author stephensd1 */public class Main { /** Creates a new instance of Main */ public Main() { } /** * @param args the command line arguments */ public static void main(String[] args) { byte[] bytes=new byte[3]; bytes[0]='A'; bytes[1]=(byte)0xAC; bytes[2]='B'; System.out.println("Before changes: "); for(int i=0; i<bytes.length; i++){ System.out.println(bytes[i]); } System.out.println(new String(bytes)); for(int i=0; i<bytes.length; i++){ if(bytes[i]<0){ bytes[i]=32; } } System.out.println("After changes: "); for(int i=0; i<bytes.length; i++){ System.out.println(bytes[i]); } System.out.println(new String(bytes)); }}