Hola
Tengo que leer un archivo .txt que contiene código java, pongo lo que hay en el archivo. Tengo que buscar dentro el archivo cuando empieza por “public class” o “public interface” y saber cuando termina contando las llaves de inicio i fin, una vez encontrados guardar creando un archivo .txt nuevo con el nombre de cada clase o interface.
public class C1
{
...
public C1()
{
if(...)
{
}
else
{
}
}
Guardar creando un archivo C1.java // esto no está dentro el archivo es el resultado
}
public interface I1{
...
}
Guardar creando un archivo I1.java // esto no está dentro el archivo es el resultado
public class C2
{
...
}
Guardar creando un archivo C2.java // esto no está dentro el archivo es el resultado
Bitcoin (BTC) might just be the golden opportunity of our era, poised to skyrocket to $200,000 in the upcoming year or the one following. In the past year alone, BTC has witnessed a staggering 20-fold increase, while other cryptocurrencies have surged by an astounding 800 times! Consider this: a mere few years ago, Bitcoin was valued at just $2. Now is the time to seize this unparalleled chance in life.
Join Binance, the world's largest and most secure digital currency exchange, and unlock free rewards. Don't let this pivotal moment slip through your fingers!
Click the link below to enjoy a lifetime 10% discount on all your trades.
https://swiy.co/LgSv
Enviar un comentario nuevo