<div dir="auto">Ah, I misread the JLS Language Grammar!<div dir="auto"><br></div><div dir="auto">I was aware of \u0007, but not \7. I see now that that works. Then nevermind, that meets my needs just fine. No need for my suggestion.</div><div dir="auto"><br></div><div dir="auto">The 4 digit unicode is fine, a good escape hatch, but also easy to forget, since my brain interprets all 4 digits as significant. And char bell = 7; is also unideal. But a 1 digit escape works perfectly for me. Would have preferred \a, but \7 is more explicit and easier to look up.</div><div dir="auto"><br></div><div dir="auto">Ty vm!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 27, 2025, 6:15 AM Andrew Dinn <<a href="mailto:adinn@redhat.com" target="_blank" rel="noreferrer">adinn@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On 26/10/2025 17:26, David Alayachew wrote:<br>
> Also, here is the JLS 25 entry about escape sequences -- https:// <br>
> <a href="http://docs.oracle.com/javase/specs/jls/se25/html/jls-3.html#jls-3.10.7" rel="noreferrer noreferrer noreferrer" target="_blank">docs.oracle.com/javase/specs/jls/se25/html/jls-3.html#jls-3.10.7</a> <br>
> <<a href="https://docs.oracle.com/javase/specs/jls/se25/html/jls-3.html#jls-3.10.7" rel="noreferrer noreferrer noreferrer" target="_blank">https://docs.oracle.com/javase/specs/jls/se25/html/jls-3.html#jls-3.10.7</a>><br>
> <br>
> All I really want is for that to be added to the list, so that I can do <br>
> it the same as I would in other languages. It sounds like an in-place <br>
> replacement done by the compiler.<br>
<br>
What is wrong with using \u0007 or \7? (as documented in the html page <br>
you cited).<br>
<br>
regards,<br>
<br>
<br>
Andrew Dinn<br>
-----------<br>
Red Hat Distinguished Engineer<br>
He/Him/His<br>
IBM UK Limited<br>
Registered in England and Wales with number 741598<br>
Registered office: Building C, IBM Hursley Office, Hursley Park Road, <br>
Winchester, Hampshire SO21 2JN<br>
<br>
</blockquote></div>