Question on this program?
is this program for free or do we get charged for using apple support communities?
It is free unless you are using cell data or paid WiFi to connect. They you just have to pay those charges. But ASC is free.
Similar Messages
-
This is my first use of this program. How do I remove a page break? How do line up my drop down box along side the text box on the left of it? The drop down is for a multiple choice answer for the question to the left of each drop down.
See McAfee support to find out how to disable that McAfee feature - that isn't part of the normal Firefox installation.
-
Hello my company Favorites I would like to first thank you for this wonderful program I have a question about the program. How can I Arabization program In your response to the spread accept me thanks and respect
Hi ,
You might want to refer the following link to find your serial number and activate your software .
Here is the link for the same.
https://helpx.adobe.com/x-productkb/global/find-serial-number.html
Let us know how it goes .We'll do the best possible to get your issue fixed.
Regards
Sukrit Dhingra -
Few questions on Report programming
Hi guys,
I have few questions on report programming.
1. What is the purpose of the statement REPORT zxxx. Even if i gave a name other than my report name i don't find any difference in syntax check/Functionality.
2. What is the purpose of list headings in report program? This option will come along with the text elements and selection texts.
3. What is the purpose of logical data base. Even if it is efficient why don't we use it frequently in our reports? Is there any limitations?
All usefull answers will be rewarded as usuall:-)
Thanks,
Vinod.1. As u told that you dint get any syntax errors even after changing the Report Name,there are chances of getting Runtime errors.
2. The usage of List Headings is when you create a list in a program, you can also create your own list and column headings.
Refer this link for further info.
http://help.sap.com/saphelp_nw70/helpdata/en/e3/960a05eb0711d194d100a0c94260a5/content.htm
3. The Limitation of LDB is the usage of GET statements which act similar to SELECT - ENDSELECT And also if you dont choose the proper LDB,a single LDB may contain data retrieval from so many tables ,that it would make the entire process very slow and it is very hard to find LDBs for other modules than HR.
Only in HR module the data is organized in such a way thatusing LDBs would be much simpler.
Reward points if useful. -
New to Java and need help with this program..please!
I'd really appreciate any helpful comments about this program assignment that I have to turn in a week from Friday. I'm taking a class one night a week and completely new to Java. I'd ask my professor for help, but we can't call him during the week and he never answers e-mails. He didn't tell us how to call from other classes yet, and I just can't get the darn thing to do what I want it to do!
The assignment requirements are:
1. Change a card game application that draws two cards
and the higher card wins, to a Blackjack application
2. Include a new class called Hand
3. The Hand class should record the number of draws
4. The application should prompt for a number of draws
5. The game is played against the Dealer
6. The dealer always draws a card if the dealer's hand total is <= 17
7. Prompt the player after each hand if he wants to quit
8. Display the total games won by the dealer and total and the total games wond by the player after each hand
9. Display all of the dealer's and player's cards at the
end of each hand
10. Player has the option of drawing an additional card after the first two cards
11. The Ace can have a value of 11 or 1
(Even though it's not called for in the requirements, I would like to be able to let the Ace have a value of 1 or an 11)
The following is my code with some comments about a few things that are driving me nuts:
import java.util.*;
import javax.swing.*;
import java.text.*;
public class CardDeck
public CardDeck()
deck = new Card[52];
fill();
shuffle();
public void fill()
int i;
int j;
for (i = 1; i <= 13; i++)
for (j = 1; j <= 4; j++)
deck[4 * (i - 1) + j - 1] = new Card(i, j);
cards = 52;
public void shuffle()
int next;
for (next = 0; next < cards - 1; next++)
int rand = (int)(Math.random()*(next+1));
Card temp = deck[next];
deck[next] = deck[rand];
deck[rand] = temp;
public final Card draw()
if (cards == 0)
return null;
cards--;
return deck[cards];
public int changeValue()
int val = 0;
boolean ace = false;
int cds;
for (int i = 0; i < cards; i++)
if (cardValue > 10)
cardValue = 10;
if (cardValue ==1) {
ace = true;
val = val + cardValue;
if ( ace = true && val + 10 <= 21 )
val = val + 10;
return val;
public static void main(String[] args)
CardDeck d = new CardDeck();
int x = 3;
int i;
int wins = 1;
int playerTotal = 1;
do {
Card dealer = (d.draw());
/**I've tried everything I can think of to call the ChangeValue() method after I draw the card, but nothing is working for me.**/
System.out.println("Dealer draws: " + dealer);
do {
dealer = (d.draw());
System.out.println(" " + dealer);
}while (dealer.rank() <= 17);
Card mine = d.draw();
System.out.println("\t\t\t\t Player draws: "
+ mine);
mine = d.draw();
System.out.println("\t\t\t\t\t\t" + mine);
do{
String input = JOptionPane.showInputDialog
("Would you like a card? ");
if(input.equalsIgnoreCase("yes"))
mine = d.draw();
System.out.println("\t\t\t\t\t\t" + mine);
playerTotal++;
else if(input.equalsIgnoreCase("no"))
System.out.println("\t\t\t\t Player stands");
else
System.out.println("\t\tInvalid input.
Please try again.");
I don't know how to go about making and calling a method or class that will combine the total cards delt to the player and the total cards delt to the dealer. The rank() method only seems to give me the last cards drawn to compare with when I try to do the tests.**/
if ((dealer.rank() > mine.rank())
&& (dealer.rank() <= 21)
|| (mine.rank() > 21)
&& (dealer.rank() < 22)
|| ((dealer.rank() == 21)
&& (mine.rank() == 21))
|| ((mine.rank() > 21)
&& (dealer.rank() <= 21)))
System.out.println("Dealer wins");
wins++;
else
System.out.println("I win!");
break;
} while (playerTotal <= 1);
String stop = JOptionPane.showInputDialog
("Would you like to play again? ");
if (stop.equalsIgnoreCase("no"))
break;
if (rounds == 5)
System.out.println("Player wins " +
(CardDeck.rounds - wins) + "rounds");
} while (rounds <= 5);
private Card[] deck;
private int cards;
public static int rounds = 1;
public int cardValue;
/**When I try to compile this nested class, I get an error message saying I need a brace here and at the end of the program. I don't know if any of this code would work because I've tried adding braces and still can't compile it.**/
class Hand()
static int r = 1;
public Hand() { CardDeck.rounds = r; }
public int getRounds() { return r++; }
final class Card
public static final int ACE = 1;
public static final int JACK = 11;
public static final int QUEEN = 12;
public static final int KING = 13;
public static final int CLUBS = 1;
public static final int DIAMONDS = 2;
public static final int HEARTS = 3;
public static final int SPADES = 4;
public Card(int v, int s)
value = v;
suit = s;
public int getValue() { return value; }
public int getSuit() { return suit; }
public int rank()
if (value == 1)
return 4 * 13 + suit;
else
return 4 * (value - 1) + suit;
/**This works, but I'm confused. How is this method called? Does it call itself?**/
public String toString()
String v;
String s;
if (value == ACE)
v = "Ace";
else if (value == JACK)
v = "Jack";
else if (value == QUEEN)
v = "Queen";
else if (value == KING)
v = "King";
else
v = String.valueOf(value);
if (suit == DIAMONDS)
s = "Diamonds";
else if (suit == HEARTS)
s = "Hearts";
else if (suit == SPADES)
s = "Spades";
else
s = "Clubs";
return v + " of " + s;
private int value; //Value is an integer, so how can a
private int suit; //string be assigned to an integer?
}Thank you so much for offering to help me with this Jamie! When I tried to call change value using:
Card dealer = (d.changeValue());
I get an error message saying:
Incompatible types found: int
required: Card
I had my weekly class last night and the professor cleared up a few things for me, but I've not had time to make all of the necessary changes. I did find out how toString worked, so that's one question out of the way, and he gave us a lot of information for adding another class to generate random numbers.
Again, thank you so much. I really want to learn this but I'm feeling so stupid right now. Any help you can give me about the above error message would be appreciated. -
Please help me to get a clue from this program
I'm sorry to bother you with such stupid questions. I have to admit I'm just making my first steps in programming.
So I have a program like this and don't understand how it works:
// Masking sign extension.
class HexByte {
static public void main(String args[]) {
char hex[] = {
'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f'
byte b = (byte) 0xf1;
System.out.println("b = 0x" + hex[(b >> 4) & 0x0f] + hex[b & 0x0f]);
Specifically, how could 0xf1 be represented in binary? As far as I know 11110001 contains negative value. Moreover 0xf1 in 10's base is 241, so how can I convert it to byte? Doin so, I'm gonna lose its value (since the byte range is from -128 to 127). And why do I need it? I even have no idea how the variable would look like in binary after converting to byte, not mentioning last part of this program.
I would really appreaciate your help.
Thank you for your time.AntShay wrote:
Thank you so much for your help guys. Now I got just 2 more questions. First of all. I guess sign-extension works only with negative values. Is that correct? When sign-extension takes place and I shift any value to the right by any number of positions, does it fill in all the previous bits with *1s*? If you can, please, tell me how exactly this works.Java primitives are all signed, so sign extension is always at work for right bit shifts. However, if you were to look into the code, it has masked away the 4 most significant bits using bit-wise and operation. Alternatively, you may use the unsigned shift (+>>>+) operator.
And by the way, is there any method to convert the value of byte to a binary string? I only figured that it might work this way: Integer.toBinaryString(b&0xff), but is there Byte.toBinaryString method or something?It is always okay to up cast, as sign extension will convert correctly. If you don't like the long integer output, you may do a substring() on the output. It is also not hard to roll your own. -
Question about the programming of a legend
Hello everybody,
I have a question about the programming of a waveform's legend. I
already asked here in this forum about the legend programming (03)
months ago.
I went satisfied but I ve just noticed that this code
(See Code old_legend_test.llb with main.vi as main function) operates a
little different from my expectances.
Therefore I have a new question and I want to know if it
is possible by labview programming to plot and show, on a waveform
chart, a signal with activ plot superior to zero (0) without to be
obliged to plot and show a signal with activ plot equal to zero (0) or
inferior to the desired activ plot.
I give you an example
of what I m meaning. I have by example 4 signals (Signal 0, 1, 2 and 3)
and each signal corresponds respectively to a channel (Chan1, Chan2,
Chan3, Chan4). I want to control the legend (activ plot, plot name and
plot color) programmatically. Is it possible with labview to plot signal
1 or 2 or 3 or (1, 3) or (2,3) or (1,2,3) or other possible combination
without to active the signal with the corresponding activ plot zero
(0)?
Let see the labview attached data
(new_legend_test.llb with main.vi as main function). When I try to
control the input selected values again I get them back but I don't
understand why they have no effect on the legend of my waveform chart.
Could somebody explain me what I m doing wrong or show me how to get a
correct legend with desired plots? Thank by advance for your assistance.
N.B.
The
both attached data are saved with labview 2009.
Sincerly,PrinceJack
Attachments:
old_legend_test.llb 65 KB
new_legend_test.llb 65 KBHi
princejack,
Thanks for
posting on National Instruments forum.
The behavior
you have is completely normal. You can control the number of row displayed in
the legend and this rows are linked to the data you send to your graph. Thus,
if you have 3 arrays of data, let say chan1, chan2 and chan3, you can choose
which data you want to display in your graph using the property node (Active
plot and visible). But for the legend as you send 3 plots there is an array of
the plot name [chan1, chan2, chan3] and you can display 0, 1, 2 or 3 rows of
this array but you cannot control the order in this array! So, to be able to
change this array you have to only send data you need to you graph. I'm not
sure my explanations are clear so I have implemented a simple example doing
that.
Benjamin R.
R&D Software Development Manager
http://www.fluigent.com/
Attachments:
GraphLegend.vi 85 KB -
Can any body tell me why this program works?!! It shouldn't work!
I wrote this program in a different long way, but it worked...I got the code i just posted below, it works well as well, but i dont know how this works. It seems more effeciant as well.....Q:
Write a program to read lines of text containing names and print each on a separate line.
Eliminate duplicate names.
Input lines may contain any number of names.
import java.util.Scanner;
public class Tut1P3 {
//Write a program to read lines of text containing names and print each on a separate line.
//Eliminate duplicate names.
//Input lines may contain any number of names.
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
String a[] = new String[ 1000 ]; // string to hold up to 1000 names
int i, // loop control variable
n = 0; // number of names in array so far
//how hasNext works in memory?
while ( sc.hasNext() ) { //reads the next name
String next = sc.next();
for(i = n-1; i >= 0; i--){
System.out.println(a);
if ( a[i].equals(next) ) //we have nothing in the array! it checks nothing!
break;
if ( i < 0 ){
//this part doesn't make sense. Any quick help please..
System.out.println( a[ n++ ] = next );The line in question can be split up into 3 different lines.
a[n] = next;
System.out.println(a[n]);
n++; -
I could previously open my itunes program on my computer and sync with ipad, ipod and iphone but no longer. When I select itunes a dialogue box opens with question - "Do you want to allow this program to make changes to your computer" When I select YES, it just shuts down. I have removed and reinstalled itunes. have checked firewall and spent hours trying to fix. Please help.
A possible cause of this error is that Firefox is set to run as Administrator.
Check that Firefox isn't set to run as Administrator.
Right-click the Firefox desktop shortcut and choose "Properties".
Make sure that all items are deselected in the "Compatibility" tab of the Properties window.
* Privilege Level: "Run this program as Administrator" should not be selected
* "Run this program in compatibility mode for:" should not be selected
Also check the Properties of the firefox.exe program in the Firefox program folder (C:\Program Files\Mozilla Firefox\). -
Can I use Flash Develop to view the output of this program?
The author of this program:
http://www.ffiles.com/flash/particle_effects/lightning_generator_2520.html
Has made his source code available.
If I click the Test Movie button in Flash Player with any of the .as files open, it'll open up the Flash debug player, but I don't see the lightning. Is there something I'm missing?Instead of doing the above, could I simply replace my Verizon router with an Airport and then extend coverage with a second Airport -- or won't Airport connect me with my verizon.net email etc.?
Actually that is a great question!
The Verizon router is most likely a combination DSL modem and router or gateway device. The Express would still need a DSL modem in order for you to get Internet access from Verizon. You are probably better off just leaving the gateway in place and disabling its wireless radio so only the AirPorts provide the wireless network. -
Hi all,
The purpose of this program is listed in here:
// Inputs the miles driven and gallons used (both integers) for each tankful.
// Calculates and displays miles per gallon obtained for each tankful and print
// the combined miles per gallon obtained for all tankfuls up to this point.
// All results should be floating point. Use Scanner and sentinel-controlled
// repetition to obtain data from the user.
// Exercise 4.17 MPG.java
import java.util.Scanner;
public class MPG
private int milesDriven;
private int gallonsUsed;
private float result;
public void setMilesDriven( int miles )
milesDriven = miles;
public void setGallonsUsed( int gallons )
gallonsUsed = gallons;
public String getMilesDriven( int miles )
return milesDriven; // error occurs here
public String getGallonsUsed( int gallons )
return gallonsUsed;
public MPG( float result )
result = gallons * miles;
System.out.printf( result);
I try to compile this program, but the error I get is "incompatible types-found int but expected java.lang.String." How do I fix this, and how do I
use sentinel control? If you can help me with these two things, I'd appreciate it. The sooner you can help me, the better.When you post code, please use[code] and [/code] tags as described in Formatting tips on the message entry page. It makes it much easier to read.
I try to compile this program, but the error I get is
"incompatible types-found int but expected
java.lang.String." That means you provided an int where the program expected a string. Just like it says.
How do I fix this,Either provide a String instead of the int, or change the code that's expecting a String to operate on an int instead.
and how do I
use sentinel control? II assume the instructor just wants a flag that indicates whether you're done or not. If the user enters "quit" or whatever, set that flag to true. The loop control ( while(whatever), for example) checks the flag, and either enters the loop or not.
The sooner you can
help me, the better.I'd advise you to keep comments like this out of your future posts. Nobody here cares about your timetable. We answer questions on our own schedule, and comments like that, and "urgent" and "asap" just annoy people. -
Question
I have Windows 7 Home Premium. When I start Firefox 4, I get a User Account Control warning, "Do you want to allow the following program to make changes to this computer"? Is there a way to stop this warning?Check that you do not run Firefox as Administrator.
Right-click the Firefox desktop shortcut and choose "Properties".
In the Compatibility tab, make sure that Privilege Level: "Run this program as Administrator" is not selected.
Also check the Properties of the firefox.exe program in the Firefox program directory. -
Hi friends
May I ask a silly question?
I wonder, when i have finished editing the movie, audio, effects, and all of that. When I am VERY satisfied with the result ( do you know the feeling )
OK, everything is on my timeline, and I press Ctrl + M. I choose MPEG2, and I get a file that I put on my desktop. From my desktop I burn it with Windows DVD Maker, choosing to make a dvd in this program.
Here is my question: Do I have to use another then PRpro for making an DVD formated DVD disk?
Is it the same to burn a DVD file on a plate, then burn a DVD formated plate?
And then, why cant prememiere do this?
I use the Que in media encoder, but that does not make any different...
Help me to understand this, please.
Best regards from Norway
StigThanks for getting back to me so fast, and knowing exactly what I ask for .
So what I have learned is: Windows DVD maker is a program that does the same thing as encore, but of course a smaller program.I have made menues in encore, but I did not know that it also made proper DVD files. Is it easyer from DVDmaker (if no chapter)? (it took me about 6-7 hours burning in W DVDmaker for 1 hours movie)
One more thing, please. I also try to burn from PRpro using the "Match the sequens setting" button. ( I use an AVCHD 1080i setting, square pixel, Frame size: 1920 x 1080) Is this compatible with DVD burning?
Is it right to choose this setting when burning? The reason I choose "Match the sequens setting", is because I get a larger file (twice as big), then in MPEG mode. I am then thinking... bigger file, better picture quality on TV. (?)
When I sit here now, I try to make dynemic link to encore. It is ok, but Encore tells me that the Transcode settings are 720X 480 (in new project window in startup encore). This is not an HD setting, and is not an 1920 x 1080 like I have in premiere Pro.
Hope you will help me again.
Best regards
Stig -
I want to upload my video but this program will not allow me to yet Youtube will. Why is this restriction set in the program? If Youtube will not allow it they will stop the process. I am authorized for uploading longer videos because of my excellent standing with Youtube.
animkii
Thanks for the reply.
I do not know your Premiere Elements 12 project settings. So, for now, I will give the example assuming 1920 x 1080 project where you are working from a
NTSC (29.97/30 frames per second) setup rather than PAL (25 frames per second) setup.
1. After the Timeline content is established and edited, then go on to Publish+Share/Computer/AVCHD.
2. Set the Presets = MP4 - H.264 1920 x 1080p30.
3. Hit the Save button in the export area to export your Timeline content to a file saved to the computer hard
drive at the location that you designate in the export area beforehand..
4. From that hard drive save location, upload your video to YouTube at the YouTube web site.
Please do not hesitate if you have any questions about the above. If your project settings are different than my assumptions, please let me
know the details, and I will fine tune the details presented here.
We will be watching for your results.
Thanks.
ATR -
Please give a comment on this program.
This program is to find a product, size and color. It is abstract program.
abstract class Pants{
protected string pro_code;
protected int size=0;
protected string color;
boolean sizeIs(string s)
boolean colorIs(string c)
boolean buttonFront(string b)
public Pants(string p, int s, string c){
pro_code=p; size=s; color = c;}
public boolean size( ){
s.size=sizeIs;
system.out.println("size");
if(sizeIs ==true)
system.out.println(sizeIs);
public boolean color( ){
colour = colorIs;
system.out.println("color");
if(colourIs = true)
system.out.println(color)
public boolean buttonFront( ){
if(buttonFront ==true)
system.out.println("zipper");
else
system.out.println("button");
public class test{
public static void main (string[ ]args){
system.out.println("Input Product code:");
p.pro_code;
Pants p = newPants[2];
Pants p1 = newPants[2];
for (int i = 0; i<=2; i++){
system.out.println(p.pro_code + p.size +p.color)
system.out.println(p1.pro_code + p1.size +p1.color)
}before I comment on the code, its better to ask the compiler, since compiler is one whose comments really matter, so please try to compile your code first.
Secondly which aspect you want your code to be reviewed from :
Readability
Maintainabilty
Reusability
From an OO perspective or otherwise. Your question is too generic in nature
Maybe you are looking for
-
ICal sending multiple invites for one event
I have an mixed environment where my Mac users running OSX 10.6.4 sync with our MS Exchange 07 using Mail 4.3 and iCal 4.0.3 . Everything is syncing correctly between the two environments, but we have run in to an annoying snag. We have multiple user
-
After upgrading my Arch, command SU doesn´t work
People, would anybody know tell me what the hell my Arch Linux did? I did a "pacman -Syu" and know the command SU doesnt work. The system tell me that the command was not found. Can anybody help me? Thanks a lot Rafael
-
Some letters are missing when I open a PDF in Firefox. Works fine in other browsers.
When I open a PDF using Firefox, some letters in words that are printed across the document are missing. I believe the creator of the document used a text box to add "Draft" on it. The D is missing. Other words I have found are "Copy Non-negotiable"
-
Right click file send option disappeared from Snow Leopard.
Hi people, does anyone know how to re-enable leopard's send-to option when right clicking on a file? I'd need it to send to bluetooth devices directly... Thanks!
-
Adobe Premiere Pro - Crashing with OpenCL Hardware Acceleration on Export
Hey everybody, One of the major reasons I decided to buckle down and pay for PPCC was the OpenCL Hardware acceleration with AMD cards. I run two AMD Radeon 7870s in Crossfire right now, and I immediately noticed a huge difference in performance when