Source_Code/myinterpreter/BackEnd.java
//This method removes white spaces from the given user input
This method removes white spaces from the given user input
This method removes white spaces from the given user input
public String inputWOSpaces(String givenString)
		{
		String correctString="";
		givenString=givenString.trim();
		for(int i=0;i<givenString.length();i++)
			{
			if(givenString.charAt(i)!=' ')
				{
				correctString=correctString+givenString.charAt(i);
				}
			}
			return correctString;
		}
public String inputWOSpaces ( String givenString ) { String correctString = "" ; givenString = givenString . trim ( ) ; for ( int i = 0 ; i < givenString . length ( ) ; i ++ ) { if ( givenString . charAt ( i ) != ' ' ) { correctString = correctString + givenString . charAt ( i ) ; } } return correctString ; }
This method removes white spaces from the given user input
This method removes white spaces from the given user input