Page 2 of 9 FirstFirst 12345 ... LastLast
Results 11 to 20 of 90
  1. #11

    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.

  2. #12
    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...

  3. #13
    Quote Originally Posted by FrozenBoi View Post
    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...
    Sa unsa ni nga school imo pasabot bro?

  4. #14
    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?

  5. #15
    USJR ni cla nag skul bai.. ahehehe...
    ala man java ang karaan na CmpE... pero ang bag-o naa na..

  6. #16
    USJR n brad.... Sakto c Eiso wlay java ang old cmpe.. sa new rna... Kbw lge ka Eiso?? CMPE ka?

  7. #17
    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());
        }
    
    }

  8. #18
    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!");
        }
    
    }

  9. #19
    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);
        }
    
    }

  10. #20
    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

  11.    Advertisement

Page 2 of 9 FirstFirst 12345 ... LastLast

Similar Threads

 
  1. Need Help in java. AGAIN! =)
    By jairoh_ in forum Programming
    Replies: 11
    Last Post: 02-29-2012, 08:13 AM
  2. Help in java. Arrays
    By jairoh_ in forum Programming
    Replies: 25
    Last Post: 02-03-2012, 07:48 PM
  3. Help in java
    By jairoh_ in forum Programming
    Replies: 12
    Last Post: 01-11-2012, 10:22 AM
  4. NEED HELP in JAVA EXCELAPI
    By rastaman81 in forum Programming
    Replies: 1
    Last Post: 05-11-2009, 09:17 PM
  5. need help in java programming: creating a folder
    By rastaman81 in forum Programming
    Replies: 4
    Last Post: 03-11-2009, 08:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top