[Solved] Using Symbols while coding

They are called operators, and they perform some operation on the values associated with them (known as operands). For example, 1 * 2 means to multiply (operator *) 1 and 2 (the operands) and return the product. You should seek more intensive programming education before attempting to implement a save option. Your question is very … Read more

[Solved] Java StringBuffer cannot print out apostrophe

Tom, The problem is that one string is longer than the other one. import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String elso = sc.nextLine(); String masodik = sc.nextLine(); String longestString = elso; String shortestString = masodik; if (shortestString.length() > longestString.length()){ shortestString = elso; longestString = … Read more

[Solved] Adding math symbols in a string [closed]

int a = 10; int b = 20; NSString *c = @”+”; NSString *s = [NSString stringWithFormat:@”%d %@ %d”, a, c, b]; NSExpression *e = [NSExpression expressionWithFormat:s]; int result = [[e expressionValueWithObject:nil context:nil] intValue]; NSLog(@”%d”, result); 4 solved Adding math symbols in a string [closed]