I have the following Java class that needs comments added. Everywhere there is a "//", I need a comment after it. The first // should contain a complete sentence that gives a general overview of what this class does. The rest of the comments should not be in complete sentences. They should be short concise statements starting with a verb that tells the reader what the line or lines of code is doing from that // to the next //. If the // appears before an if statement or else statement, the comment should begin with the format "Case when..." followed by a description of the condition proceeding the if or else statement.

import java.util.Scanner;
//
public class Names {
	public static void main(String[] args) {
		//
		String a, b;
        //
		Scanner s = new Scanner(System.in);
        //
		System.out.print("Enter name: ");
		a = s.next();
		System.out.print("Enter another name: ");
		b = s.next();
		//
		if (a.equals(b) == true) {
			System.out.println("Both names are the same.");
		}
        //
		else {
			//
			if ((a.equalsIgnoreCase(b)) == true){
				System.out.println("Both names are equal if case is ignored.");
			}
			//
			else {
				System.out.println("Names are not equal.");
			}
		}
	}
}
system
mere paas nimnlikhit java varg he jise tippaniyon kii aavashyaktaa he.har jagah ek "//" he, mujhe iske baad ek tippanee kii aavashyaktaa he.pehle // main ek purna vaakya hona chahie jo is varg kaa ek saamaanya avlokan detaa he.baaki tippaniyan purna vaakyon main nahin honi chahie.unhen ek kriya ke saath shuru hone vaale chote sankshipt kathan hona chahie jo pathak ko bataata he ki code kii line yaa line us // se agle // tak kya kar rahi hai.yadi // ek IF statement yaa anya bayaan se pehle prakat hota he, to tippanee ko praaroop ke saath shuru hona chahie "cese jab ..." "ke baad sthiti ke vivaran ke baad yadi yaa to kathan ko aage badhaayaa jaataa he.

aayaat java.util.scanner;
//
saarvajanik varg ke naam {
saarvajanik sthitik shunya main (String [] args) {
//
string e, bi;
        //
scinar es = nayaa scinar (System.in);
        //
System.out.print ("naam darj karen:");
a = s.next ();
System.out.print ("doosraa naam darj karen:");
b = s.next ();
//
if (aequals (b) == satya) {
System.out.println ("donon naam samaan hai.");
}
        //
anya {
//
if ((a.equalsignorecase (b)) == satya) {
System.out.println ("donon naam samaan hai yadi maamle ko andekha kiya jaataa he.");
}
//
anya {
System.out.println ("naam samaan nahin hai.");
}
}
}
}
user
maine aapke dwaara anurodh kii gai tippaniyon ko joda he.mujhe pataa he agar kisi bhi spashtikaran kii aavashyaktaa he!

aayaat java.util.scanner;
// yah varg do naamon kii tulana karata he or nirdhaarit karata he ki kya ve samaan yaa alag hai.
saarvajanik varg ke naam {
saarvajanik sthitik shunya main (String [] args) {
// do string char ghoshit karnaa.
string e, bi;
        // ek nayaa scinar object bananaa.
scinar es = nayaa scinar (System.in);
        // prayek string char ke liye ek naam sangrahit karnaa.
System.out.print ("naam darj karen:");
a = s.next ();
System.out.print ("doosraa naam darj karen:");
b = s.next ();
// maamla jab donon naam samaan hai.
if (aequals (b) == satya) {
System.out.println ("donon naam samaan hai.");
}
        // maamla jab donon naam samaan nahin hai.
anya {
// maamla jab donon naam samaan hai yadi upree or nichle maamle ke patr ke antar ko nazarandaaj kar diya jaataa he.
if ((a.equalsignorecase (b)) == satya) {
System.out.println ("donon naam samaan hai yadi maamle ko andekha kiya jaataa he.");
}
// cese jab naam alag -alag hote hai.
anya {
System.out.println ("naam samaan nahin hai.");
}
}
}
}
assistant
<|system|>
</s>
<|user|>
mere paas nimnlikhit java varg he jise tippaniyon kii aavashyaktaa he.har jagah ek "//" he, mujhe iske baad ek tippanee kii aavashyaktaa he.pehle // main ek purna vaakya hona chahie jo is varg kaa ek saamaanya avlokan detaa he.baaki tippaniyan purna vaakyon main nahin honi chahie.unhen ek kriya ke saath shuru hone vaale chote sankshipt kathan hona chahie jo pathak ko bataata he ki code kii line yaa line us // se agle // tak kya kar rahi hai.yadi // ek IF statement yaa anya bayaan se pehle prakat hota he, to tippanee ko praaroop ke saath shuru hona chahie "cese jab ..." "ke baad sthiti ke vivaran ke baad yadi yaa to kathan ko aage badhaayaa jaataa he.

aayaat java.util.scanner;
//
saarvajanik varg ke naam {
saarvajanik sthitik shunya main (String [] args) {
//
string e, bi;
        //
scinar es = nayaa scinar (System.in);
        //
System.out.print ("naam darj karen:");
a = s.next ();
System.out.print ("doosraa naam darj karen:");
b = s.next ();
//
if (aequals (b) == satya) {
System.out.println ("donon naam samaan hai.");
}
        //
anya {
//
if ((a.equalsignorecase (b)) == satya) {
System.out.println ("donon naam samaan hai yadi maamle ko andekha kiya jaataa he.");
}
//
anya {
System.out.println ("naam samaan nahin hai.");
}
}
}
}</s>
<|assistant|>
maine aapke dwaara anurodh kii gai tippaniyon ko joda he.mujhe pataa he agar kisi bhi spashtikaran kii aavashyaktaa he!

aayaat java.util.scanner;
// yah varg do naamon kii tulana karata he or nirdhaarit karata he ki kya ve samaan yaa alag hai.
saarvajanik varg ke naam {
saarvajanik sthitik shunya main (String [] args) {
// do string char ghoshit karnaa.
string e, bi;
        // ek nayaa scinar object bananaa.
scinar es = nayaa scinar (System.in);
        // prayek string char ke liye ek naam sangrahit karnaa.
System.out.print ("naam darj karen:");
a = s.next ();
System.out.print ("doosraa naam darj karen:");
b = s.next ();
// maamla jab donon naam samaan hai.
if (aequals (b) == satya) {
System.out.println ("donon naam samaan hai.");
}
        // maamla jab donon naam samaan nahin hai.
anya {
// maamla jab donon naam samaan hai yadi upree or nichle maamle ke patr ke antar ko nazarandaaj kar diya jaataa he.
if ((a.equalsignorecase (b)) == satya) {
System.out.println ("donon naam samaan hai yadi maamle ko andekha kiya jaataa he.");
}
// cese jab naam alag -alag hote hai.
anya {
System.out.println ("naam samaan nahin hai.");
}
}
}
}</s>
