ࡱ> y 71bjbj `{{7) \nTKIt" HHHHHHH$JqMH"HI"""H"H"" CDF`ND&HI0KItDNNLFNF"HHKIN :  Java 211 Strings, Reading Input, Else-If Yosef Mendelsohn I. Strings The String data type is not one of the so-called primitive data types (e.g. int, char, double, etc) that we have been discussing over the last couple of lectures. Rather, they are what we call objects, a fact that will become increasingly relevant as you learn more about Java. For now, we will begin with some String fundamentals and then learn more about them as we learn about objects. The best way to describe a string is to give some examples: String s1 = "hello"; //a string of length=5 String s2 = "hello, Bob.. How are you? "; String s3 = "h"; //a string of length=1 String s4 = "123456"; //a string of digits it is NOT a number) Notice that the data type String begins an upper case S. However: char c1 = 'h'; if (c1 == s3) //error!!! type mismatch int x = s4; //error type mismatch Some commonly used methods that can be invoked by a string object include: equals (returns a bool) length (returns an int) toLowerCase (returns a String) The idea of an object invoking its own method may confuse you. We will return to this topic down the road. For now, we will concern ourselves with simply USING these methods. I will explain the reasoning behind them as we progress. Important point #1: To compare two strings to determine if they are holding identical values, you can NOT use the == operator. The == operator works ONLY for primitive data types (eg to compare two variables of, say, type int or double). Recall that strings are not primitive data types. When comparing to objects, the == operator will give unexpected results. So we need another way to compare two strings. Here is the an example of some code to compare two strings: String s1 = "hello"; String s2 = "goodbye"; To compare these two strings to see if they are identical, we would write: if ( s1.equals(s2) ) { System.out.println("The strings are identical"); } Another example: if ( s1.equals("hello") ) { System.out.println("The string s1 holds the word hello. "); } This equals method is very important. Be sure that you are comfortable with its usage. If you wish to compare two Strings without regard for case, you can use the method equalsIgnoreCase() For example: String word = "hElLo" if ( word.equalsIgnoreCase("hello") ) { System.out.println("The strings are identical."); } Another very useful String method is called length() . Here it is in use: String s1 = "hello"; int length = s1.length(); System.out.println("The length of the string is: " + length ); Another example: if ( s1.length() > 10 ) { System.out.println("The string s1 is longer than 10 characters. "); } Notice the need for a pair of parentheses after the word length(). There are numerous other methods available to String objects that we will discuss in class. I will also show you how to look up others on your own. Concatenation We have seen the + operator used to add two numbers together. However, this operator does something completely different when applied to Strings. It concatenates two or more strings together. That is, it takes two Strings and joins them to make a longer String. In fact, you can join as many strings as you like together using this operator. This is why you can have two strings inside a println statement. By concatenating them together, they will be represented as a single string. The second string is appended on to the end of the first string. Also, strings can be concatenated with numbers If the two operators on both sides of a + are numbes, then addition is performed. Otherwise, concatenation is performed. You can also control behavior by using brackets. Here are a couple of examples of concatenation in action. You will find yourself concatenating strings often, and in many different ways. String s1, s2, s3; s1 = "Hello"; s2 = "How are you?" s3 = s1 + s2; //what is wrong with the resulting output??? //Better: s3 = s1 + ". " + s2; As with numeric variables, a string can be added (i.e. concatenated) to itself: String s = "hello"; s = s+s; //what is the current value of s? Escape Sequences Sometimes we want to output special characters such as quotation marks or \ signs or newlines, etc. in our strings. Because these characters can interfere with our source code, we need a way of indicating to the compiler that these are special characters and must not be treated in their usual way. The technique is to precede these characters by a \ character. A partial list of escape sequences can be found in an appendix or by googling. Examples include: \n newline \t tab \ single quote \" double quote For example: System.out.println("How are you?\nIam fine."); //on two lines System.out.println("How are you?\tIam fine."); //tab in between //putting several together: System.out.println("Bob said \"How y\'all doin\'\""); Since we have established that Strings are objects of a class called String, lets take a quick look at some of the methods of that class by checking out the  HYPERLINK "http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" String API. (Yet again, to be discussed later) II. The Scanner class As mentioned in lecture, one of the great advantages of a powerful and widely used programming language such as Java is the possibility to extend the language to add features. One glaring hole in earlier versions of Java (prior to SDK v.14) was an easy way to read input from the user. Fortunately, this has been remedied by a new library that includes a class called Scanner. Again, because we do not understand classes and objects very well (or at all!) yet, for now you will have to simply get comfortable with the code as I demonstrate it to you. Again, as we progress, some of the things that may seem mysterious now will become clear. Here is an example of some code to take input in from the user via the keyboard: Scanner console = new Scanner(System.in); //this line is required to use the Scanner class //it should be placed near the top of your method int age; double gpa; String firstName; System.out.println("How old are you?"); age = console.nextInt(); System.out.println("What is your GPA?"); gpa = console.nextDouble(); System.out.println("What is your name?"); firstName = console.next(); Notice how the method attached to the word input changes depending on the type of data we want to read. For example, if you are expecting the user to enter a double, you should use nextDouble() . If you are expecting an int: nextInt(). A String: next() not nextString() . What would happen with the following: System.out.println("How many miles did you run?"); miles = console.next(); Answer: The method next() returns a String. If you put a string into a variable of type double you have a type mismatch. One note: The word console is simply an identifier. You could choose any identifier that you like such as: Scanner keyboardInput = new Scanner(System.in); However, the book uses console, so Ill use it here as well. As with Strings, the Scanner class is another class that we will be using throughout the course, so you should become familiar with it now. There is one thing that you need to do to use the Scanner class: you need to import the package that holds it. Well talk more about this later, but for the moment, whenever you want to use the Scanner class, include the following line at the very top of your program (even before the class declaration): import java.util.Scanner; Here is a link to the complete program using the code weve just discussed. III. if-else Last lecture we talked about if statements. If you have a lone if statement, the programs flow begins by evaluating the conditional. If the conditional evaluates to true, flow enters the body of the if block. If the conditional evalutes to false, flow simply skips the if block by jumping ahead to the closing brace } . However, there may be situations where you want to have your program do something even when the conditional is false. The easiest way to demonstrate this is by an (admittedly frivolous) example: System.out.println("What is your GPA?"); gpa = console.nextDouble(); if ( gpa > 3.5 ) { System.out.println("You're a good student!"); } else { System.out.println("Better work harder!"); } In other words, if the conditional turns out to be false, flow will jump directly to the else block and execute it. If the conditional is true, flow will execute the if block, and will then skip the else block by jumping to its closing brace. Else statements are optional. Whether or not you include one really depends on the logic of your program. Most of the time you will have no problem deciding whether or not your code needs to have an else block. If and else-if statements: There will also be situations where you want your code to evaluate several different possibilities. Again, this is best explained by an example. Lets write some code that prompts the user for their percentage score for the course. The code will then determine the appropriate letter grade. int percentGrade; System.out.println("What was your % for the course?"); percentGrade = console.nextInt(); if ( percentGrade >= 90 ) { System.out.println("You receive an A."); } else if ( percentGrade >= 80 ) { System.out.println("You receive a B."); } else if ( percentGrade >= 70 ) { System.out.println("You receive a C. "); } else if ( percentGrade >= 60 ) { System.out.println("You receive a D."); } else //users score is less than 60 { System.out.println("You receive an F."); } The moment flow finds a conditional that is true, it will execute the corresponding block. It will then skip all the way to the end of the if / else-if statements regardless of how many of them are present. A common mistake: Many beginniners tend to write if else instead of else if. The proper syntax is: else if ( conditional ) One other thing: Notice how the last else does not have to be an else if. The reason is that if flow makes it that far in the if / else-if statements, then the user MUST have scored less than 60. It would certainly be possible to write: else if ( percentGrade < 90 ) for the last situation, but it isnt necessary. Either version is fine. What do you think? (An argument could be made that having a final else if is preferable since it makes the code a bit more clear).   !#*+,2<>AIMSadp{óæxtogb]bSbN]N]bIbI hIY] h+?]hIYh>*] h[`h] h]h4@h[`h\ h[`h\h~ h~5\ hJf5\h|ZehL 5B* CJ\phh|ZehFqo5B* CJ\phh#I5B* CJ\phh|Zeha5B* CJ\phha5B* CJ\phhShS5 h|Ze5hU%95B* \ph-jhU%95B* U\mHnHphtHu ,=>I  ' > ? k l   " ^gdU!^gd}gd[`h & Fgd[`h$a$gdS$a$    c m    # $ % & ' = > ? H K L T g h i k l x y z { }  Ⱥynnh;?OJQJ]^J h$"h$"h9KOJQJ]^JhbrOJQJ]^JhU!OJQJ]^JhjEOJQJ]^Jh$"h$"OJQJ]^Jh}h}OJQJ]^J h}] h[`h] hl/]h+?h+?] h+?>*]hl/h[`h>*] h] hIY] h+?]+  " ) , - . / 4 ? Z d g  õð~~s~hs~cYch h[`h6] h[`h]h9{OJQJ]^Jh\`OJQJ]^JhrhrOJQJ]^Jh=qh=qOJQJ]^Jh=qOJQJ]^JhbrOJQJ]^J hr]h0h0OJQJ]^J h0] h}]hU!OJQJ]^Jh;?OJQJ]^Jh}h}OJQJ]^Jh$"h$"OJQJ]^J" 1 Z      YnpgdV>^gd%Ogd$0 & Fgd[`hgd[`h^gdr    [    3 f +uY^kpذذxtxc! *hV>hV>5OJQJ]^JhV>hV>5OJQJ]^Jh%O5OJQJ]^Jh.5OJQJ]^J! *h5h%O5OJQJ]^Jh%Oh%O5OJQJ]^Jh=qh%OOJQJ]^Jh=qh=q5] h%O] hN=] h ] h=q] h[`h]h=qh[`hOJQJ]^J#nop̿}xsis\WJhN[5OJQJ]^J h`,]h`,5OJQJ]^Jh`,h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""""##h#i#q#~#########g$h$$$%%%%%ȽȹȽȚxp`RNh.'h h 5OJQJ^J *h h 5OJQJ^Jh\@h 5h>ch OJQJh hSoh>chOJQJhh}h:zfhD5OJQJ^Jh:zfhDOJQJ^Jh:zfh>chDOJQJhDh>ch] jOJQJh] jh] jh] j5OJQJ^JhD5OJQJ^Jh] j5OJQJ^Jg$h$%%%&&b'c''(((Q(m(n(((((((((())**^gd.' & Fgd.'^gd %&&&((((()))***++,,,---.8/?/T/G0g0006171ļİ{sjhE5h(WCJhh1vhh1v>* *h hrh hrh hrhh1v5OJQJ^J *hh1vhh1v5OJQJ^Jhh1vhh1v5OJQJ^Jhh1vhh1vhm5hh1vhh1v5hb] h.'>* *hmh.'5OJQJ^Jh.'h.'5OJQJ^Jh.'h4@h.'\ h.'\h**+,,I,k,l,,,,,,,--'-)-T-V-w-y--------^gdh1v-..S/T/e/G0g006171^gdh1v ,1h/ =!"#$% n*/ܧ6g04,PNG  IHDRTPLTEf333f3333f3ffffff3f̙3f3f333f333333333f33333333f33f3ff3f3f3f3333f33̙33333f3333333f3333f3ffffff3f33ff3f3f3f3fff3ffffffffffff3ffff̙fff3fffffff3ffffff3f333f3333f3ffffff3f̙̙3̙f̙̙̙̙3f3f̙333f3̙333f3fff̙fff3f̙̙3f̙3f̙3f333f3333f3ffffff3f̙3f3fdtRNS0JbKGDH IDATx]=b:^L_DJ'oNMl{Ft":n<@@Ȧ[~=,ɲ_(~U?b&ztfhf&ffirjif&'bZos_>.Sr>LvJ>53ԸH[{j0xtcf=hF&S45H54T3MNTWT3A3R45T3R4 H5ϣ&N5@bvS+t4b#O?Gҩbe'9pԿ /e|~#)߇{}`_3_M>tܪ#)>H5Kc!rC>N5#!y[W@)U\`AۭUt؊TsӞ?qo>)gg?=o`,E\^Z w A-m`0;; ovΟBb*t;*_}qR7>51oq.;?*W1 ۼu^VK;}'v]wlS.lk:,vEՁթl'WUxk+We+j!5c^W6n0MRXVW ~KR :b"Ÿˎ}s)F$4]V_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po tLQm7_yE xT}9*6äѢ0̉"톝y2Gkx{0T\( ">˷S}z*+gF`o?? -ƱڜOigx͡*sz7Ŗ(ը/>ڪw=cƗ:i-+\ޮo׷ҧy-X7ꥷ}Fd4*:g}b<7S>roфHnJn՗GS{ѧ~z ~O N57SSsw/%sqb_]{@Weh}w۩"5j/ &1oӨ^X[=,Ңpj qY+K{Ypf?Fe!|:@'T}4BdRLf;Lgfϣg&CEfTc4STG7f߃f*gN’Ƣs ZXo?WѷnYAQ֫?/Ev-oq37 oS4ӄ43L0э{т6'gSIENDB`DyK yK xhttp://java.sun.com/j2se/1.3/docs/api/java/lang/String.html^ 666666666vvvvvvvvv666666>666666666666666666666666666666666666666666666666hH6666666666666666666666666666666666666666666666666666666666666666662 0@P`p2( 0@P`p 0@P`p 0@P`p 0@P`p 0@P`p 0@P`p8XV~_HmH nH sH tH @`@ NormalCJ_HaJmH sH tH \@\  Heading 1$ & F<@&5CJKHOJQJaJV@V  Heading 2$ & F<@&56OJQJaJP@P  Heading 3$ & F<@& OJQJaJT@T  Heading 4$ & F<@&5OJQJaJH@H  Heading 5 & F<@&CJaJL@L  Heading 6 & F<@& 6CJaJP@P  Heading 7 & F<@&CJOJQJaJT@T  Heading 8 & F<@&6CJOJQJaJV @V  Heading 9 & F<@&56CJOJQJaJDA D Default Paragraph FontViV  Table Normal :V 44 la (k (No List <@< Header  !CJaJLC@L Body Text Indent ^CJaJ2B@2 Body TextCJ6U`!6 Hyperlink >*B*phFV`1F FollowedHyperlink >*B* phPK![Content_Types].xmlN0EH-J@%ǎǢ|ș$زULTB l,3;rØJB+$G]7O٭V$ !)O^rC$y@/yH*񄴽)޵߻UDb`}"qۋJחX^)I`nEp)liV[]1M<OP6r=zgbIguSebORD۫qu gZo~ٺlAplxpT0+[}`jzAV2Fi@qv֬5\|ʜ̭NleXdsjcs7f W+Ն7`g ȘJj|h(KD- dXiJ؇(x$( :;˹! I_TS 1?E??ZBΪmU/?~xY'y5g&΋/ɋ>GMGeD3Vq%'#q$8K)fw9:ĵ x}rxwr:\TZaG*y8IjbRc|XŻǿI u3KGnD1NIBs RuK>V.EL+M2#'fi ~V vl{u8zH *:(W☕ ~JTe\O*tHGHY}KNP*ݾ˦TѼ9/#A7qZ$*c?qUnwN%Oi4 =3N)cbJ uV4(Tn 7_?m-ٛ{UBwznʜ"Z xJZp; {/<P;,)''KQk5qpN8KGbe Sd̛\17 pa>SR! 3K4'+rzQ TTIIvt]Kc⫲K#v5+|D~O@%\w_nN[L9KqgVhn R!y+Un;*&/HrT >>\ t=.Tġ S; Z~!P9giCڧ!# B,;X=ۻ,I2UWV9$lk=Aj;{AP79|s*Y;̠[MCۿhf]o{oY=1kyVV5E8Vk+֜\80X4D)!!?*|fv u"xA@T_q64)kڬuV7 t '%;i9s9x,ڎ-45xd8?ǘd/Y|t &LILJ`& -Gt/PK! ѐ'theme/theme/_rels/themeManager.xml.relsM 0wooӺ&݈Э5 6?$Q ,.aic21h:qm@RN;d`o7gK(M&$R(.1r'JЊT8V"AȻHu}|$b{P8g/]QAsم(#L[PK-![Content_Types].xmlPK-!֧6 0_rels/.relsPK-!kytheme/theme/themeManager.xmlPK-!0C)theme/theme/theme1.xmlPK-! ѐ' theme/theme/_rels/themeManager.xml.relsPK] 7)\ .<f`"%71!#%')+"  ag$*-71 "$&(*,-@K7)Xl,b$ܧ6g04,2/.\@*(    S LA.?DePaulCTI-small-banner#" ?B S  ?7)9 &4 _Hlt5183616149)@9) #*p{ c#$&'>?KLgiklxyz{,-./CC[3f+uYYSShho\  - b d * I  L XYsg%%%%%6)9) #*p{ c#$&'>?KLgiklxyz{,-./CC[3f+uYYSShho\  - b d * I  L XYsg%%%%%6)9) #*p{ c#$&'>?KLgiklxyz{,-./CC[3f+uYYSShho\  - b d * I  L XYsg%%%%%6)9)EZ Rld!:"!VVBd>& B3tL4Zq(:JEg*GPbC=GY PGt' vwGQZ7Il83*LՔ.\je7tl8GK]xΞe)h~ ^`OJPJQJ^Jo(- ^`OJQJo(o p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p`OJQJo(h @ @ ^@ `OJQJo(h ^`OJQJo(oh ^`OJQJo(h ^`OJQJo(h ^`OJQJo(oh PP^P`OJQJo( 88^8`OJQJo( hh^h`OJQJo(C=GGK]x vwG)h~g*GEZ 7tJEd>& PG7I3tL40"!3*L.\                                             I                                            .bJ `,h L ]gbR"UmxSbrqeU!$"2(b}* +8p+p,D..$01n2!4=4U608Sm8 9;"9U%9K:N=>>V>y>4@\@ ;CjENF8GdBG$JH#IU5K9KSM9NN-QhS(WPXN["\>\F]b].(_U[d|ZeJf\f:zf[`h] j jm*_mkNn=2oSoFqo{pq=q=r hr.hr^wrtQ?uxuh1v!yWay z{9{<{g~PoQY:{m35Gx] >cl/sFq@~q+ye}Bd/rdgB8j0+?vBIYXE5D6|W#dm/.'T!h'}_3&J%\`u<; ;?B|%OoSjMzb{a@u`7)9)@7)@UnknownG*Ax Times New Roman5Symbol3. *Cx Arial?= *Cx Courier New;WingdingsA$BCambria Math"1h f#&&#J&#J24")") 3QKP?`2!xx Java 211  Lecture 3Yosef MendelsohnMendelsohn, YosefL           Oh+'0   @ L Xdlt|Java 211 Lecture 3Yosef Mendelsohn Normal.dotmMendelsohn, Yosef6Microsoft Office Word@Ik@jOD~@z&#՜.+,D՜.+,P  hp  DePaul UniversityJ") Java 211 Lecture 3 Title 8@ _PID_HLINKSA9r<http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEGHIJKLMOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuwxyz{|}Root Entry FData F1TableNQNWordDocument`SummaryInformation(vDocumentSummaryInformation8~CompObjr  F Microsoft Word 97-2003 Document MSWordDocWord.Document.89q