Can any Java expert help me? Urgent.

I create a table---CourseDB in adatabase to store the Student ID ( student identification number) and the grades of the courses that they took.
The structure of the table---CourseDB is:
StudentID
GradeofCourse1
GradeofCourse2
GradeofCourse3
GradeofCourseN
Here GradeofCourse1 means the grade of course 1, that the student obtained. GradeofCourse2, GradeofCourse3, GradeofCourseN have the same meaning.
I want to use the following query to count the students
who get g1 in course 1, and g2 in course 2, ......and gn in
course n.
Select COUNT(*)
From CourseDB
Where GradeofCourse1=g1 AND GradeofCourse2= g2
......AND GradeofCourseN=gn
Here g1, g2,......,gn are grade, the values are: A,B,C,D.
I want to consider all the possible combination of g1,g2,...,gn.
The students take all the n courses:Course 1, Course 2,...., Course n, and may get A,B,C, or D in the n courses.
For example:
g1=A,g2=B,g3=C,.....,gn=D
( This means that the student gets A in Course 1, gets B in Course 2, gets C in Course 3,....., gets D in Course n. Many students may have the same situation. I want to know how many are the students?)
Or:
g1=B,g2=C,g3=D,......,gn=A
To make the problem clear, I give a detail example:
For example, there are two courses: course 1, course 2.
I want to know how many stuent get "A" in course 1 and
get "B" in course 2 at the same time.
And I want to know all the grade combination of the two courses:
course 1 course 2
A A
A B
A C
A D
B A
B B
B C
B D
C A
C B
C C
C D
D A
D B
D C
D D
So that's 16 total combinations(4^2).
My question is in the code how I can assign the values(A,B,C,D)
to g1,g2,g3,.....,gn conveniently.
The following "nested for loop" can solve the problem ( for example, there are 6 courses):
for (char class1 = 'A'; class1 <= 'D'; class1++)
for (char class2 = 'A'; class1 <= 'D'; class2++)
for (char class3 = 'A'; class1 <= 'D'; class3++)
for (char class4 = 'A'; class1 <= 'D'; class4++)
for (char class5 = 'A'; class1 <= 'D'; class5++)
for (char class6 = 'A'; class1 <= 'D'; class6++)
select count(*)
from CourseDB
where GradeofCourse1=class1 AND GradeofCourse2 = class2 AND GradeofCourse3 = class3
....AND GradeofCourse6=class6
But the problem is that in the "Where GradeofCourse1=class1 AND
GradeofCourse2= class2 ......AND GradeofCourse6=class6" of the
Query, the number of courses is not fixed, maybe six, maybe three,
maybe four, so the depth of "nested for loop" can not be fixed.
Can any Java expert give me some suggestions?
Thanks in advance.
Jack

Jack,
When you posted this on the other forum, it was quite a different question, but it has mutated to this point now. I believe what you want to do can be done with what MS Access calls a crosstab query and you can completely leave Java and any other programming language out of it. If you need to know how to do a crosstab query please take it to another forum.

Similar Messages

  • How to install windows 7 on my macbook pro mid 2009 using usb. right now aim using mavericks 10.9 can any one please help me. I tried to edit plist in boot camp but it went wrong please help me

    how to install windows 7 on my macbook pro mid 2009 using usb. right now iam using mavericks 10.9 can any one please help me. I tried to edit plist in boot camp but it went wrong please help me.
    Iam new to coding. please help me.

    try the solution posted by kunu here and report back
    https://discussions.apple.com/thread/5105056?tstart=0

  • I am not able to access my photos through the photo application... when I click on the photo app, I can see the camera roll but a transparent album screen is over it and I cannot click on the photos to see it... can any one please help ???

    I am not able to access my photos through the photo application... when I click on the photo app, I can see the camera roll, but a transparent "album" screen is over it and I cannot click on the photos to see it... can any one please help ???

    Known bug.  Quit the Camera App, double-tap the home key and delete Camera from the recent apps bar. Fire it up again, should be good.

  • I did hold the ALT cmand r key but i cant see the globe i dont know how i can fix my macbook pro late 2008 can any 1 plzzzz help me im very upsate but i live PAKISTAN in here i cant find os x lion disk i dont know what to do if i get the os x lion usb

    i did hold the ALT cmand r key but i cant see the globe i dont know how i can fix my macbook pro late 2008 can any 1 plzzzz help me im very upsate but i live PAKISTAN in here i cant find os x lion disk i dont know what to do if i get the os x lion usb

    That does not work on model year older then 2010 and really doesn't work on any older then late 2011 models.
    You will need a set of original system dvd disc thjat are always sypplied with every mac sold before Lion came out. Systems older then late release early 2011 models.
    If you don't have them you kcan order a replacement set from apple by calling them. Have the serial number of you mac handy.

  • I bought CS6 creative suite. As of now i need to work each application in separate separate system. Can any one please help me how to solve this problem.

    I bought CS6 creative suite. As of now i need to work each application in separate separate system. Can any one please help me how to solve this problem.
    I saw the below quote on Adobe forum
    "You may install software on up to two computers. These two computers can be Windows, Mac OS, or one each."
    If i install each application in single single system the system count is more than two. In this case, are we have any license issue? Please advice how the problem will solve?
    If possible please send the advise to my mail id: <Removed by Moderator>
    Thanks
    Uvaraj S

    I already answered that.  If you purchased a Suite then you can only install and activate it on two machines.  Even if you only insdtall one of the applications of that suite, it counts as one activation of the suite.  You cannot take the six or seven different applications that might be in a suite and install and activate them in six or seven different machines... only two machines.
    If your scenario will allow for it, one thing you can do is install the programs on all the different machines and only activate two of the machines at any given time.  If you need to activate a program on a third machine then you need to deactivate on one of the currently activate machines first so that you have an open activation to use again.  I do not remember if there is a limit to the total number of activations you can process for the life of the software.

  • Hi im using 4s and when i try to download apps its asking my credit card details. can any one please help me

    hi im using 4s and when i try to download apps its asking my credit card details. can any one please help me

    even when you are dowloading free app Apple needs to check that you have valid billing details but you will not be billed for downloading of free apps.  Go to settings/itunes & app store tap on ID there log in and check acocunt details there

  • Hi when i convert a pdf to word I get a inccorect conversion, can any one please help me

    hi when I convert a pdf to word document I get a inccorect conversion, can any one please help me

    Hey nikolays87340013,
    Thanks for your reply.
    Please let me know what version of Adobe Reader you are using.
    You might need to check for updates as well as repair installation from Reader Help menu.
    While converting scanned PDF into Word, OCR runs automatically and its quality largely depends upon the quality of scanned images and clarity of characters in the PDF.
    Please try the same conversion online after signing in at "https://cloud.acrobat.com/exportpdf" and check if the conversion quality varies.
    Let me know.
    Regards,
    Anubha

  • Any java experts pls help me in converting attribute to XML formats

    Pls help me oh my god i am a newbie here and i am given this project.
    I had just written a XML doc. which looks like this
    <ConsumerTransfer>
    <TransactionId>
    123:123
    </TransactionId>
    <Billingoption>
    cash
    </Billingoption>
    </ConsumerTransfer>
    I need to make this to attributes like
    private String TransactionId()
    private String BillingOption()
    and so on.....
    I need to convert this attributes to XML format
    can any show me an example or the source codes for this
    Really, I appreciate it.
    JimmyKnot

    For such node level operations I think that DOM would be a good idea. So here you go. Look for some nice tutorial for DOM and you got it.
    salut

  • Java Progrramming HELP, Needed Urgently, T hanks

    hey guys,
    I have this lab I need to be done tomorrow, its been weeks lol of thinking and figuring things out can someone make it work ? Pleaseeeee !
    I feel like going out and yelling for help lol I have been trying to figure this out for weeks now.
    I am pasting my Lab and My Codes I did so far, And Please I really need this done today at any rate, all help would be kindly appreciated.
    A Java program is required that will produce a number of reports based on the data from the Product file. This file contains the product name, cost, quantity and UPC. The file name must be input. Valid data from the file will be loaded into an array.
    A menu will provide the following options: (Note there are changes from previous assignment.)
    1     Display of all valid product information including extended price and GST including totals sorted by name.
    2     Display of all invalid records sorted by name.
    3     Search and display a certain product by name.
    4     Sort by UPC and use a binary search and display a certain product by UPC. (valid records)
    9 Exit.
    Processing requirements:
    Input the data from a file and load the records into an object array. Use this object array to produce the above reports.
    Code a class definition exactly as given in the following UML.
    (For specific students: you may code the UPC as an integer but if not numeric throw an exception that is handled in main. Document your choice in your submission).
    Product
    ? Name : String
    ? UPC : String
    ? Cost : Real
    ? Quantity : Integer
    + Product (Name : String, UPC : String, Cost : Real, Quantity : Integer)
    + Calculate Extended Cost() : Real
    + Calculate GST(): Real
    Input Record:
    Product name: String
    UPC: String
    Cost: real
    Quantity: integer
    Output Reports
    1. Display of all product information including extended cost and GST including totals of these 3 fields.
    Following is a sample of the output required:
    ************************ Product Cost REPORT ****************************
    Product                    Cost Quantity Extended Cost     GST     Total Cost
    Diamond Necklace 12345678901x 54,321.99 188 10,212,534.12 510,626.71 10,723,160.83
    Tissues 98989898989x 1.99 2 3.98      0.20     4.18
    TOTALS                         10,212,538.10 510,626.91 10,723,165.01
    2. Display of all invalid records and the count.
    Following is a sample of the output required:
    Invalid UPC Records = 1
    Count Record
    1          Tiara Diamond, 12345678901x, 36020.00, 2
    3. Search and display a certain product by name. Display appropriate message if not found.
    Following is a sample of the output required:
    Enter product name: CrownJewels
    CrownJewels 99999999991x     100,000.00 1 100,000.00 5,000.00 $105,000.00
    6. Display the product information sorted by name
    Following is a sample of the output required:
    ************************ Product Cost REPORT ****************************
    Product                    Cost Quantity Extended Cost     GST     Total Cost
    CrownJewels 99999999991x 100,000.00 1 100,000.00 5,000.00 $105,000.00
    Diamond Necklace 12345678901x 54,321.99 188 10,212,534.12 510,626.71 $10,723,160.83
    Pearls      88888888881x 10,000.00 1 10,000.00 500.00 $10,500.00
    RubyRing      77777777771x 10,000.00 1 10,000.00 500.00 $10,500.00
    Tissues      98989898989x 1.99 2 3.98 0.20     $4.18
    TOTALS          (complete these values)           xxx           xxx      xxx
    Java coding requirements for this assignment
    Main methods required
    1.     Load array with all records. Display exception messages only for records that have invalid data in any of the fields. Return array of valid records and logical size.
    2.     Validate the UPC. Display each report when requested from the menu.
    3.     Justify the data in the columns. Right justify numeric fields; left justify the alpha fields.
    4.     A method for each report required in the menu.
    Class methods
    5.     Use the object method for the extended cost.
    6.     Use the object method for the GST.
    You may use additional methods in the main program but do not add any methods in the class definition.
    Use DecimalFormat for rounding.
    Create an array to hold the objects. Assume that we only need to process a file of a maximum of 500 records but the file may be larger than 500 records.
    A Universal Product Code consists of 12 digits. The first digit (from the left) is the UPC type. The next five digits are the Manufacturer code. The next five digits are the product code which is assigned by the manufacturer. The final digit is the check digit. A person can determine the check digit of a Universal Product Code by doing the following:
    Step 1: Sum all of the digits in the odd positions together.
    0+4+0+1+5+9 = 19
    Step 2: Multiply the sum from Step 1 by 3.
    3 * 19 = 57
    Step 3: Sum all of the digits in the even positions together.
    6+2+0+1+8 = 17
    Step 4: Sum together the results from Step 2 and Step 3.
    17 + 57 = 74
    Step 5: Subtract the sum from the next highest multiple of 10.
    80 - 74 = 6 [check digit]
    TEST DATA:
    Step 1: Create 5 or MORE additional records that will test all conditions. Include these in your documentation. Identify what field is tested in your test data. (Example: error in each field of the record, rounding up, rounding down, valid UPC, invalid UPC, formatting of report, file too large
    Step 2: Use the file attached.
    GODDDDDDDDDDDDDD lol pasting it made me go crazy,
    these are my codes so far, HOwever the problem is ONLY DISPLAY MENU SHOWS, nothing else even though i have enough codes that it can show something,
    My codes are as follows:
    I am working on Eclipse.
    import java.util.Arrays;
    import java.util.Scanner;
    import java.io.*;
    import java.util.*;
    import java.io.IOException;
    * Name : Sana Ghani
    * Date : July 10
    public class lab56
         public static Scanner file;
         public static Scanner parse;
         public static Scanner input = new Scanner(System.in);
         public static Scanner searchInput = new Scanner(System.in);
         public static void main(String[] args) throws Exception
              Product1[] validProduct = new Product1[500];
              int logicalSize = 0;
              int menuChoice=0;
              String FileName = getFileName();
              displayMenu();
              switch(menuChoice)
              case 1:
                   displayAllValidRecords(validProduct, logicalSize);
                   try
                   // Open an output stream
                   OutputStream fout = new FileOutputStream ("myfile.txt");
                   // Print a line of text
                   new PrintStream(fout).println ("hello world!");
                   // Close our output stream
                   fout.close();          
                   // Catches any error conditions
                   catch (IOException e)
                        System.err.println ("Unable to write to file");
                        System.exit(-1);
                   break;
              case 2:
                   break;
              case 3:
                   binarySearchByName( validProduct,logicalSize);
                   break;
              case 4:
                   break;
              case 5:
                   break;
              menuChoice = displayMenu();
         public static void display(Product1[]validProduct, int logicalSize)throws Exception
              String Product, UPC;
              double Cost;
              int Quantity;
              for(int index =0; index<logicalSize; index++)
                   Product = validProduct[index].GetName();
                   UPC = validProduct[index].GetUPC();
                   Cost=validProduct[index].GetCost();
                   Quantity=validProduct[index].GetQuantity();
                   System.out.println(Product+"\t\t"+UPC+"\t\t"+Cost+"\t\t"+Quantity);
         public static String getFileName()
              String fileName;
              Scanner input = new Scanner(System.in);
              System.out.print("Please enter a file name: ");
              fileName = input.next();
              return fileName;
         public static int displayMenu()
              int menuChoice;
              boolean validFlag = false;
              do
                   System.out.println("\n\n*************************************");
                   System.out.println(" Product Display Menu ");
                   System.out.println("*************************************");
                   System.out.println("(1)Display All Records");
                   System.out.println("(2)Display All Invalid Records");
                   System.out.println("(3)Search by Product Name");
                   System.out.println("(4)Sort by Product Name");
                   System.out.println("(5)Exit");
                   System.out.println("*************************************");
                   System.out.print("Enter your choice(1-5): ");
                   menuChoice = input.nextInt();
                   if ((menuChoice >= 1) && (menuChoice <= 5))
                        validFlag = true;
                   if (!validFlag)
                        System.out.println("You have chosen " + menuChoice + ", " + menuChoice +
                        " is not valid. Please try again");
              }while(!validFlag);
              return menuChoice;
         public static String loadArray(Product1 [] ValidProduct, String fileName)throws Exception
              int logicalSize=0;//will always have to declare
              String record;//will always have to declare
              String Product, UPC;//variable names from
              double Quantity;
              double Cost;
              Scanner file = new Scanner(new File(fileName));//open
              record = file.nextLine();//read a line
              record = file.nextLine();//read a line
              for(int index = 0; index < ValidProduct.length && file.hasNext(); index++)//check to see if the file has data
                   record = file.nextLine();
                   parse = new Scanner(record).useDelimiter(",");
                   String Name = parse.next();
                   UPC = parse.next();
                   Cost = parse.nextDouble();
                   Quantity=parse.nextDouble();
                   ValidProduct[index] = new Product1 ( Name, UPC, Cost, (int) Quantity);
    //               create the object-- call the constructor and pass info
                   logicalSize++;
              return logicalSize+".txt";
         public static double roundDouble(double value, int position)
              java.math.BigDecimal bd = new java.math.BigDecimal(value);
              bd = bd.setScale(position,java.math.BigDecimal.ROUND_UP);
              return bd.doubleValue();
         * This method will print report about valid records
         public static void displayAllRecords( Product1[]valid, int ValidProduct,
                   Product1[] invalid, int InvalidProduct)
    //          Print valid records
              displayAllValidRecords(valid, ValidProduct);
    //          Print invalid UPC records
              displayAllValidRecords(invalid, InvalidProduct);
         public static void displayOneRecord(Product1[]valid, int index)
              double extendedCost, GST, SumofGST = 0, // Total Extended Cost
              totalCost, SumOfTotalCost = 0; // Total Extended Cost + GST
    //          Print title
              System.out.println(leftJustify("Product", 50) +
                        leftJustify("UPC", 15) +
                        rightJustify("Cost", 10) +
                        rightJustify("Quantity", 5) +
                        rightJustify("Extended Cost", 15) +
                        rightJustify("GST", 5) +
                        rightJustify("Total Cost", 13));
              extendedCost = valid[index].CalculateExtendedCost();
              extendedCost = roundDouble(extendedCost, 2);
              GST = valid[index].CalculateGST();
              GST = roundDouble(GST, 2);
              totalCost = extendedCost + GST;
              totalCost = roundDouble(totalCost, 2);
    //          justify method ensures all values are of the same size
              System.out.println(//leftJustify(i+"",3) + ": " +
                        leftJustify(valid[index].GetName(), 50) +
                        leftJustify(valid[index].GetUPC(), 15) +
                        rightJustify(valid[index].GetCost()+"", 10) +
                        rightJustify(valid[index].GetQuantity()+"", 5) +
                        rightJustify(extendedCost+"", 10) +
                        rightJustify(GST+"", 10) +
                        rightJustify(totalCost+"", 10));
         * This method will print report about valid records
         public static void displayAllValidRecords( Product1[]valid, int validCounter)
              double extendedCost, sumOfExtendedCost = 0, // Total Extended Cost
              GST, sumOfGST = 0, // Total GST
              totalCost, sumOfTotalCost = 0; // Total Extended Cost + GST
              System.out.println("************************ XYZ Product " +
                        "Cost REPORT ****************************" +
    //          Print title
              System.out.println(leftJustify("Product", 50) +
                        leftJustify("UPC", 15) +
                        rightJustify("Cost", 10) +
                        rightJustify("Qty", 5) +
                        rightJustify("Extended Cost", 15) +
                        rightJustify("GST", 5) +
                        rightJustify("Total Cost", 13));
    //          Print Records
              for(int i=0; i<validCounter; i++)
                   extendedCost = valid.CalculateExtendedCost();
                   extendedCost = roundDouble(extendedCost, 2);
                   GST = valid[i].CalculateGST();
                   GST = roundDouble(GST, 2);
                   totalCost = extendedCost + GST;
                   totalCost = roundDouble(totalCost, 2);
    //               justify method ensures all values are of the same size
                   System.out.println(//leftJustify(i+"",3) + ": " +
                             leftJustify(valid[i].GetName(), 50) +
                             leftJustify(valid[i].GetUPC(), 15) +
                             rightJustify(valid[i].getClass()+"", 10) +
                             rightJustify(valid[i].GetQuantity()+"", 5) +
                             rightJustify(extendedCost+"", 10) +
                             rightJustify(GST+"", 10) +
                             rightJustify(totalCost+"", 10));
                   sumOfExtendedCost += extendedCost;
                   sumOfGST += GST;
                   sumOfTotalCost += totalCost;
         private static void sortByName(Product1 [] ValidProduct, int logicalSize) throws Exception
              Product1 temp;
              for (int outer = logicalSize-1; outer > 1; outer --)
                   for (int inner = 0; inner < outer; inner ++)
                        if (ValidProduct[inner].GetName().compareToIgnoreCase(ValidProduct[inner+1].GetName())>0)
                             temp = ValidProduct[inner];
                             ValidProduct[inner] = ValidProduct[inner + 1];
                             ValidProduct [+ 1] = temp;
         public static void binarySearchByName(Product1 [] ValidProduct, int logicalSize)
              int high = logicalSize - 1;
              int low = 0;
              int mid = 0;
              int count = 0;
              int compare = 0;
              boolean found = false;
              System.out.print("Enter a product name");
              String product = input.nextLine();
              while (high >= low && !found)
                   count += 1;
                   mid = (high + low) / 2;
                   compare = ValidProduct[mid].GetName().compareToIgnoreCase(product);
                   if (compare == 0)
                        System.out.println("Found: " + ValidProduct[mid].GetName());
                        found = true;
                   else if (compare < 0)
                        low = mid + 1;
                   else
                        high = mid - 1;
              if (!found)
                   System.out.println(product + " not found.");
              System.out.println(count + " steps");
              System.out.println();
         public static String leftJustify(String field, int width)
              StringBuffer buffer = new StringBuffer(field);
              while (buffer.length() < width)
                   buffer.append(' ');
              return buffer.toString();
         public static String rightJustify(String field, int width)
              StringBuffer buffer = new StringBuffer(field);
              while (buffer.length() < width)
                   buffer.append(' ');
              return buffer.toString();
         public static void displayValidRecords(Product1 [] ValidProduct, int logicalSize) throws Exception {
              long longMAX_POSSIBLE_UPC_CODE = 999999999999L;
              // set input stream and get number
              Scanner stdin = new Scanner(System.in);
              System.out.print("Enter a 12-digit UPC number: ");
              long input =stdin.nextLong();
              long number = input;
              // determine whether number is a possible UPC code
              if ((input < 0)|| (input > longMAX_POSSIBLE_UPC_CODE)) {
                   // not a UPC code
                   System.out.println(input +"is an invalid UPC code");
              else {   
                   // might be a UPC code
                   // determine digits
                   int d12 = (int) (number % 10);
                   number /= 10;
                   int d11 = (int) (number % 10);
                   number /= 10;
                   int d10 = (int) (number % 10);
                   number /= 10;
                   int d9 = (int) (number % 10);
                   number /= 10;
                   int d8 = (int) (number % 10);
                   number /= 10;
                   int d7 = (int) (number % 10);
                   number /= 10;
                   int d6 = (int) (number % 10);
                   number /= 10;
                   int d5 = (int) (number % 10);
                   number /= 10;
                   int d4 = (int) (number % 10);
                   number /= 10;
                   int d3 = (int) (number % 10);
                   number /= 10;
                   int d2 = (int) (number % 10);
                   number /= 10;
                   int d1 = (int) (number % 10);
                   number /= 10;
                   // compute sums of first 5 even digits and the odd digits
                   int m = d2 + d4 d6 d8 + d10;
                   int n = d1 + d3 d5 d7 + d9 + d11;
                   // use UPC formula to determine required value for d12
                   int r = 10 - ((m +3*n) % 10);
                   // based on r, can test whether number is a UPC code
                   if (r == d12) {
                        // is a UPCcode
                        System.out.println(input+" is a valid UPC code");
                   else {   
                        // not a UPCcode
                        System.out.println(input+" is not valid UPC code");
    Any help would be great thanks !!
    Take care,

    1) It's your problem that you waited until the last minute before you went for help...not ours. We'll give your problem the same attention as anyone elses...therefore your problem isn't any more urgent than any other problem here.
    2) I don't intend on doing your entire assignment. Nor do I intend on reading all of it. If you need help with a specific requirement, then post the information/code relevant to that requirement. I don't know how to help you when you bury the problem inside a 9 mile long essay.
    3) Post code in tags so it's formatted and readable. (there's a *code* button up above that makes the tags for you).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How I can enable Java ssv helper plugin silently for win7 users with IE9

    here is what happens:
    when I deploy java 7.21 on win7 users, after deployment when users try to Open their IE they get a login screen and apparently it is related to Java ssv helper plugin. it is trying to enable it and needs admin account/password. I am trying to deploy this to about 3000 computers and I dont want all of them start calling helpdesk for this.
    your help is appreciated.

    The following article describes how to create a shared preference file. You can either create preferences that individual users can override, or create locked preferences that individual users cannot override.
    http://kb.mozillazine.org/Lock_Prefs
    (Note: I don't have any personal experience with these files, but another volunteer might post some additional tips and tricks.)

  • Can any body please help me

    Hi all,
    I have got a microstar MS 6340 ver 1 motherboard and i tried installing a PCI 32m nvida graphics card under windows xp. when ever i turn the PC on, i get no screen and the machine keeps beeping. the motherboard has an onboard graphice card but i dont know how to diable it. i have searched the web and cant find the manual to help me or someone to tell me what to do. can some one please help me disable the onboard graphic's.
    Thanks a million.
    Ps. if any body knows where to get the manual from, can you please post the link for me.
    Cheers )  )  )

    wird... in the v1 manual there is no indication for integrated VGA.... no wonder your board is the ms6340M v1 (is it??)....
    and thats a little difference
    http://www.msi.com.tw/program/products/mainboard/mbd/pro_mbd_detail.php?UID=131&MODEL=MS-6340M
    here is the manual for this mainboard
    http://download.msi.com.tw/support/mnu_exe/E6340Mv1.0.exe
    there is the frame buffer seting but there is no disable option for the on board vga....
    try the new bios... (but check if this is the corect board!!!)
    this is the link for v4.7 bios
    http://download.msi.com.tw/support/bos_exe/6340v47.exe
    [size=15]but be cereful i'm not responsible for any miss flushes  [/SIZE]  

  • HT1349 my ipad has had all data and media deleted, i switch it on an it just shows that i n eed a connection to itunes, i went to the itunes site but could find nothing about reinstalling onto my ipad 2 can any one please help me

    my i pad has all the data and media deleted, it now shows me a diagram for connection to i tunes, I have visited i tunes but cannot find anywhere, that tells me to download to reinstall for my i pad can any one help me?

    You need to restore your iPad from iTunes. This assumes that you have a backup of your iPad either in iTunes or iCloud.
    Start iTunes.
    Plug in your iPad using the USB cable.
    Click on the iPad in the left hand column under "Devices".
    In the "Summary" tab, there are options to Back up, Update and Restore.
    Choose Restore and let it run.
    http://support.apple.com/kb/HT1414

  • Can Any One Please Help on this Requirement

    Hi All ,
                I am trying to creating a vendor in XK01 in Address screen im Enterying country as US , But System is showing this error (Incompete Address ; enter country ) im giving all the details , can any one explainn me where i am doing rong or while doing Configaration i need to maintain any specific setting for this particular Error . pls explain me , this is stoping everying of our work .
    thanks in andvance .
    Rafi .V

    Check out the account group for your vendor. May be, in your account group , it is mandatory to put the "Other Country" in the PO Box address.
    You can find account group config at
    SPRO > FI > Accounts receivable & accounts payable > Vendor account > Master data > Preparation for the creating vendor master > Defind acc group with screen layout (Vendors)... double click on your acc group... double click on general data... you will find the field settings for that account group ...
    Regards,
    Naimesh Patel

  • Can any one please help me resolving the following error while accessing online lync meeting portal

    When I am  try to access the Join
    Online Meeting link in a meeting portal in Lync Online, I am receiving the above of the following error messages in Microsoft Internet Explorer or Chrome browser.
    Can any one please suggest me how to overcome this issue.
    Thanks in advance
    Kiran Marri

    Hi,
    Did the issue happen only for you or for multiple users?
    You will need a valid conference for the URL to work. Please check if you did any typo for the URL. For example, in the format:
    https://meet.contoso.com/username/confID
    You can try to schedule a new conference from Outlook, check if the full URL like the example above and try to use this URL to join meeting.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Java expert help me. A NullPointerException !!! I can't solve it.

    I have complied 3 files (SerialBean.java;SerialBuffer.java;ReaderSerial.java) as my package successfully, it is named serial. The package extends javax.comm.*; I wanna do some serial work.
    Then I maked an application :SerialExample1
    --------------------------------------code----------------------------------
    ----------------------------SerialExmaple1.java-----------------------------
    import serial.*;
    import java.io.*;
    import javax.comm.*;
    public class SerialExample1
    public static void main(String args[])
    SerialBean sB=new SerialBean(1);
    sB.Initialize();
    sB.WritePort("Hi,Chrono");
    sB.ClosePort();
    It is good enough to deliver the String "Hi,Chrono".
    Then I maked another windows application :SerialExample2
    ------------------------------------code-------------------------------------
    -----------------------------Frame1.java-------------------------------------
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import com.borland.jbcl.layout.*;
    import serial.*;
    import java.io.*;
    import javax.comm.*;
    public class Frame1 extends JFrame
    private JPanel contentPane;
    private XYLayout xYLayout1 = new XYLayout();
    private Button button1 = new Button();
    private TextField textField1 = new TextField();
    private SerialBean sB=new SerialBean(1);
    //Construct the frame
    public Frame1()
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try
    jbInit();
    catch(Exception e)
    e.printStackTrace();
    //Component initialization
    private void jbInit() throws Exception
    //setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResource("[Your Icon]")));
    contentPane = (JPanel) this.getContentPane();
    button1.setLabel("button1");
    button1.addActionListener(new Frame1_button1_actionAdapter(this));
    contentPane.setLayout(xYLayout1);
    this.setSize(new Dimension(400, 300));
    this.setTitle("Frame Title");
    textField1.setText("textField1");
    contentPane.add(button1, new XYConstraints(54, 52, -1, -1));
    contentPane.add(textField1, new XYConstraints(195, 57, -1, -1));
    //Overridden so we can exit when window is closed
    protected void processWindowEvent(WindowEvent e)
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING)
    System.exit(0);
    void button1_actionPerformed(ActionEvent e)
    sB.Initialize();
    sB.WritePort("Hi Chrono");
    sB.ClosePort();
    class Frame1_button1_actionAdapter implements java.awt.event.ActionListener
    private Frame1 adaptee;
    Frame1_button1_actionAdapter(Frame1 adaptee)
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e)
    adaptee.button1_actionPerformed(e);
    ---------------------------SerialExample2.java--------------------------------
    import javax.swing.UIManager;
    import java.awt.*;
    public class SerialExample2
    private boolean packFrame = false;
    //Construct the application
    public SerialExample2()
    Frame1 frame = new Frame1();
    //Validate frames that have preset sizes
    //Pack frames that have useful preferred size info, e.g. from their layout
    if (packFrame)
    frame.pack();
    else
    frame.validate();
    //Center the window
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = frame.getSize();
    if (frameSize.height > screenSize.height)
    frameSize.height = screenSize.height;
    if (frameSize.width > screenSize.width)
    frameSize.width = screenSize.width;
    frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
    frame.setVisible(true);
    //Main method
    public static void main(String[] args)
    try
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    catch(Exception e)
    e.printStackTrace();
    new SerialExample2();
    It is a bad code!!! I compiled them seccessfully but It can't work .The java system gave
    some wrong messages
    Exception occurred during event dispatching:java.lang.NullPointerException     at serial.SerialBean.WritePort(SerialBean.java:115)     at Frame1.button1_actionPerformed(Frame1.java:66)     at Frame1_button1_actionAdapter.actionPerformed(Frame1.java:82)     at java.awt.Button.processActionEvent(Button.java:329)     at java.awt.Button.processEvent(Button.java:302)     at java.awt.Component.dispatchEventImpl(Component.java:2593)     at java.awt.Component.dispatchEvent(Component.java:2497)     at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)     at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)-----------------------------------------------------------------------------------
    I tried to debug it in Frame1.java:66 and SerialBean.java:115 but I can not find any error.
    How to deal with it?
    Here are the code about package serial
    -----------------------------------code--------------------------------------------
    ----------------------------SerialBean.java----------------------------------------
    package serial;
    import java.io.*;
    import java.util.*;
    import javax.comm.*;
    * This bean provides some basic functions to implement full dulplex
    * information exchange through the srial port.
    public class SerialBean
    static String PortName;
    CommPortIdentifier portId;
    SerialPort serialPort;
    static OutputStream out;
    static InputStream in;
    SerialBuffer SB;
    ReadSerial RT;
    * Constructor
    * @param PortID the ID of the serial to be used. 1 for COM1,
    * 2 for COM2, etc.
    public SerialBean(int PortID)
    PortName = "COM" + PortID;
    * This function initialize the serial port for communication. It startss a
    * thread which consistently monitors the serial port. Any signal capturred
    * from the serial port is stored into a buffer area.
    public int Initialize()
    int InitSuccess = 1;
    int InitFail = -1;
    try
    portId = CommPortIdentifier.getPortIdentifier(PortName);
    try
    serialPort = (SerialPort)
    portId.open("Serial_Communication", 2000);
    } catch (PortInUseException e)
    return InitFail;
    //Use InputStream in to read from the serial port, and OutputStream
    //out to write to the serial port.
    try
    in = serialPort.getInputStream();
    out = serialPort.getOutputStream();
    } catch (IOException e)
    return InitFail;
    //Initialize the communication parameters to 9600, 8, 1, none.
    try
    serialPort.setSerialPortParams(9600,
    SerialPort.DATABITS_8,
    SerialPort.STOPBITS_1,
    SerialPort.PARITY_NONE);
    } catch (UnsupportedCommOperationException e)
    return InitFail;
    } catch (NoSuchPortException e)
    return InitFail;
    // when successfully open the serial port, create a new serial buffer,
    // then create a thread that consistently accepts incoming signals from
    // the serial port. Incoming signals are stored in the serial buffer.
    SB = new SerialBuffer();
    RT = new ReadSerial(SB, in);
    RT.start();
    // return success information
    return InitSuccess;
    * This function returns a string with a certain length from the incomin
    * messages.
    * @param Length The length of the string to be returned.
    public String ReadPort(int Length)
    String Msg;
    Msg = SB.GetMsg(Length);
    return Msg;
    * This function sends a message through the serial port.
    * @param Msg The string to be sent.
    public void WritePort(String Msg)
    int c;
    try
    for (int i = 0; i < Msg.length(); i++)
    out.write(Msg.charAt(i));
    } catch (IOException e) {}
    * This function closes the serial port in use.
    public void ClosePort()
    RT.stop();
    serialPort.close();
    ----------------------------ReadSerial.java--------------------------------------
    package serial;
    import java.io.*;
    * This class reads message from the specific serial port and save
    * the message to the serial buffer.
    public class ReadSerial extends Thread
    private SerialBuffer ComBuffer;
    private InputStream ComPort;
    * Constructor
    * @param SB The buffer to save the incoming messages.
    * @param Port The InputStream from the specific serial port.
    public ReadSerial(SerialBuffer SB, InputStream Port)
    ComBuffer = SB;
    ComPort = Port;
    public void run()
    int c;
    try
    while (true)
    c = ComPort.read();
    ComBuffer.PutChar(c);
    } catch (IOException e) {}
    ------------------------------SerialBuffer.java-------------------------------------
    package serial;
    public class SerialBuffer
    private String Content = "";
    private String CurrentMsg, TempContent;
    private boolean available = false;
    private int LengthNeeded = 1;
    * This function returns a string with a certain length from the incomin
    * messages.
    * @param Length The length of the string to be returned.
    public synchronized String GetMsg(int Length)
    LengthNeeded = Length;
    notifyAll();
    if (LengthNeeded > Content.length())
    available = false;
    while (available == false)
    try
    wait();
    } catch (InterruptedException e) { }
    CurrentMsg = Content.substring(0, LengthNeeded);
    TempContent = Content.substring(LengthNeeded);
    Content = TempContent;
    LengthNeeded = 1;
    notifyAll();
    return CurrentMsg;
    * This function stores a character captured from the serial port to the
    * buffer area.
    * @param t The char value of the character to be stored.
    public synchronized void PutChar(int c)
    Character d = new Character((char) c);
    Content = Content.concat(d.toString());
    if (LengthNeeded < Content.length())
    available = true;
    notifyAll();
    Help me !!!

    First thing to say is that you really should check if the initialisation was successful in
    button1_actionPerformed()You should be checking the return value on the SerialBean Initialize() method. If the initialisation has failed, then the null pointer exception will be thrown because there will be no stream to write to.
    I would also recommend rewriting the catches in the SerialBean Initialize() method to dump the stack trace from the caught exception and any additional information that the exception holds for example:
    } catch (PortInUseException e) {
        e.printStackTrace();
        return InitFail;
    }This will give you a lot more information to work with if it is an initialisation problem.

Maybe you are looking for

  • Can an iPad 2 be synced on a MAC book Pro when an iPhone has already been synced to it?

    How do I sync my iPad 2 to my MAC Book Pro when my iPhone has already been synced to it? It seems to only recognise the iPhone.

  • Netflix "Play" Movies on HDTV

    Have Intel late 2008 Macbook 2.0 connected to Sony HDTV via mini DVI to HDMI. After initial startup I see my desktop background image on Sony sans toolbar and desktop icons. Opening up Netflix "Play" movies shows movie on Macbook but not on Sony. How

  • Apple Remote and iTunes

    Some time ago, I changed the setting for my Apple remote such that once iTunes is open and I press the menu button, iTunes becomes hidden. Now, it has become a nuisance as once iTunes is open, the remote will do nothing else but hide iTunes when I pr

  • Feed title?

    Hi, I wonder if anyone can help me? I'm running wordpress 2.0 with the plugin podpress. I have submitted a podcast RSS feed and it has been accepted but it is now asking for a feed title? In the podpress options I have specified a title (I'm not sure

  • Display name in top bar

    Hi all when i run the form i get a top bar in every form there is written one side Window and other side ORACLE i want in between or in place of this my own given name please guide me Thanks And Regards Vikas