ElaKiri Community
Downloads
Go Back   ElaKiri Community > General > Education
Reload this Page java
Reply
 
Thread Tools Display Modes
(#1)
Old
nISITHC nISITHC is offline
Senior Member
nISITHC is on a distinguished road
 
Posts: 292
Blog Entries: 1
Join Date: Jun 2009
laugh java - 03-14-2011, 11:01 AM

plzzzzzzzzz help me............

type katrana number 1 ekathuwa ganna one.......
123=6

1+2+3=6

mata meka java walin karala denawda danna kenek innawanam...
loku udauwak....
Reply With Quote
(#2)
Old
ChootyKuku's Avatar
ChootyKuku ChootyKuku is offline
Senior Member
ChootyKuku is on a distinguished road
 
Posts: 198
Join Date: Dec 2010
03-14-2011, 11:10 AM

command line ekenda input ganne???
Reply With Quote
(#3)
Old
US Technos US Technos is offline
Junior Member
US Technos is an unknown quantity at this point
 
Posts: 12
Blog Entries: 1
Join Date: Jul 2010
Location: Anuradhapura
03-14-2011, 11:17 AM

mokada karaganne onne.....pahadili na....cmd akenda input ganne?
Reply With Quote
(#4)
Old
ChootyKuku's Avatar
ChootyKuku ChootyKuku is offline
Senior Member
ChootyKuku is on a distinguished road
 
Posts: 198
Join Date: Dec 2010
03-14-2011, 11:20 AM

onna damma.. rep nam onamai...

class A{

public static void main(String[] args) {

String s = "1236";
int x,tot=0;
for(int i=0;i<s.length();i++){
char c = s.charAt(i);
String s1 = String.valueOf(c);
x = Integer.parseInt(s1);
tot = tot + x;
}
System.out.println(tot);
}

}
Reply With Quote
(#5)
Old
nISITHC nISITHC is offline
Senior Member
nISITHC is on a distinguished road
 
Posts: 292
Blog Entries: 1
Join Date: Jun 2009
Up 03-14-2011, 11:33 AM

Quote:
Originally Posted by ChootyKuku View Post
onna damma.. rep nam onamai...

class A{

public static void main(String[] args) {

String s = "1236";
int x,tot=0;
for(int i=0;i<s.length();i++){
char c = s.charAt(i);
String s1 = String.valueOf(c);
x = Integer.parseInt(s1);
tot = tot + x;
}
System.out.println(tot);
}

}



elakiriiiiiiiiiiiiii
thx brooooooooooooooooo
Reply With Quote
(#6)
Old
ChootyKuku's Avatar
ChootyKuku ChootyKuku is offline
Senior Member
ChootyKuku is on a distinguished road
 
Posts: 198
Join Date: Dec 2010
03-14-2011, 11:44 AM

Quote:
Originally Posted by nISITHC View Post
elakiriiiiiiiiiiiiii
thx brooooooooooooooooo
ela ela
Reply With Quote
(#7)
Old
ChootyKuku's Avatar
ChootyKuku ChootyKuku is offline
Senior Member
ChootyKuku is on a distinguished road
 
Posts: 198
Join Date: Dec 2010
03-14-2011, 11:46 AM

class A{

public static void main(String[] args) {

String s = "1236";
int x,tot=0;
char c;String s1;
for(int i=0;i<s.length();i++){
c = s.charAt(i);
s1 = String.valueOf(c);
x = Integer.parseInt(s1);
tot = tot + x;
}
System.out.println(tot);
}

}

podi edit parak damma...
Reply With Quote
(#8)
Old
nISITHC nISITHC is offline
Senior Member
nISITHC is on a distinguished road
 
Posts: 292
Blog Entries: 1
Join Date: Jun 2009
03-22-2011, 07:22 AM

ela ela..
tnXXXXX
wewa..............
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright © 2006 - 2011 ElaKiri™ Beta2.Evo vBulletin, vBa iBproArcade Subdreamer I-Magic MKv
Optimisation plugin by DBtech

Page generated in 0.08444 seconds with 6 queries