Here is my attempt so far. It's is not working like the instructions above ask.
public class MixedCase
* @param args the command line arguments
public static void main(String args)
Scanner input = new Scanner (System.in);
System.out.print("Please enter a string: ");
a = input.nextLine();
for (char i = 0; i < a.length(); i++)
if ((Character.isUpperCase(a.charAt(i))) && Character.isLowerCase(a.charAt(i)))
System.out.print("This string has both lower and upper case characters.");
System.out.print("This string does not have both lower and upper case characters.");
Why do you think that? Java char is a numeric 16 bit integer type, perfectly OK, and converted to int by Java whenever needed. Did you test that before posting? It may be an odd choice, but its not wrong.
It certainly won't fix his (unspecified) problem, which is caused by the logic being way off - eg the boolean expression on line 17 will alwyas return false, which presumably is not what he intended.
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...