#485·howdoi

Add method to detect symbols like +, /, etc. in the queries

Author: SudhakarKumaCreated May 26, 2023Updated May 30, 2023

Description

Add some method to detect symbols in the query. Let us say, we want to know how to use + sign to concatenate two strings. To know this, one can pass queries, like

  • howdoi use + concat strings
  • howdoi use plus concat strings
  • etc.

At present, the outputs for these two are as shown below:

> howdoi use + concat strings
+
> howdoi use plus concat strings
public class Concat {
    String cat(String a, String b) {
        a += b;
        return a;
    }
}

Additional Comments (if any)

Similarly, the results vary significantly for queries like howdoi a divide b, howdoi a / b, etc.

Have you read the Contributing Guidelines on Pull Requests on mkdocs?

Yes