;Modify the program to convert all letters to upper case.\n;convert the upper case letters to lower case\n;convert lower case to upper case and upper case to lower case\n;thanks for anyhelp66 \n\n         loadR1,Text     ;the start of the string\n         loadR2,1        ;increase step\n         loadR0,0        ;string-terminator\nNextChar:loadRF,[R1]     ;get character and print it on screen\n         addiR1,R1,R2    ;increase address\n         jmpEQRF=R0,Ready ;when string-terminator, then ready\n        jmpNextChar    ;next character\nReady:   halt\n\norg0A0h\nText:    db10\n         db"Hello world !!",10\n         db"    from ",10\n         db"  300125 FoCS",10\n         db0           ;string-terminator
119392
uh . . . I don't know.
201156
You may use the charAt method which receives an integer index as a parameter and returns the character in the String that's positioned at that index.\n\nString s = "Hello";\nSystem.out.println(s.charAt(0)); =>This would print the H\n\nThe toCharArray method would convert the String to an array of characters containing the same characters as those in the String.\n\nchar[] C=s.toCharArray(); => C{'H','e','l','l','o'}
595693
//created by vinyl21 for yahoo answers\n//gjfr77@yahoo.com\nimport java.io.*;\nclass matrix{\nint n,m;\nint a[][]=new int[100][100];\nint r[]=new int[10];\nint c[]=new int[10];\nDataInputStream d=new DataInputStream(System.in);\n\nvoid input() throws IOException{\nSystem.out.println("ENTER THE NO OF ROW");\nn=Integer.parseInt(d.readLine());\nSystem.out.println("ENTER THE NO OF COLUMN");\nm=Integer.parseInt(d.readLine());\n\nfor(int i=1;i<=n;i++){\nfor(int j=1;j<=m;j++){\nSystem.out.print("("+i+","+j+"):");\na[i][j]=Integer.parseInt(d.readLine());}}}\n\nvoid process(){\nfor(int i=1;i<=n;i++){\nfor(int j=1;j<=m;j++){\nr[i]+=a[i][j];}}\n\nfor(int j=1;j<=m;j++){\nfor(int i=1;i<=n;i++){\nc[j]+=a[i][j];}}\n}\n\nvoid display(){\nSystem.out.println("given matrix");\n\nfor(int i=1;i<=n;i++){\nfor(int j=1;j<=m;j++){\n\nSystem.out.print(a[i][j]+"&#92;t");\n\n}\nSystem.out.println("&#92;n");}\n\nSystem.out.println("row sum");\n\nfor(int i=1;i<=n;i++){\nfor(int j=1;j<=m;j++){\n\nSystem.out.print(a[i][j]);\nif(j<m)System.out.print("   +   ");\nelse System.out.print("   =   ");}\nSystem.out.println(r[i]);\nSystem.out.println();}\n\nSystem.out.println("column sum");\n\nfor(int i=1;i<=n;i++){\nfor(int j=1;j<=m;j++){\n\nSystem.out.print(a[i][j]+"&#92;t");}\n\nif(i<n){\nSystem.out.print("&#92;n");\nfor(int d=0;d<m;d++){System.out.print("+&#92;t");}\n}\nelse {System.out.print("&#92;n");\nfor(int d=0;d<m;d++){System.out.print("=&#92;t");}}\nif(i==n){System.out.println();\nfor(int k=1;k<=m;k++){\nSystem.out.print(c[k]+"&#92;t");}}\nSystem.out.println();}\n\n}\n\nvoid displaye() throws IOException{\nSystem.out.println("PRESS ANY KEY TO EXIT");\nString n=d.readLine();}\n\n\npublic static void main(String args[])throws IOException{\nmatrix k=new matrix();\nk.input();\nk.process();\nk.display();\nk.displaye();}}\n\n/*output\nI:&#92;>cd j\n\nI:&#92;j>cd bin\n\nI:&#92;j&#92;bin>java matrix\nENTER THE NO OF ROW\n3\nENTER THE NO OF COLUMN\n3\n(1,1):1\n(1,2):2\n(1,3):3\n(2,1):9\n(2,2):8\n(2,3):7\n(3,1):4\n(3,2):5\n(3,3):6\ngiven matrix\n1       2       3\n\n9       8       7\n\n4       5       6\n\nrow sum\n1   +   2   +   3   =   6\n\n9   +   8   +   7   =   24\n\n4   +   5   +   6   =   15\n\ncolumn sum\n1       2       3\n+       +       +\n9       8       7\n+       +       +\n4       5       6\n=       =       =\n14      15      16\nPRESS ANY KEY TO EXIT\n*/
376462
Ok, first break this down into how to find palindromes....\nRead the file-\nexample : http://www.roseindia.net/java/beginners/java-read-file-line-by-line.shtml\n\nAs you are reading the file, use StringTokenizer on each line-\nexample : http://www.devdaily.com/java/edu/pj/pj010006/pj010006.shtml\n\nAs you iterate through the tokens, check is each one is a palindrome.  I would write a function like\n\nvoid checkPalindrome(String str)\n{\nfor(int i = 0; i < str.length / 2; i++)\n{\nif(str.charAt(i) != str.charAt(str.length() - 1 - i))\nreturn false;\n}\nreturn true;\n}\n\nOnce you have the basic scenario working of reading the file and identifying palindromes, then you'll want to modify your checkPalindrome() function to keep track of the stats.  \nThe easiest way I can think off the top of my head would be to make a data object to store the relevant data like:\nclass Palindrome\n{\npublic String name;\npublic int occurences;\npublic ArrayList locations;\n//Add constructor and such...\n}\nThen you could make some kind of PalindromeManager that would have an ArrayList of Palindrome Objects that it could search and add to.\n\nWhen it comes time to do the stats you could just make a few nice little utility functions for searching the ArrayList of Palindrome Objects, which should be fairly trivial once you have your other data structures in place and populated.
306330
import java.util.*;\n\npublic class Test1 {\n\n/**\n * @param args\n */\npublic static void main(String[] args) {\nArrayList al = new ArrayList();\nal.add("All");\nal.add("Go");\nal.add("for");\nal.add("a");\nal.add("cup");\nal.add("of");\nal.add("Coffee");\nString str = "go"; // To be checked\nfor(int i=0;i<al.size();i++) {\nint test = str.compareToIgnoreCase( (String) al.get(i));\nif (test == 0)\n  System.out.println("&#92;""+str+"&#92;" is there in the arraylist at position "+i);\n}\n}\n\n}
237903
Instead of:\n\nif (Month < 01 && > 12);\ncout<< "Please enter a valid Month in 2 digit format&#92;n";\n\nYou should write:\n\nif (Month < 1 || Month > 12) {\n  cout<< "Please enter a valid Month in 2 digit format&#92;n";\n}\n\n1) Don't put a semicolon after the closing ).\n2) Don't prefix numbers with a 0. The compiler treats these as octal numbers.\n3) The expression in your if statement is incorrect. \n3a) You are using && (and) instead of || (or). A number can't be both less than 1 and greater than 12.\n3b) You need to write the variable name once for each expression in your if statement.
254933
I don't have your answer, but try START>ACCESSORIES>SYSTEM TOOLS>CHARACTER MAP. That will give you a bunch more symbols to use. I hope that helps.
602281
Da reeson @ u=u dont tipe rite!\n\nCome on. Type correct, and practice. Dont be lazy on any words. Do NOT replace the word "you" with the letter "u" It's the dumbest thing ive ever seen onlin in all of my life.
511462
If you're using Microsoft Word.... highlight the paragraph, then go to Format> Change case> Uppercase. Voila!!
111069
-------\n           ( START )\n            -------\n               |\n               V\n       ------------------\n      | Num ctr, sum ,no |    \n       ------------------  \n            | \n            V\n       -----------------\n      | ctr = 1, sum=0  | \n       -----------------\n            |<----------------\n            V                 |\n          -----------         |\n        / Accept no /         | \n        ------------          |\n             |                |\n             V                |\n       ----------------       |\n      | sum = sum + no |      |\n       ----------------       |\n             |                |\n             V                |\n       ----------------       |\n      | ctr = ctr + 1 |       |\n       ----------------       ^\n              |               |\n              V               |\n             /&#92;               | \n            /  &#92;              |\n           /ctr &#92;             |\n          / <=80 &#92;    YES     |\n          &#92;      /------------>           \n           &#92;    /\n            &#92;  /\n             &#92;/\n             | NO\n             V                \n          -------------         \n        / Display sum /          \n        --------------          \n             |                \n             V                \n          -------\n         (  END  )\n          -------
250507
regex package of java.\n\nString a = JTextfield1.getText();\nboolean matches = Pattern.matches("[A-Z][a-z] +&#92;&#92;s,a);\n\n[A-Z] one capital letter\n[A-Z]+ one or more capital letter\n[a-z] and [a-z]+ same as capital\n&#92;s one or more white space
285741
Okay once again..\nStringBuffer b = buf.replace(6,10,"orld");\n\nThis replaces offset 6 to 10 with world... So offset 6 in your case is W so it would be:\nHello orld\n\nNow That is correct.. Now b.delete(0, 1)\nThat deletes the 0 offset which is H! only so it would be\nello\n\nNow the total StringBuffer Contents is:\nello orld\n\n\nSee why? Remember buffers is like a memory location that stores a buffer, so treat it as global scope in that case
340524
This method of typing special characters is built in to most new Windows computers:\nPress and hold Alt, then press 0252.  It will make a ü.  For uppercase, press Alt, and then 0220.
603415
start---->programs----->accessories---------->system tools----->character map-------->times new roman....\n\n\nscroll down to the symbol you want, double click, copy, & paste in your answers text
364935
Use the character '&#92;n' while you write things into the file.\n\nThe logic of what you meant there would be:\n1. Open the file.\n2. Read line or use the getline(). It reads lines individually and stores it into a string. IT automatically moves the file pointer to the next position. (You can know that using fseek() function)\n3. Once you got the string, search for the alphabet 'A'\n4. If you have the alphabet then increase you line counter by 1.
122758
#include <iostream.h>\n#include <string.h>\n\nstruct String\n{\npublic:\nchar * Data;\nint Length;\n};\nString operator+(const String & s1,const String & s2)\n{\nchar * s3=new char [s1.Length+s2.Length];\nstrcpy(s3,s1.Data);\nstrcat(s3,s2.Data);\n\nString Out;\nOut.Data=s3;\nOut.Length=s1.Length+s2.Length;\nreturn Out;\n}\n\n//you can't directly overload char * because at least one operand of any overloaded operator must be of some user-defined type.\n\n//u can use strcat
563932
On your computer click on start\n\nGo to All programs\nGo to Accessories\nGo to System Tools\nClick on Character Map\n\nHope this helps