int array to Char
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: int array to Char

  1. #1
    Join Date
    Nov 2016
    Posts
    1

    int array to Char

    Hello Everyone,

    I am a forensic analyst by trade and have come seeking some advise regard the following piece of code that was discovered.

    In specific how the a.AppCompatTheme_spinnerStyle and a.AppCompatTheme_switchStyle would ever translate from int to a Char.

    Any help would be greatly appreciated.

    Code:
    public static String a(String str) {
            return new String(Base64.decode(str, 8));
        }
    
        public static String a(int[] iArr) {
            StringBuilder stringBuilder = new StringBuilder(iArr.length);
            for (int toChars : iArr) {
                stringBuilder.append(Character.toChars(toChars));
            }
            return stringBuilder.toString();
        }
    
        public static String b() {
            return a(a(new int[]{97, 50, 86, 53, 76, a.AppCompatTheme_spinnerStyle, 66, a.AppCompatTheme_switchStyle, 99, 65, 61, 61}));
        }
    Todd

  2. #2
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,697

    Re: int array to Char

    Can you post an example of the int values you want to convert and the char values you want to be the results.

    Note: char values can be treated as numeric and an int value can be cast to a char:
    Code:
         System.out.println((char)43); // +
    I have never heard of these: AppCompatTheme????

    Note: single letter method names make code hard to read and understand. Names should describe what the methods are doing.
    Last edited by Norm; November 29th, 2016 at 05:02 PM.
    Norm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


HTML5 Development Center