Page 4 of 9 FirstFirst ... 234567 ... LastLast
Results 31 to 40 of 90
  1. #31

    Quote Originally Posted by DarkCode View Post
    Ahw hehe pero applicable mn japon na nila COMP.E mn sd gud ko nd sa software mn ko na butang heheh dle sa Hardware if sa hardware sd sila ma position possible sd nila magamit if ma FIRMWARE developer sila, atleast lng mdyo familiar na sila ug code2 hehehe ako ra sd ni opinion.....

    CmpE pud diay ka naa mo java sauna??

  2. #32
    CompE pod ko. Wala pod mi Java, wala pod C++ sauna.

    C lang jud intawon ug 8088 compatible nga assembly language.

  3. #33
    #3 prime numbers
    Code:
    private boolean isPrime(int n) {
    	if (n > 1) {
    		for (int x = 1; x < n ; x++) {
    			if (n % x == 0 && x != 1) {
    				return false;
    			}
    		}
    	} else {
    		return false;
    	}
    	return true;
    }
    #4 Exponents
    Code:
    public double pow(double base, int exponent) {
    	double result = 1;
    
    	for (int n = 0; n < exponent; n++) {
    		result = base * result;
    	}
    
    	return result;
    }
    
    /***or recursive****/
    
    public double pow2(double base, int exponent) {
    
    	if(exponent == 1){
    		return base;
           }else{
    		return pow2(base, exponent-1) * base;
    	}
    
    }
    #10 ToUpperCase
    Code:
    public String toUpperCase(String str) {
    	StringBuffer strBuff = new StringBuffer();
    
    	for (int x = 0; x < str.length(); x++) {
    		int cInt = str.charAt(x);
    
    		if (cInt >= 97) {
    			char temp = (char) (cInt - 32);
    			strBuff.append(temp);
    		} else {
    			strBuff.append(str.charAt(x));
    		}
    	}
    
    	return strBuff.toString();
    }

  4. #34
    Quote Originally Posted by Eiso View Post
    its for our class..
    ang problem lang kay CmpE mi...
    nia ala bya java sa CmpE...
    kaluoy tabangi ninyu mga bro. hahaha

  5. #35
    taga usctc bai... ang mga compE naay java if naa kay nailhan nga mga 3rd yr up patabang nila. kad2 lng major sa SE(Software Engineering).

  6. #36
    Waaaa!! mga master Java man di mu..

    Update nko kng unsa wla pa n solve....

    11-14-17-18-19-20-22-23-24.......

    sa mga nka solve salamat jud kaayo..
    c lord nai bhala ninyo... kbw nmu kng kinsa mu...

  7. #37
    Problem #8

    Code:
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    
    /**
     *
     * @author javapenguin
     */
    
    public class CheckDuplicates {
    
        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);
    
            int count = 0;
    
            for (int i = 0; i < s.length(); i++) {
                if (s.charAt(i) == c) count++;
            }
    
            if (count > 1) System.out.println("Duplicate found");
        }
    
    }

  8. #38
    Minor modification of #6 becomes #8

  9. #39
    Quote Originally Posted by bishop__ View Post
    CompE pod ko. Wala pod mi Java, wala pod C++ sauna.

    C lang jud intawon ug 8088 compatible nga assembly language.
    ECE ko, samot na wala hahaha, Pascal pa akong gamit sauna

  10. #40
    Quote Originally Posted by javapenguin View Post
    ECE ko, samot na wala hahaha, Pascal pa akong gamit sauna
    grabeha mo code javapenguin oi! with error trappings naman. hehehehe...

    ako kay basic lang basta mo solve lang sa problem. saon nga self study lang man ko ani sa java then wala pod mi nag gamit java sa work. hehehehe....

  11.    Advertisement

Page 4 of 9 FirstFirst ... 234567 ... 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