I have the folowing code, but there is a compiling error of: MathProblemRevised.java:25: error: cannot find symbol if (inputCharacter.equals("Y")) { ^ symbol: variable inputCharacter location: class MathProblemRevised 1 error With the code: import static java.lang.System.*; import java.util.Scanner; class MathProblemRevised { public static void main(String args[]) { Scanner keybardInput = new Scanner(System.in); Scanner keybardInput2 = new Scanner(System.in); System.out.println(" What is 5 + 12?"); System.out.print(" "); double inputNumber = keybardInput.nextDouble(); System.out.println(); if (inputNumber == 17){ System.out.println(" You are correct!"); } if (inputNumber != 17){ System.out.println(" You are incorrect!"); System.out.println(" Do you want to give it another try? Y/N"); //String inputCharacter; System.out.print(" "); …

Member Avatar
Member Avatar
+0 forum 11

Hi, I have a XML file: <?xml version="1.0" encoding="ISO-8859-1"?> <Report> <config repstarttime="" rependtime=""></config> <cashdrops></cashdrops> <cashsheets></cashsheets> <cspdata></cspdata> <fdremdata> <fdrementry ENTRYID=""></fdrementry> </fdremdata> <SHIFTDATA> <SHIFT_CD_Index ShiftSystemIndex="1" Shift_CD_Used="1" ></SHIFT_CD_Index> <SHIFT_CD_Index ShiftSystemIndex="2" Shift_CD_Used="1" ></SHIFT_CD_Index> <SHIFT_CD_Index ShiftSystemIndex="3" Shift_CD_Used="1" ></SHIFT_CD_Index> <SHIFT_CD_Index ShiftSystemIndex="4" Shift_CD_Used="1" ></SHIFT_CD_Index> </SHIFTDATA> <Order> <OrderHead filelocation="" filesuccess="TRUE" Attendant=""></OrderHead> <NFC1DATA nfc1count="0"></NFC1DATA> <PAYMENTDATA paymentcount="1"> <payentrydata id="1"></payentrydata> </PAYMENTDATA> <CASHBACKDATA cashbackcount="0"></CASHBACKDATA> <Product> <productdata ProdCompActive="FALSE" ProdDesc="Product1" ProdIDNum="00001" ProdQty="1"> <productsession> <productsessiondata>[CONTENT1] *1;</productsessiondata> <productsessiondata>[CONTENT2] *1;</productsessiondata> <productsessiondata>[CONTENT3] *1;</productsessiondata> <productsessiondata>[CONTENT4] *1;</productsessiondata> <productsessiondata>[CONTENT5] *4;</productsessiondata> <productsessiondata>[CONTENT6] *4;</productsessiondata> </productsession> </productdata> </Product> <histdata id="1" SYS_ID="1" DTE="20120401"></histdata> <histdata id="2" SYS_ID="1" DTE="20120401"></histdata> <histdata id="3" SYS_ID="0" DTE="20120401"></histdata> <histdata id="4" SYS_ID="1" DTE="20120401"></histdata> <histdata id="5" SYS_ID="0" DTE="20120401"></histdata> <FooterDATA footercount="0"></FooterDATA> </Order> </Report> and I …

Member Avatar
Member Avatar
+0 forum 7

guy plz help me out with this. If i have a table, in the table is a column called veh_status, the row data will be varchar storing one or many comma seperated numbers so veh_status could be 1,2,3 each number represents an id to the relevant vehicle statuts name and description etc. My question is: How do i do a mysql query to select a row where veh_status contains 1 or many numbers. for example, i want to select all cars with veh_status 1 and 2 and 3 or only veh_status that is equal to 3. I have no code …

Member Avatar
Member Avatar
+0 forum 5

hi! im currently doing my undergraduate thesis.. im a COmputer science student and looking for some ideas on checking word in a phrase or sentence and look for its meaning of each word in a database and display it.. can you help me by giving some idea or syntax(code) in any language that will help building my thesis.. some said that i should use parsing.. giving your idea would help me a lot.. THANks

Member Avatar
+0 forum 0

How to Retrive/select or Get underlined/Formated Text on Click event from rich text box in vb.net... it should be just like Hyperlink but programmed with click event on it, not for Web page but for local cause. i have the coding but its only for single word, i need for multiple Formated/underlined words or Phrase Please, ' Getting the word under the mouse clicked loaction 'If e.Button = MouseButtons.Left Then ' Dim CharIndex As Int32 ' Dim StartPos As Int32 ' Dim EndPos As Int32 ' 'location of mouse clicked ' CharIndex = txtInfo.GetCharIndexFromPosition(New Point(e.X, e.Y)) ' 'Locating the end …

Member Avatar
+0 forum 0

Hi Expert, I'm currently using the javascript as follow to display a greeting message based on visitor's location, as follow: [CODE] <script language="Javascript" src="http://www.ip2phrase.com/ip2phrase.asp?template=<CITY>, <COUNTRY><FLAG> - Welcome to my site!"></script> [/CODE] from [URL="http://www.ip2phrase.com"]http://www.ip2phrase.com[/URL] It works, but now i would like to have the auto translation for the phrase "Welcome to my site!" based on country. For example, US: Welcome to my site! China: 欢迎光临我的网站! Any javascript out-there i can use?

Member Avatar
+0 forum 0

I have a large text string which is queried from a database. It can be several thousand words long. As of right now, when the search is run, it pulls all of the text and then prints the first 150 characters: [code] echo '<span class="line3">'. strip_tags(truncateText($sermontext, 150)) .'</span>'; [/code] The truncateText() function is as follows: [code] // return with no change if string is shorter than $limit if(strlen($string) <= $limit) return $string; // is $break present between $limit and the end of the string? if(false !== ($breakpoint = strpos($string, $break, $limit))) { if($breakpoint < strlen($string) - 1) { $string = …

Member Avatar
Member Avatar
+0 forum 2

The End.