recently started learning java, going through the official tutorial and would like to check that the below code is a valid and correct solution to the following exercise ( [exercise 1](http://docs.oracle.com/javase/tutorial/java/javaOO/QandE/creating-questions.html) class Card{ // fields ------------------------------------------------------------------------------------------------------------- private static final String[] SUITS = {"Hearts", "Diamonds", "Spades", "Clubs"}; private static final String[] RANKS = {"Ace", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King"}; private String mySuit; private String myRank; private int cardSuit; private int cardRank; private boolean cardValid = false; //constructors --------------------------------------------------------------------------------------------------------- public Card (int suit, int rank){ cardSuit = suit; cardRank = rank; setMyCard(); // if card …

Member Avatar
Member Avatar
+0 forum 16

At the moment I am trying to decide which book to buy, there are many that I think would be very interesting, but some are most likely beyond me. The books in my list, along with my thoughts on them are: Concrete Mathematics (I believe this is probably too advanced for me at the moment, however I am revising mathematics and will want to pick this up in a few months) The art of computer programming volumes 1-4 (I have read many times that one should be familiar with the concepts in Concrete Mathematics before attempting to consume this book, …

Member Avatar
Member Avatar
+0 forum 13

Hi Fellows, Actually my PC is infected by virus. I downloaded and updated MBAM and performed quick scan (more then few times) and keep getting "6" detections which seems MBAM is not able to remove them (even after restarting on completion of scan every time). I also tried "CCLEANER" "SUPERSPY REMOVAL" "MICROSOFT SECURITY ESSENTIALS" but still no luck. Following are the details of MBAM detections that keeps on coming up ever time I scan the system. Malware.Packer.Gen (Vendor)........... C:\iodq.exe Virus.Sality (Vendor)........................... Registry key Virus.Sality (Vendor)........................... Registry key PUM.Disabled.SecurityCenter............ Registry Data PUM.Disabled.SecurityCenter............ Registry Data PUM.Disabled.SecurityCenter............ Registry Data Please help out to …

Member Avatar
Member Avatar
+0 forum 6

Hello Everyone. I am making a tool in which I want a button to do the following job e.g; A=(1,2,3) Signature Guide B=(1,2,4) File Signature In short I am making an antivirus, every thing is done, except "clean" button. I want that the clean button should do the following job. read the file (B) signature and compare it with signature guide(A), if the file (B) signature is different from signature file (A) then repair the file changing its signature just like its present in signature guide.. Any idea...?

Member Avatar
Member Avatar
+0 forum 22

Hi everyone. Is anyone know a free/premium lightweight clean admin template? Thanks.

Member Avatar
Member Avatar
+0 forum 3

I was told in an email to revise a document and submit the revised document "in clean and track change version." Not knowing what this meant, I asked for clarification and the sender explained that "track changes shows the change you made and a clean copy means you have accepted all changes in 'final' version and none of the editing is visible." I tested tracking changes in Word and then accepting all the changes -- but if I accept all the changes, what's the point of tracking the changes? The final clean copy does not contain any information on what …

Member Avatar
Member Avatar
+0 forum 2

Hi All, I need to delete all files in recycle bin Anybody know how to this? Regards Vega

Member Avatar
Member Avatar
+0 forum 1

Hi. I'm having a problem with a module in a program written in powerbuilder An event is triggered when the user change the focus to a specified textbox the event creates local variables that I set to null, then I read a string that comes from the lecture of a driver licence. The string returned is ALWAYS in order, so I tokenize it according a specified character and save the tokens in my local variables The problem that Im having is that my program reads the string in different order. For example, the string I recieve is always in the …

Member Avatar
Member Avatar
+0 forum 2

This is the program I wrote for my CS project. Compiler is TurboC++. I initially added a lot of garbage code in it and am having a hard time cleaning it up. Can you guys please suggest improvements in the code below. Thanks in advance. [CODE] //STUDENT MANAGEMENT #include<conio.h> #include<fstream.h> #include<string.h> #include<stdio.h> class student { char name[50]; int r_no; int classs; float marks; char grade; public: int modify1(); void modification(); void getdata(); void display(); void search(); int getrno() { return r_no; } }; student ob1[10],ob2,ob3[10],ob4; void student::getdata() { char ch; cin.get(ch); cout<<"\n\n\t\t\tEnter the roll number: "; cin>>r_no; cout<<"\n\t\t\tEnter name:"; cin>>name; …

Member Avatar
Member Avatar
+0 forum 5

I am working on a project that requires me to clean data from a series of RS-232 instruments. These instruments can have a different version number, and output format (both of which can change the expected ouput). On top of that there are flags that determine if certain fields are included in the output. Here is what I have now and it _is_ working but I am wondering if there is a cleaner, more efficient, "better" way to do this. I am quite new to python and don't know all the ins-and-outs of the language yet. I know NFA are …

Member Avatar
+0 forum 0

Do you have to clean up and sort your computer files? But do you rather want to play some game and not sort everything out. Well then here is something for you: Clean Up! The Application for sorting en cleaning up your Directory's Just give the directory you want to clean up and then it will give you a list of extensions and Filename which you can use to suggest what it should do with it But Huntondoom, if I have to suggest every time I want to clean up, isn't it better then to just clean it up normally? …

Member Avatar
+0 forum 0

title says it all.....help me clear what startup files i need and what i dont!! thanks [ICODE]Yes HKCU:Run Sidebar C:\Program Files\Windows Sidebar\sidebar.exe /autoRun Yes HKCU:Run ISUSPM Startup C:\PROGRA~2\COMMON~1\INSTAL~1\UPDATE~1\ISUSPM.exe -startup Yes HKCU:Run Google Update "C:\Users\Owner\AppData\Local\Google\Update\GoogleUpdate.exe" /c Yes HKCU:Run uTorrent "C:\Program Files (x86)\uTorrent\uTorrent.exe" No HKCU:Run Jumblo "C:\Program Files (x86)\Jumblo.com\Jumblo\Jumblo.exe" -nosplash -minimized Yes HKCU:Run googletalk C:\Users\Owner\AppData\Roaming\Google\Google Talk\googletalk.exe /autostart No HKCU:Run msnmsgr "C:\Program Files (x86)\Windows Live\Messenger\msnmsgr.exe" /background No HKCU:Run grwinHyper C:\Program Files (x86)\Le Robert\Le Grand Robert\grwinHyper.exe Yes HKCU:Run L09AXLRD_7539029 "C:\Program Files (x86)\Microsoft Student\Microsoft Student with Encarta Premium 2009 DVD\EDICT.EXE" -m No HKLM:Run AdobeCS4ServiceManager "C:\Program Files (x86)\Common Files\Adobe\CS4ServiceManager\CS4ServiceManager.exe" -launchedbylogin No HKLM:Run DVDAgent "C:\Program Files (x86)\Hewlett-Packard\Media\DVD\DVDAgent.exe" …

Member Avatar
Member Avatar
+0 forum 8

[ATTACH=right]16632[/ATTACH]This week, the world's most famous search and everything else company waded into a ballot battle in Google's home state of California. [URL="http://news.cnet.com/8301-30684_3-20013242-265.html"]At an event held at the company's Mountain View HQ[/URL], Google 'Green Energy Czar' [URL="http://research.google.com/pubs/author3525.html"]Bill Weihl[/URL] and a handful of other green business personalities announced their collective opposition to California's Proposition 23. Prop 23 will be on state ballots this November and, if passed, would block a previously passed law that sets out plans to reduce the state's greenhouse gas emissions. It would suspend that law, known as A-B 32, until the state's unemployment rate dips below 5.5 …

Member Avatar
+0 forum 0

I inherited a poorly installed and maintained racked server array with my job. The room has been dusty for several years without cleaning. The dust is mostly from the acoustic suspended ceiling tiles, that are now removed. There is also a good amount of ordinary dust bunny dust. The servers are running 24/7 and cannot easily be shutdown due to the round the clock nature of the business. I need to get advice on how to proceed with a needed cleaning. If possible, with the servers running. If they must be shutdown, or not, what is a safe, but effective …

Member Avatar
Member Avatar
+0 forum 1

First of all, I sincerely hope I have posted this in the appropriate forum. I did read the rules and am doing my best to follow them. I found this website years back when my browser was being redirected to go.google.com and here I found help in removing "unwanted" files, etc. that would cause problems with the performance of my pc. I have had my hard drive completely stripped and everything reinstalled a few times before, to the point that I now the capabilities of my computer when it comes to it's speed in all areas (windows, browser, programs, etc.) …

Member Avatar
Member Avatar
+0 forum 5

i have problem with rewrite url in .htaccess [CODE] Options +FollowSymLinks RewriteEngine On RewriteBase /web/ RewriteRule ^([^/]*)$ artist.php?artist=$1 [R] [/CODE] i'm used [R] because i can see that mistake.. if i'm type: [url]http://localhost/web/djardy[/url] but it's redirect to : [url]http://localhost/web/artist.php?artist=artist.php[/url] it's should be redirect to : [url]http://localhost/web/artist.php?artist=djardy[/url] and i change the .htaccess code, but still not working.. [CODE] RewriteEngine On RewriteRule ^([^/]*)$ artist.php?artist=$1 [R] [/CODE] thanks ..

Member Avatar
Member Avatar
+0 forum 5

The End.