+ 1

jTextField1.setText((subject.length() + 10) + " ");

string subject= "informatics practices";

17th Mar 2018, 7:00 PM
Rohit
11 odpowiedzi
+ 14
welcome 👍
17th Mar 2018, 7:50 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 13
well @Rohit U must have wrote (""+subject.length()+10) //thats why concatination started first //why shock by 2110 ... its ""+21+10 only
17th Mar 2018, 7:48 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 11
@Nomeh , I have worked with netbeans and this jTextField components are basic component just after the jLabels //might available in both ☺
17th Mar 2018, 7:41 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 9
String in place of string //only 1 error found , ... btw this piece of code U must write in some button or events of a component //are U using netbeans java IDE //jTextField as a component for creating forms 👍
17th Mar 2018, 7:38 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 9
31 will be the output [ bcz spaces are counted ] //it will appear in the jTextField1 on clicking of the button or any other event
17th Mar 2018, 7:44 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 2
@Gaurav! ...it's probably Android Studio
17th Mar 2018, 7:40 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 1
yes
17th Mar 2018, 7:41 PM
Rohit
+ 1
can you please give me the output..
17th Mar 2018, 7:42 PM
Rohit
+ 1
ans given is 2110😓
17th Mar 2018, 7:46 PM
Rohit
+ 1
oo thanks brother.
17th Mar 2018, 7:49 PM
Rohit
+ 1
ans 21 10
18th Mar 2018, 3:12 AM
Harsh Agrawal
Harsh Agrawal - avatar