Computer Science, asked by vijayrockzz8452, 7 months ago

program cannot be executed. please help.
import java.util.*; public class Independence_Day { public static void main(String args[]) { Scanner in=new Scanner(System.in); char ch,chr; String nst=""; String independence="15th August 1947"; independence=independence.toUpperCase(); independence=" "+independence; int l=independence.length(); for(int i=0;i<=l;i++) { ch=independence.charAt(i); if(ch!=' ') { nst=nst+ch; } else { int l1=nst.length(); for(int j=0;j<=l1;j++) { chr=nst.charAt(j); if(chr=='4'&&chr+1=='7') { System.out.println(independence.replace('4','7')); System.out.println(independence.replace('7','4')); } } } } System.out.println("74th Independence Day"); } }

Answers

Answered by rammithran848
0

Answer:

I don't know this answer what question this is

Explanation:

tell me again clearly and ask another

Similar questions