Depende man cgro sa school.
All I know is sa UC-COMPE taud2 na ang JAVA class dha.
I don't know why wala pay JAVA class sa inyo school TS.
Depende man cgro sa school.
All I know is sa UC-COMPE taud2 na ang JAVA class dha.
I don't know why wala pay JAVA class sa inyo school TS.
sa prospektos nko 2005 wla man mi subjct java,, C++ man unta to e teach sa amoa pero kbw nman mi mao g try sa among teacher java nlng.. dnt knw sa new prospektos sa SANJO kng naa ba Java.... ang naa java sa sa amu skull ky IT and CS ra.... gamy rman among software xpertise we are more on the hardware part since we are CMPE.... salamt sa n answer...
i dnt thnk wla ang java sa compE ky ang java s originally made para mn sa consumer electronics dba?
mas ni well known lng sya sa web ug applications...
unsa d i skul nyo bro?
USJR ni cla nag skul bai.. ahehehe...
ala man java ang karaan na CmpE... pero ang bag-o naa na..
USJR n brad.... Sakto c Eiso wlay java ang old cmpe.. sa new rna... Kbw lge ka Eiso?? CMPE ka?
Problem #5
Code:import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * * @author javapenguin */ public class CountDigits { public static void main(String[] args) { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); boolean invalid = true; String number = new String(); while (invalid) { invalid = false; System.out.println("Please enter a positive integer number: "); try { number = input.readLine(); } catch (IOException ex) { System.err.println(ex); invalid = true; } int trynum = 0; try { trynum = Integer.parseInt(number); } catch (NumberFormatException nfe) { invalid = true; } if (trynum < 0) invalid = true; number = String.valueOf(trynum); } System.out.println("Number of digits = "+number.length()); } }
Problem #6
Code:import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * * @author javapenguin */ public class Contains { public static void main(String[] args) { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); String s = new String(); String ch = new String(); char c = ' '; System.out.println("Please enter a string: "); try { s = input.readLine(); } catch (IOException ex) { System.err.println(ex); } boolean invalid = true; while (invalid) { invalid = false; System.out.println(" "); System.out.println("Please enter a character: "); try { ch = input.readLine(); } catch (IOException ex) { System.err.println(ex); invalid = true; } if (ch.length() != 1) invalid = true; } c = ch.charAt(0); boolean found = false; for (int i = 0; i < s.length(); i++) { if (s.charAt(i) == c) found = true; } if (found) System.out.println("Character "+ch+" is in string "+s); else System.out.println("Not found in string!"); } }
Problem #9
Code:/** * * @author javapenguin */ public class MostOftenOccurring { public static void main(String[] args) { String s = "tegsjducmfjduyetgdhplokjhytghyrdfcv"; char most = ' '; int count = 0; int mostcount = 0; for (int i = 0;i < s.length();i++) { count = 0; char b = s.charAt(i); for (int j = 0; j < s.length(); j++) { if (b == s.charAt(j)) count++; } if (count > mostcount) { mostcount = count; most = b; } } System.out.println("Most occuring character is "+most); } }
Dili lang nako pakyawon kay matapulan na unya ka, hehehe
Kung ganahan ka tiwason, huwat huwat lang sa mga expert kay sila na mo tiwas
Similar Threads |
|