wtp
Grand Master

- Joined
- Nov 25, 2005
- Sythe Gold
- 0
- Messages
- 2,455
- Age
- 34
- Location
- Perth Amboy, NJ...Sorry no lame joke
How do I make the char go to uppercase?
Code:
//Philip Rego
//CSC 161 - 02
//Lab 11D
import java.util.Scanner;
public class four
{
static String input;
static int index;
static char temp;
static Scanner keyboard = new Scanner(System.in);
public static void main(String[] args)
{
System.out.println("Input a string.");
input = keyboard.next();
char [] list = input.toCharArray();
for(index = 0; index < list.length; index++)
{
temp = list[index];
System.out.print(temp.toUpperCase());
}
}
}

