I have a text file with the name A.text.
A.text
package com.example;
public final class R {
public static final class ArrayClass {
public static final int a=0x7f030000;
public static final int b=0x7f030001;
public static final int c=0x7f030002;
}
public static final class StringClass {
public static final int aa=0x7f030000;
public static final int bb=0x7f030001;
public static final int cc=0x7f030002;
}
}
I read this class in java or Kotlin and save in a variable with name text.
String text = "package com.example; public final class R { ..."
how can convert to class?
I need a library like Gson for converting JSON to class.
Aucun commentaire:
Enregistrer un commentaire