JAVA STRING .EQUALS
JAVA STRING .EQUALS /* 4. WAP in Java to print the longest word in a sentence. If lengths are same then it will print the first word.*/ import java.util.*; class Test { public static void main(String args[]) { Scanner sc=new Scanner(System.in); String name; System.out.print("\nInput: "); name=sc.nextLine(); //System.out.print("NAME: "+name); String ns2=(name.charAt(0)+". "); String ls=""; int i=0; int lp=0,pi=-1,max=0,ival=0; ...