Skip to content

Added new file for pull request#1

Open
disha872 wants to merge 9 commits into
mainfrom
my-branch
Open

Added new file for pull request#1
disha872 wants to merge 9 commits into
mainfrom
my-branch

Conversation

@disha872
Copy link
Copy Markdown
Owner

@disha872 disha872 commented Oct 7, 2025

No description provided.

Comment thread Main.java Outdated
Mystring mystr = new Mystring();



Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary spaces

Comment thread Main.java Outdated

public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variable name should be more descriptive change all the variables name that are undescriptive

Comment thread Mystring.java Outdated
if (c != ' ') {
word += c;

public void split(String str, String pattern) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct the Indentation

Comment thread Main.java Outdated
System.out.println("10. Reverse ");
System.out.println("11. Exit ");
System.out.println("Enter the operation you want to choose from 1 to 11:");
int choice=sc.nextInt();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

operators should have spaces around them while , and ; should have space to their right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants