Saved Bookmarks
| 1. |
Write the contents of jTextField1, jTextField2, jTextField3 and jTextField4 when the following statements are executed : String x; String str = "Java"; x = str.concat("study"); double a = 7.8765; jTextField1.setText(x.length()+" "); jTextField2.setText(x.toUpperCase()); jTextField3.setText(x.substring(2,5)); jTextField4.setText(Math.round(7.8765)+" "); |
|
Answer» jTextField1: 9 jTextField2: JAVASTUDY jTextField3: vas : 8 OR 9 JAVASTUDY vas 8 |
|