|    
			
				05/09/2013, 03:51
			
			
			  | 
  |   |  |  |  Fecha de Ingreso: noviembre-2011 
						Mensajes: 13
					 Antigüedad: 13 años, 10 meses Puntos: 0 |  | 
  |   Convertirn un char a string y esta string a mayusculas 
  /** To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
 package ccadenas;
 
 /**
 *
 * @author moji87
 */
 import java.io.*;
 public class CCadenas {
 
 /**
 * @param args the command line arguments
 */
 public static void main(String[] args)
 {
 char []cadena =new char[80];
 int car ,i=0;
 
 try{
 System.out.println("Escriba una cadena de caracteres:");
 while((car=System.in.read()) != '\n' && i<cadena.length
 )
 {
 cadena[i++]=(char)car;
 
 }
 
 String scadena=(new StringBuffer().append(cadena)).toString();
 System.out.println("Cadena en mayúsculas: " + scadena.toUpperCase());
 }
 catch(IOException e)
 {
 
 }
 }
 }
     |